You are not logged in.

#1 2016-05-12 16:08:57

DanielH
Member
From: Mar del Plata, Argentina
Registered: 2014-03-11
Posts: 28

Conky segfault on single core (Celeron) Intel processor

$cpu* objects causes conky segfault on single core (Celeron) Intel processor

Recently conky updates to version 1.10.2-1, old ~/.conkyrc is deprecated.

CPU objects ($cpu, $cpubar, $cpugraph, $cpugauge) causes conky segfault scanning single core Intel Celeron.
Deleting all $cpu* objects from ~/.config/conky.conf: conky runs flawlessly.

NOTE: I have no faults using ${cpu cpuN} nor ${cpubar cpuN x, y} on SMP Core2 Duo and Atom N450 processors...

New ~/.config/conky.conf (LUA syntax) for my single core Intel Celeron:

[daniel@electric ~]$ less ~/.config/conky/conky.conf

-- vim: ts=4 sw=4 noet ai cindent syntax=lua
--[[
...
]]

conky.config = {
    alignment = 'top_left',
    background = false,
    border_width = 0,
    cpu_avg_samples = 10,
    default_color = 'white',
    default_outline_color = 'grey',
    default_shade_color = 'grey',
    double_buffer = true,
    draw_borders = true,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    use_xft = true,
    font = 'DejaVu Sans Mono:size=11',
    gap_x = 1,
    gap_y = 1,
    minimum_height = 5,
    minimum_width = 5,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    own_window = true,
    own_window_transparent = false,
    own_window_colour = 'black',
    own_window_class = 'Conky',
    own_window_type = 'normal',
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    show_graph_scale = false,
    show_graph_range = false
}

conky.text = [[
$nodename - $sysname - $kernel on $machine
$hr
${color grey}Uptime:$color $uptime
${color grey}CPU:$color $cpu% ${cpubar}
${color grey}RAM:$color $mem/$memmax - $memperc% ${membar 4}
${color grey}Swap:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
$hr
${color grey}File systems:
 / $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
 /home $color${fs_used /home}/${fs_size /home} ${fs_bar 6 /home}
$hr
${color grey}Networking:
Up:$color ${upspeed enp0s18} ${color grey} - Down:$color ${downspeed enp0s18}
$hr
SHORTCUTS:

Super+p: program's menu (dmenu)
Super+x: close focused window
Super+Shift+x: kill focused window (force quit)
Super+[Up|Down]: switch to next|previous workspace
Super+[1-0]: switch to N workspace
Super+Shift+[1-0]: move focused window to N workspace
Super+w: minimize focused window
Super+Shift+w: restore minimized window

LAYOUT:
Super+Space: cycle vertical-horizontal-maximized
Super+t: toggle tiled <-> float window
Super+e: toggle maximized window (no bar)

TILED: 
Super+Enter: cycle focused window to master area
Super+h: decrease master area size
Super+l: increase master area size

FLOAT: 
Super+LeftClick: move focused window
Super+RightClick: resize focused window
Super+Shift+RightClick: centered resize focused window
]]

Conky debug:

[daniel@electric ~]$ conky -DD
DEBUG(0) [/build/conky/src/conky-1.10.2/src/conky.cc:2682]: reading contents from config file '/home/daniel/.config/conky/conky.conf'
DEBUG(0) [/build/conky/src/conky-1.10.2/src/x11.cc:488]: Fixed xinerama area to: 0 0 1024 768
DEBUG(0) [/build/conky/src/conky-1.10.2/src/x11.cc:488]: Fixed xinerama area to: 0 0 1024 768
conky: desktop window (40000b) is subwindow of root window (268)
conky: window type - normal
conky: drawing to created window (0xe00001)
conky: drawing to double buffer
DEBUG(1) [/build/conky/src/conky-1.10.2/src/core.cc:1946]: no templates to replace
DEBUG(1) [/build/conky/src/conky-1.10.2/src/core.cc:575]: Adding $cpu for CPU 0
Segmentation fault (core dumped)

Processor data:

[daniel@electric ~]$ inxi -C -x
CPU:       Single core Intel Celeron (-UP-) cache: 256 KB
           flags: (pae sse sse2 sse3) bmips: 5068 speed: 2533 MHz (max)

Journalctl data:

[daniel@electric ~]$ journalctl -b

may 12 11:46:41 electric systemd-coredump[4020]: Process 4011 (conky) of user 1000 dumped core.
                                                 
                                                 Stack trace of thread 4016:
                                                 #0  0x00000000b6eafbec _IO_feof (libc.so.6)
                                                 #1  0x00000000080b883f _Z11update_statv (conky)
                                                 #2  0x00000000080b8998 _Z16update_cpu_usagev (conky)
                                                 #3  0x00000000080b0795 _ZN5conky4priv13callback_base13start_routineEv (conky)
                                                 #4  0x00000000b70bd53e execute_native_thread_routine_compat (libstdc++.so.6)
                                                 #5  0x00000000b76ae2f1 start_thread (libpthread.so.0)
                                                 #6  0x00000000b6f31c7e __clone (libc.so.6)
                                                 
                                                 Stack trace of thread 4011:
                                                 #0  0x00000000b76eed91 __kernel_vsyscall (linux-gate.so.1)
                                                 #1  0x00000000b76b6186 do_futex_wait.constprop.2 (libpthread.so.0)
                                                 #2  0x00000000b76b6277 __new_sem_wait_slow.constprop.1 (libpthread.so.0)
                                                 #3  0x00000000080b0ffb _ZN9semaphore4waitEv (conky)
                                                 #4  0x00000000080731ce _Z12update_stuffv (conky)
                                                 #5  0x000000000807affb generate_text (conky)
                                                 #6  0x000000000807c032 main_loop (conky)
                                                 #7  0x000000000806c004 main (conky)
                                                 #8  0x00000000b6e63536 __libc_start_main (libc.so.6)
                                                 #9  0x000000000806ff39 _start (conky)

I have no clues about this segfault.
Any toughts?


Best regards,
DanielH

Offline

#2 2016-05-13 19:43:51

Cube777
Member
Registered: 2015-09-15
Posts: 45
Website

Re: Conky segfault on single core (Celeron) Intel processor

I can second this on a 13 year old IBM Thinkpad T42p (runs Arch no prob) - this happened directly after a recent update. Also a single core CPU


dotgit - A comprehensive solution to managing your dotfiles

Offline

#3 2016-05-14 14:57:55

grepfor
Member
Registered: 2012-09-19
Posts: 28

Re: Conky segfault on single core (Celeron) Intel processor

Bug has been identified, and a pull request filed. Should probably be fixed soon. See:

      https://bbs.archlinux.org/viewtopic.php … 2#p1627252

Offline

Board footer

Powered by FluxBB