conky 1.3.4 gets glibc errors, most of the time double free errors, when you start it from a term in X, then ctrl+c kill it. reproducible on amd64 so far. Reproducible: Always Steps to Reproduce: 1. emerge conky 2. start /usr/bin/conky from a terminal in X 3. ctrl+c kill conky Actual Results: glibc errors, double free for myself and one other tester, invalid next size (normal) for one other tester so far. Expected Results: successfully die. Portage 2.0.53_rc7 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r3, 2.6.12-ck2 x86_64) ================================================================= System uname: 2.6.12-ck2 x86_64 AMD Opteron(tm) Processor 148 Gentoo Base System version 1.12.0_pre10 ccache version 2.4 [enabled] dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20-r1 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8 -pipe -g" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=k8 -pipe -g" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks fixpackages nostrip sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.isp.net.au/ftp/pub/gentoo http://mirror.pacific.net.au/pub/Gentoo http://public.planetmirror.com/pub/gentoo http://mirror.gentoo.gr.jp ftp://gg3.net/pub/linux/gentoo http://ftp-mirror.internap.com/pub/gentoo ftp://gentoo.agsn.ca/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://172.17.0.1/gentoo-portage" USE="X acpi aim alsa amd64 apache2 audiofile avi bash-completion berkdb big-tables bitmap-fonts browserplugin bzip2 cairo cdr cli crypt cups curl dba debug divx4linux dvd dvdr emboss encode ethereal exif expat extraengine fam ffmpeg firefox flac foomaticdb fortran gd gdbm gif glut gpm gstreamer gtk gtk2 icq idn imap imlib innodb ipv6 jabber java jpeg kerberos lcms ldap lzw lzw-tiff mad mhash mng mozsvg mp3 mpeg mppe-mppc mysql mysqli ncurses nls nptl nptlonly nsplugin nvidia ogg openal opengl pam pcntl pcre pdflib pear perl php png posix python quicktime readline real ruby samba sdl session slang soap sockets spell sqlite ssl svg tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales utf8 vorbis wddx xine xinerama xml2 xmlrpc xmms xosd xpm xsl xv xvid yahoo zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS nathan@nathan1 ~ $ conky Conky: drawing to subwindow of root window (400004) Conky: drawing to single buffer Conky: received SIGINT or SIGTERM to terminate. bye! *** glibc detected *** double free or corruption (!prev): 0x000000000054b810 *** Aborted nathan@nathan1 ~ $ gdb conky GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run Starting program: /usr/bin/conky [Thread debugging using libthread_db enabled] [New Thread 46912516306224 (LWP 32582)] Conky: drawing to subwindow of root window (400004) Conky: drawing to single buffer Program received signal SIGINT, Interrupt. [Switching to Thread 46912516306224 (LWP 32582)] 0x00002aaaabb726e5 in __select_nocancel () from /lib/libc.so.6 (gdb) bt #0 0x00002aaaabb726e5 in __select_nocancel () from /lib/libc.so.6 #1 0x0000000000416a2b in main (argc=1, argv=0x7fffff97c908) at conky.c:4092
Similar problem here: ninpo@the-beast ~ $ conky Conky: drawing to subwindow of root window (1a0000d) Conky: drawing to single buffer Conky: received SIGINT or SIGTERM to terminate. bye! *** glibc detected *** double free or corruption (!prev): 0x0000000000553fd0 *** Aborted ninpo@the-beast ~ $ My emerge info: Portage 2.0.53_rc7 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.6-r0, 2.6.14-acid2 x86_64) ================================================================= System uname: 2.6.14-acid2 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.12.0_pre9 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer -mmmx -m3dnow -msse -msse2 -msse3" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer -mmmx -m3dnow -msse -msse2 -msse3" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://194.117.143.71 ftp://194.117.143.71/mirrors/gentoo http://194.117.143.69 http://194.117.143.70 ftp://194.117.143.70/mirrors/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="64bit X a52 aac aim alsa amarok amd64 atm audiofile avi berkdb bitmap-fonts bzip2 cdb cdr crypt cups curl dbus divx4linux dts dv dvb dvd dvdr dvdread eds emboss encode exif expat fam ffmpeg flac foomaticdb fortran geoip gif glibc-omitfp glut gmp gpm gstreamer gtk gtk2 hal howl idn imagemagick imlib jabber java jpeg junit kde kde-meta kdeenablefinal lame lcms ldap libwww lirc lzw lzw-tiff mad mhash mng mp3 mpeg msn musicbrainz mysql ncurses nls nptl nvidia ogg openal opengl oscar pam pcre pdflib perl pic png python qt quicktime readline real recode sdl spell sql sqlite ssl tcpd tiff truetype truetype-fonts type1-fonts udev usb userlocales v4l2 visualization vorbis xine xml2 xmms xpm xv xvid xvmc yahoo zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Same conky version here. [0][phox@box ~ ]$ conky Conky: drawing to root window Conky: drawing to single buffer Conky: received SIGINT or SIGTERM to terminate. bye! *** glibc detected *** free(): invalid next size (normal): 0x0000000000550900 *** Aborted emerge info: Portage 2.0.53_rc7 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r3, 2.6.14-ck1 x86_64) ================================================================= System uname: 2.6.14-ck1 x86_64 AMD Opteron(tm) Processor 246 Gentoo Base System version 1.12.0_pre9 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O3 -ftracer -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O3 -ftracer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X aac aalib aim alsa apache2 audiofile avi berkdb bitmap-fonts bzip2 cddb cdr crypt cups curl dvd dvdr eds emboss encode ethereal exif expat fam fbcon ffmpeg flac foomaticdb gdbm gif gimpprint glut gmp gpm gtk gtk2 idn imagemagick imap imlib java javascript joystick jpeg junit kerberos krb4 lcms lzw lzw-tiff mad mikmod mng mp3 mpeg ncurses nptl nptlonly nvidia objc ogg oggvorbis opengl pam pcre pdflib perl png postgres ppds python quicktime readline real samba sdl slang spell ssl tcltk tcpd threads tiff truetype truetype-fonts type1-fonts udev usb userlocales v4l2 vorbis xine xml xml2 xmms xpm xprint xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Similar happenings here as well. aliens ~ # emerge info Portage 2.0.53_rc7 (default-linux/amd64/2005.1, gcc-4.0.2, glibc-2.3.6-r1, 2.6.14-gentoo-r2 x86_64) ================================================================= System uname: 2.6.14-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.12.0_pre10 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20-r1 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O3 -march=athlon64 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon64 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict userpriv" GENTOO_MIRRORS="http://gentoo.osuosl.org http://gentoo.chem.wisc.edu/gentoo/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X aac acl acpi aim alsa apache2 apm audiofile avi bash-completion berkdb bitmap-fonts bluetooth bzip2 cdb cdparanoia cdr crypt cups curl curlwrappers dga directfb dri dvd dvdr dvdread eds emboss encode esd ethereal exif expat fam fbcon ffmpeg flac foomaticdb fortran ftp gb gd gdbm gif glut gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal howl icq idn ieee1394 imagemagick imap imlib innodb ipv6 jabber jack java javascript joystick jpeg kde lcms ldap libwww lm_sensors lzw lzw-tiff mad mailwrapper mikmod mng motif mozilla mp3 mpeg msn mysqli ncurses nls nptl nptlonly nsplugin offensive ogg oggvorbis openal opengl osc oscar oss pam pcre pda pdflib perl png python qt quicktime readline ruby samba scanner sdl speex spell sqlite ssl symlink tcltk tcpd theora threads tiff truetype truetype-fonts type1-fonts udev usb userlocales vcd videos vorbis xine xinerama xml2 xmms xpm xv xvid yahoo zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS khall@aliens ~ $ conky Conky: drawing to subwindow of root window (e00054) Conky: drawing to single buffer Conky: received SIGINT or SIGTERM to terminate. bye! Segmentation fault khall@aliens ~ $ gdb conky ..snip.. (gdb) run Starting program: /usr/bin/conky Conky: drawing to subwindow of root window (e00054) Conky: drawing to single buffer Program received signal SIGINT, Interrupt. [Switching to Thread 46912516248880 (LWP 27386)] 0x00002aaaabb62c75 in select () from /lib/libc.so.6 (gdb) quit
Conky behaves as expected here in response to a CTRL+C, using GCC4 and glibc-2.3.6. This glibc was NOT compiled with GCC4 (was with 3.4.4), but Conky _was_ compiled with GCC4 Portage 2.0.53_rc7 (default-linux/amd64/2005.1, gcc-4.0.2, glibc-2.3.6-r0, 2.6.14-ck4 x86_64) ================================================================= System uname: 2.6.14-ck4 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.12.0_pre10 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=k8" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.ccccom.com http://ftp.heanet.ie/pub/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://mir.zyrianes.net/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.osuosl.org/ http://194.117.143.72" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X aalib acl alsa audiofile avi berkdb bindist bitmap-fonts bzip2 crypt cscope cups curl eds emboss encode exif expat fam ffmpeg flac foomaticdb fortran gdbm gif glut gmp gpm gstreamer gtk gtk2 guile hal idn imagemagick imlib ipv6 jpeg junit lcms libwww lzw lzw-tiff mad mikmod mng motif mp3 mpeg ncurses nls nptl ogg openal opengl pam pcre pdflib perl png python qt quicktime readline ruby samba sdl slang spell sqlite ssl tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales vorbis xine xinerama xml2 xpm xprint xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
tested on ppc, glibc 2.3.5-r3 gcc 3.4.4-r1 works fine, no segv. seems isolated to amd64 so far on pre-gcc4.
Every person reporting problems here is running ~arch. I run +arch, so the problem must be with something masked. I will try with glibc >=2.3.5-r3 and see what I can turn up.
It would be helpful if people would post their conkyrcs here, or come to #conky on irc.freenode.net to help diagnose this.
Created attachment 73410 [details] app-admin/conky-1.3.4.ebuild please test this new ebuild with patch. it switches conky over to posix signal handling.
Created attachment 73411 [details, diff] app-admin/conky/files/conky-1.3.4-posixsignals.patch
Created attachment 73412 [details] app-admin/conky/conky-1.3.4-r1.ebuild added -r1 as needed.
built with posixsignals patch, no change. GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run Starting program: /usr/bin/conky [Thread debugging using libthread_db enabled] [New Thread 46912516306224 (LWP 17147)] Conky: drawing to subwindow of root window (400004) Conky: drawing to single buffer Program received signal SIGINT, Interrupt. [Switching to Thread 46912516306224 (LWP 17147)] 0x00002aaaabb726e5 in __select_nocancel () from /lib/libc.so.6 (gdb) bt #0 0x00002aaaabb726e5 in __select_nocancel () from /lib/libc.so.6 #1 0x0000000000416a0b in main (argc=1, argv=0x7fffffddd178) at conky.c:4092 (gdb)
ok, thanks for testing. are you using the ${texeci} var any chance? that one runs a user defined script in a separate thread?
Created attachment 73415 [details, diff] app-admin/conky/files/conky-1.3.4-posixsignals.patch please try this patch -- same as before, without the SA_RESTART flag.
Comment on attachment 73415 [details, diff] app-admin/conky/files/conky-1.3.4-posixsignals.patch testing another patch. dont use this one.
Created attachment 73448 [details] app-admin/conky/conky-1.3.4-r1.ebuild please test this new patch (syncsig).
Created attachment 73450 [details, diff] app-admin/conky/files/conky-1.3.4-syncsig.patch patch which allows blocking system calls such as select() to finish without interruption.
weird issue this time, still a segv but a little different. weird thing is when you press ctrl+c it doesnt instantly kill now, it takes bout 5-10 seconds to die with the glibc error/s. details below: nathan@nathan1 ~ $ conky Conky: drawing to subwindow of root window (400004) Conky: drawing to single buffer Conky: received SIGINT or SIGTERM to terminate. bye! *** glibc detected *** double free or corruption (!prev): 0x000000000054b810 *** Aborted nathan@nathan1 ~ $ gdb conky GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run Starting program: /usr/bin/conky [Thread debugging using libthread_db enabled] [New Thread 46912516306224 (LWP 25536)] Conky: drawing to subwindow of root window (400004) Conky: drawing to single buffer Program received signal SIGINT, Interrupt. [Switching to Thread 46912516306224 (LWP 25536)] 0x00002aaaabaf0b13 in sigprocmask () from /lib/libc.so.6 (gdb) bt #0 0x00002aaaabaf0b13 in sigprocmask () from /lib/libc.so.6 #1 0x0000000000416928 in main (argc=1, argv=0x7fffffe0fdb0) at conky.c:4307
also with regards to: ok, thanks for testing. are you using the ${texeci} var any chance? that one runs a user defined script in a separate thread? ------------ im just using the default config, i dont actually have a conkyrc in either /etc or my home directory. pretty much just emerge conky then execute conky as non root. I might try copying in a default config in a sec, as ~/.conkyrc see what it does.
ok...interesting result. no segv when i kill it now. i just dropped a copy of the conkyrc.sample in as ~/.conkyrc and executed it, i still get the 5 or so second delay after ctrl+c till it dies, but it doesnt segv.
regarding the gdb session in comment #17: you need to tell gdb to pass SIGINT to the program. after you start gdb concky and get the (gdb) prompt, enter this command before you issue run: (gdb) handle SIGINT nostop noprint pass (gdb) run this tells gdb to pass the cntl-c to conky and will reveal more information. thanks.
also if there is someone kind enough to create a non-privileged account on an amd64 box showing the problem, one that will allow me to forward X packets over ssh back to my display, i might actually be able to get somewhere with this problem. i just need gdb, strace and the customary build tools.
hmm yea sorry my box is firewalled off at work, cant forward ssh through here. ill let you know if i find someone else that can.
can you do the following: delete your .conkyrc so we go back to the original situation in which you observed the sigsegv. make sure conky is compiled with -g and without -fomit-frame-pointer. I would like to see the output of these: 1) gdb conky (gdb) handle SIGINT nostop noprint pass (gdb) run <CNTL-C> 2) strace conky >strace-conky.log 2>&1 3) /lib/libc.so.6
forgot to mention, please: (gdb) bt after sigsegv when you hit CNTL-C. And please delete the previous patches and go back to 1.3.4. Please read previous comments. Thanks.
results using baseline 1.3.4 in portage tree: (gdb) handle SIGINT nostop noprint pass SIGINT is used by the debugger. Are you sure you want to change it? (y or n) y Signal Stop Print Pass to program Description SIGINT No No Yes Interrupt (gdb) run Starting program: /usr/bin/conky [Thread debugging using libthread_db enabled] [New Thread 46912516306224 (LWP 12433)] Conky: drawing to subwindow of root window (400004) Conky: drawing to single buffer Conky: received SIGINT or SIGTERM to terminate. bye! *** glibc detected *** double free or corruption (!prev): 0x000000000054b810 *** Program received signal SIGABRT, Aborted. [Switching to Thread 46912516306224 (LWP 12433)] 0x00002aaaabaf0839 in raise () from /lib/libc.so.6 (gdb) bt #0 0x00002aaaabaf0839 in raise () from /lib/libc.so.6 #1 0x00002aaaabaf1cde in abort () from /lib/libc.so.6 #2 0x00002aaaabb24990 in __libc_message () from /lib/libc.so.6 #3 0x00002aaaabb29b90 in malloc_printerr () from /lib/libc.so.6 #4 0x00002aaaabb2a6a6 in free () from /lib/libc.so.6 #5 0x000000000041685d in main (argc=1, argv=0x7fffff939b28) at conky.c:5253
Created attachment 73541 [details] strace output 1.3.4 strace output from conky with baseline 1.3.4 as above.
also as requested glibc output: nathan@nathan1 ~ $ /lib/libc.so.6 GNU C Library stable release version 2.3.5, by Roland McGrath et al. Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled by GNU CC version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8). Compiled on a Linux 2.6.11 system on 2005-10-30. Available extensions: GNU libio by Per Bothner crypt add-on version 2.1 by Michael Glad and others Native POSIX Threads Library by Ulrich Drepper et al The C stubs add-on version 2.1.2. GNU Libidn by Simon Josefsson BIND-8.2.3-T5B NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk Thread-local storage support included. For bug reporting instructions, please see: <http://www.gnu.org/software/libc/bugs.html>.
Created attachment 73543 [details] app-admin/conky/conky-1.3.4-r1.ebuild please try this ebuild with the miscbug patch that follows
Created attachment 73544 [details, diff] app-admin/conky/conky-1.3.4-miscbug.patch
@ Daniel Black: The most recent ebuild and patch have been confirmed as a fix. It's been added to Conky CVS, however I'm probably not going to do another release just for this one bug fix. So, if you could please add this patch into portage with the 1.3.4-r1 ebuild, that would be greatly appreciated.
Created attachment 73545 [details, diff] app-admin/conky/conky-1.3.4-r1.ebuild.patch patch so the dev can see what changed with the 1.3.4-r1 ebuild.
Thanks Philip, Brenden and Nathan - will add shortly.
fixed - thanks Philip.