lynks-- / lifebar

Transparent workspace bar for i3 window manager.
GNU General Public License v2.0
36 stars 6 forks source link

Segmentation fault #24

Closed himdel closed 1 year ago

himdel commented 9 years ago

Hi, I'm getting a

$ ./lifebar 
[ :( ] no config file '~/.lifebarrc' found, using defaults
[ :) ] using i3 ipc socket: /run/user/1000/i3/ipc-socket.1765
[ :) ] found output: LVDS1 @ 1366x768
Segmentation fault

on current master, on debian 8, amd64. It almost appears (windows get smaller, black bar appears and that;'s it) but instantly crashes.

Running undef valgrind, it works just fine, but it complains repeatedly about 2 issues:

==12927== Conditional jump or move depends on uninitialised value(s)
==12927==    at 0x402224: handle_workspace_value_label (ipc.c:35)
==12927==    by 0x402A40: get_i3_workspaces (ipc.c:229)
==12927==    by 0x4055A4: main (lifebar.c:696)

==12927== Conditional jump or move depends on uninitialised value(s)
==12927==    at 0x4C2D1DC: strcmp (vg_replace_strmem.c:755)
==12927==    by 0x40223A: handle_workspace_value_label (ipc.c:36)
==12927==    by 0x402A40: get_i3_workspaces (ipc.c:229)
==12927==    by 0x4055A4: main (lifebar.c:696)

The line number in ipc.c seems to be always increasing though :). And there's one unique complaint at the end..

==12927== Conditional jump or move depends on uninitialised value(s)
==12927==    at 0x40665E: main (lifebar.c:916)