You are not logged in.

#1 2011-05-07 18:40:51

Dartoms
Member
Registered: 2011-05-03
Posts: 13

Conky segfault

Hi,

Since a couple of days, my conky often crashes with a segmentation fault.
Here is the line in dmesg :

conky[8068]: segfault at 0 ip 00007fa7dab09556 sp 00007fa7d64f9968 error 4 in libc-2.13.so[7fa7daa82000+154000]

Am I the only one to have this bug ?
What should I do to fix it ?

Thanks for your help.

Last edited by Dartoms (2011-05-07 19:10:01)


Arch 64 + XFCE

Offline

#2 2011-05-07 18:45:31

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,708

Re: Conky segfault

Post the config file and other relevant details please.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2011-05-07 19:07:43

Dartoms
Member
Registered: 2011-05-03
Posts: 13

Re: Conky segfault

Here is my .conkyrc :

##### OPTIONS #####

## Conky Settings ##
update_interval 1.0
background yes
cpu_avg_samples 2
net_avg_samples 2
double_buffer yes
no_buffers yes
if_up_strictness address
text_buffer_size 512

## Window specifications ##
own_window yes
own_window_type    normal
own_window_hints     undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_argb_visual yes
own_window_argb_value 0
stippled_borders 8
border_width 1
alignment top_right
gap_x 25
gap_y 30
maximum_width 320

## Graphics settings ##
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes

## Text settings ##
default_color white
default_shade_color white
default_outline_color white
override_utf8_locale yes
use_xft yes
xftfont Ubuntu:size=10.5
uppercase no
use_spacer none


##### TEXT #####
TEXT
${font Ubuntu:style=bold:size=46}$alignc${time %k:%M:%S}${font}
${color 01aad5}${hr 1}
$alignc${font Ubuntu:style=bold:size=13}${color 01aad5}${execpi 60 cal -m | grep 201}
${color}${font Monospace:style=bold:size=10}$alignc${execpi 60 DJS=`date +%_d`; cal | sed '/./!d' | sed '1d'  | sed 's/$/                     /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/ /' | sed /" $DJS "/s/" $DJS "/" "'${color 01aad5}'"$DJS"'${color}'" "/}

${font Ubuntu:style=bold:size=12}${color 01aad5}SYSTEM ${hr 1}${font Ubuntu:style=bold:size=6}${color}

${font}Kernel${alignr}$kernel on $machine
Uptime${alignr}$uptime
Luminosity${alignr}${exec sh /home/thomas/.conky/lumin.sh}
Battery${alignr}${exec acpi | cut -d':' -f2 | cut -d',' -f1-2}

${font Ubuntu:style=bold:size=12}${color 01aad5}SENSORS ${hr 1}${font Ubuntu:style=bold:size=6}${color}

${font}${color}${goto 20}CPU${goto 70}GPU${goto 120}HDD${goto 167}FAN1${goto 242}FAN2
${goto 20}${i8k_cpu_temp}°C${goto 70}${exec nvidia-settings -q gpucoretemp | grep '):' | awk '{print $4}'| cut -c1-2}°C${goto 120}${exec sudo hddtemp /dev/sda | cut -c30-31}°C${goto 167}${exec cat /proc/i8k | cut -d' '  -f7 | cut -c1-4} rpm${goto 242}${exec cat /proc/i8k | cut -d' '  -f8 | cut -c1-4} rpm

${font Ubuntu:style=bold:size=12}${color 01aad5}CPU ${hr 1}${font Ubuntu:style=bold:size=6}${color}

${color}${font}C0 @${freq 1}MHz${goto 130}${cpu cpu1}% ${goto 172}C1 @${freq 2}MHz${goto 295}${cpu cpu2}%
${cpugraph cpu1 25,150} $alignr${cpugraph cpu2 25,150}

${font Ubuntu:style=bold:size=12}${color 01aad5}MEMORY ${hr 1}${font Ubuntu:style=bold:size=6}${color}

${color}${font}RAM $alignc$mem / $memmax $alignr$memperc%
${membar 5}
SWAP $alignc$swap / $swapmax $alignr$swapperc%
${swapbar 5}

${font Ubuntu:style=bold:size=12}${color 01aad5}HDD ${hr 1}${font Ubuntu:style=bold:size=6}${color}

