Skip to content

Core dump on close #99

@balkin

Description

@balkin

candybar always crashes for me (on close).
It looks like:

baron@brn /usr/local/portage/x11-libs (git)-[master] % candybar                                                                                                                         =98%
[22:44:32] INFO candybar beta-git-439.e60f2c0 (Nov 18 2014 05:22:06)
[22:44:32] INFO using config file '/home/baron/.config/candybar/config.json'
[22:44:32] INFO loading theme 'file:////usr/share/candybar/theme-default/index.html'
[22:44:32] WARNING loading of '//usr/lib/candybar/libwidget_now_playing_mpd' (now_playing_mpd) failed
^C[1]    3885 segmentation fault (core dumped)  candybar

I loaded core dump into gdb (sorry, only candybar binary is unstripped, please let me know if you need full backtrace from libpthread):

Core was generated by `candybar'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f6a595853af in pthread_cond_timedwait () from /lib64/libpthread.so.0
(gdb) bt full
#0  0x00007f6a595853af in pthread_cond_timedwait () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000040488c in join_widget_threads (bar=0x695df0) at ../src/widgets.c:122
        ret = 22
        timeout = {tv_sec = 1416339876, tv_nsec = 206315119}
        __func__ = "join_widget_threads"
#2  0x0000000000404436 in signal_handler (signal=2) at ../src/candybar.c:166
No locals.
#3  <signal handler called>
No symbol table info available.
#4  0x00007f6a592b4b5d in poll () from /lib64/libc.so.6
No symbol table info available.
#5  0x00007f6a5c73ce44 in ?? () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#6  0x00007f6a5c73d16a in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#7  0x00007f6a5d0cad65 in gtk_main () from /usr/lib64/libgtk-3.so.0
No symbol table info available.
#8  0x0000000000403dc1 in main (argc=1, argv=0x7ffff22569e8) at ../src/candybar.c:301
        config_filename = <optimized out>
        window = 0x67e260
        layout = 0x697270
        screen = <optimized out>
        monitors_num = <optimized out>
        dest = {x = 0, y = 0, width = 1920, height = 1080}
        sa = {__sigaction_handler = {sa_handler = 0x404400 <signal_handler>, sa_sigaction = 0x404400 <signal_handler>}, sa_mask = {__val = {0 <repeats 16 times>}}, sa_flags = 0, 
          sa_restorer = 0x0}
        __func__ = "main"
        theme_config = 0x747c80
(gdb) 

I already checked the issues and tried disabling battery in config.json, but it still crashes.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions