brndnmtthws / conky

Light-weight system monitor for X, Wayland (sort of), and other things, too
https://conky.cc
GNU General Public License v3.0
7.17k stars 615 forks source link

random crash resolving top user #220

Closed shiroyagi closed 6 years ago

shiroyagi commented 8 years ago

The return value of getpwuid() is not tested in top.c (1.9.0) or top.cc (current master).

Thread 1 "conky" received signal SIGSEGV, Segmentation fault. print_top (obj=0x6a43c0, p=0x6a687b "", p_max_size=16149) at top.c:1043 1043 snprintf(p, width, "%.8s",

I am seeing random crashes, possibly related to slow user look-up on the network.

Removing ${top user 1} from .conkyrc is a workaround.

lasers commented 6 years ago

${top user 1} worked okay here in console. Always first root, then $USER. Are you still experiencing this? How long does it generally take to crash due to this variable? Thanks.

lasers commented 6 years ago

Closed via 25eac4c.

@su8 Just FYI.