${color}${font}/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
${fs_bar 5 /}
/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_used_perc /home}%
${fs_bar 5 /home}
EchangeNTFS $alignc ${fs_used /mnt/EchangeNTFS} / ${fs_size /mnt/EchangeNTFS} $alignr ${fs_used_perc /mnt/EchangeNTFS}%
${fs_bar 5 /mnt/EchangeNTFS}${if_mounted /mnt/Vista}
Vista $alignc ${fs_used /mnt/Vista} / ${fs_size /mnt/Vista} $alignr ${fs_used_perc /mnt/Vista}%
${fs_bar 5 /mnt/Vista}$endif${if_mounted /media/SauvNTFS}
SauvNTFS $alignc ${fs_used /media/SauvNTFS} / ${fs_size /media/SauvNTFS} $alignr ${fs_used_perc /media/SauvNTFS}%
${fs_bar 5 /media/SauvNTFS}$endif${if_mounted /media/SauvEXT3}
SauvEXT3 $alignc ${fs_used /media/SauvEXT3} / ${fs_size /media/SauvEXT3} $alignr ${fs_used_perc /media/SauvEXT3}%
${fs_bar 5 /media/SauvEXT3}$endif${if_mounted /media/P2}
P2 $alignc ${fs_used /media/P2} / ${fs_size /media/P2} $alignr ${fs_used_perc /media/P2}%
${fs_bar 5 /media/P2}$endif

${font Ubuntu:style=bold:size=12}${color 01aad5}NETWORK ${hr 1}${font Ubuntu:style=bold:size=6}${color}
${if_up eth0}
${color}${font}Public IP${alignr}${execi 300 sh /home/thomas/.conky/ip.sh}
Private IP${alignr}${addr eth0} (eth0)

Download${goto 90}${downspeedf eth0} Ko/s${goto 173}Upload${goto 255}${upspeedf eth0} Ko/s
${downspeedgraph eth0 25,150}$alignr${upspeedgraph eth0 25,150}
Total ${goto 100}${totaldown eth0} ${goto 255}${totalup eth0}$endif${if_up wlan0}
${color}${font}Public IP${alignr}${execi 300 sh /home/thomas/.conky/ip.sh}
Private IP${alignr}${addr wlan0} (wlan0)
Link quality${alignr}${wireless_link_qual_perc wlan0}%  @${wireless_essid wlan0}

Download${goto 90}${downspeedf wlan0} Ko/s${goto 173}Upload${goto 255}${upspeedf wlan0} Ko/s
${downspeedgraph wlan0 25,150}$alignr${upspeedgraph wlan0 25,150}
Total ${goto 100}${totaldown wlan0} ${goto 255}${totalup wlan0}$endif
${if_mpd_playing}
${font Ubuntu:style=bold:size=12}${color 01aad5}MPD ${hr 1}${font Ubuntu:style=bold:size=6}${color}

${color}${font}$alignc${mpd_artist}
$alignc${mpd_title}
${mpd_elapsed}$alignr${mpd_length}
${mpd_bar 5}
$alignc"${mpd_album}"$endif

Here is the output of the script that I use to launch my conky (I've got 2 conky and only one crashes) :

Conky: forked to background, pid is 6010
Conky: statfs '/media/SauvNTFS': No such file or directory
Conky: statfs '/media/SauvEXT3': No such file or directory
Conky: statfs '/media/P2': No such file or directory
Conky: forked to background, pid is 6012
Conky: desktop window (1400003) is subwindow of root window (15a)
Conky: window type - normal
Conky: drawing to created window (0x2800002)
Conky: drawing to double buffer
Conky: desktop window (1400003) is subwindow of root window (15a)
Conky: window type - normal
Conky: drawing to created window (0x2e00002)
Conky: drawing to double buffer
Conky: statfs '/media/P2': No such file or directory
Conky: statfs '/media/SauvEXT3': No such file or directory

And for details, I'm running Arch64 with XFCE and I think that these segfault appeared with the gnome3 update...

Thanks for your help.


Arch 64 + XFCE

Offline

#4 2011-05-08 10:11:46

Dartoms
Member
Registered: 2011-05-03
Posts: 13

Re: Conky segfault

I tried to re-install conky, but it didn't fix that problem...

No idea to fix it ? hmm


Arch 64 + XFCE

Offline

#5 2011-05-08 11:02:21

yawns
Member
Registered: 2010-05-31
Posts: 68

Re: Conky segfault

http://forums.gentoo.org/viewtopic-t-87 … art-0.html

A Gentoo guy had a similar problem (different app, same error), put a lot of work into troubleshooting it, and discovered that deleting ~/.local/share/mime/mime.cache fixed it.

Offline

#6 2011-05-08 14:28:48

Dartoms
Member
Registered: 2011-05-03
Posts: 13

Re: Conky segfault

Thanks for your answer.

I've deleted ~/.local/share/mime/mime.cache, then rebooted my laptop but it didn't fix it... sad
I really don't understand that problem...


Arch 64 + XFCE

Offline

#7 2011-05-09 00:49:18

rockin turtle
Member
From: Montana, USA
Registered: 2009-10-22
Posts: 218

Re: Conky segfault

Your script makes a number of exec* type calls.  Most likely, one of those is causing the segfault.  Try to comment them out and see if it fixes your error.  Then, once you know which process is causing your problem, you can perhaps fix that.

Offline

#8 2011-05-14 18:37:31

Dartoms
Member
Registered: 2011-05-03
Posts: 13

Re: Conky segfault

Sorry I was busy this week, I just see your answer.

I'm trying to find which exec call may cause this segfault.
In order to do that, I splitted my conky in 5 conky (with a few exec in) and then I will see wich one segfaults.

But since the beginning of my test (2 hours), I didn't see any segfault... keep waiting...


Arch 64 + XFCE

Offline

#9 2011-05-29 20:20:17

Dartoms
Member
Registered: 2011-05-03
Posts: 13

Re: Conky segfault

UP !

I'm still having this problem of segfault and I really don't know how to solve it ...


Arch 64 + XFCE

Offline

#10 2011-10-26 17:18:39

JazzplayerL9
Member
Registered: 2006-03-31
Posts: 108

Re: Conky segfault

Unfortunately, I'm now having the same problem since the last update of conky.  Deleting the mime cache didn't help and the relevant exec commands in my .conkyrc are calls to conkyforecast and curl ifconfig.me.  Both of those calls use execi and I have another conky script that uses execp that doesn't fail.

Last edited by JazzplayerL9 (2011-10-26 17:19:23)

Offline

#11 2011-10-27 14:19:09

possiblefool
Member
From: UK
Registered: 2011-06-18
Posts: 29

Re: Conky segfault

I am also gettting conky segfaults after the latest update (1.8.1-3 -> 1.8.2git20111026-1).

$ dmesg | grep conky
[   34.631275] conky[1436]: segfault at 0 ip b70ffdb8 sp bfba0498 error 4 in libc-2.14.so[b708a000+162000]

Im not sure if this is relevent/to be expected, but I'm getting a pcmanfm tab on my pannel, thats connected to the segfaulting conky when I boot (tho not when I log out/in) thought I'd mention it, as this was upgraded at the same time.
I have 1 execpi call to a script (stolen from this forum) that checks for updates. Commenting out this line allows conky to start.
Not sure how to trouble shoot the issue further, I'll downgrade conky for now.

Offline

#12 2011-10-27 15:48:47

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,250

Re: Conky segfault

I also had problems with the lastest updates to conky. I downgraded to 1.8.1 but the build failed due to curl. I found a fix for it and added it to my PKGBUILD. It's here http://ompldr.org/vYXppNg , if anyone else needs it. And here's the current-power.patch if someone needs that too http://ompldr.org/vYXppNw

Last edited by stlarch (2011-10-28 06:16:51)

Offline

#13 2011-11-02 22:12:39

Deciare
Member
From: UTC -5:00
Registered: 2005-05-05
Posts: 78

Re: Conky segfault

I've been having this problem as well, and it appears related to uptime.

Here is a very simple testcase:

own_window yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

TEXT
${execi 300 echo test}

If the computer has been up for at least 5 minutes (300 seconds), Conky will output "test".

If the computer has been up for less time than that, Conky will output "(null)". Using execpi instead of execi will cause Conky to segfault instead of outputting "(null)".

I submitted an upstream bug report, but typoed "greater than uptime" as "less than uptime" in the original description. <.<

Offline

#14 2011-11-02 22:15:35

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,320

Re: Conky segfault

try using texeci instead of execi

Offline

#15 2011-11-02 22:17:44

Deciare
Member
From: UTC -5:00
Registered: 2005-05-05
Posts: 78

Re: Conky segfault

execi, execpi, and texeci all fail if interval > uptime. I chose execi for the testcase because it is simplest.

Last edited by Deciare (2011-11-02 22:18:28)

Offline

#16 2011-11-04 23:00:28

JazzplayerL9
Member
Registered: 2006-03-31
Posts: 108

Re: Conky segfault

@Deciare,

That makes a lot of sense...considering my conky would start working like 5-10 min after I started up my computer...but segfault before that.  I'll find a workaround for now...now that I know that's the problem.  Thanks!

Offline

#17 2011-11-07 13:36:07

stratovarius
Member
Registered: 2011-11-07
Posts: 6

Re: Conky segfault

Last conky(1.8.2git20111107-1) update is fix my problem.

Offline

Board footer

Powered by FluxBB