Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 418031

Summary: net-irc/eggdrop - crash after upgrading to tcl-8.5.10-r1
Product: Gentoo Linux Reporter: William Waisse <bugs.gentoo.org>
Component: [OLD] DevelopmentAssignee: Packages in net-irc <net-irc>
Status: RESOLVED FIXED    
Severity: normal CC: bugs.gentoo.org
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 338211    
Bug Blocks:    

Description William Waisse 2012-05-28 19:34:40 UTC
after upgrading to dev-lang/tcl-8.5.10-r1
[ebuild   R    ] net-irc/eggdrop-1.6.19  USE="mysql ssl -debug -postgres -static -vanilla" 0 kB

eggrop is mo more working, crashing with the message :

Eggdrop v1.6.19+Gentoo (C) 1997 Robey Pointer (C) 2008 Eggheads
*** glibc detected *** ./eggdrop: free(): invalid next size (fast): 0x1b051050 ***
======= Backtrace: =========
/lib/libc.so.6(+0x6eedf)[0xaa440edf]
/lib/libc.so.6(+0x7084b)[0xaa44284b]
/lib/libc.so.6(cfree+0x6e)[0xaa445a6e]
./eggdrop(+0x36c2c)[0x1afeac2c]
[0x67692b3a]
======= Memory map: ========
1afb4000-1b016000 r-xp 00000000 08:03 162651     /opt/eggdrop/eggdrop-1.6.19
1b016000-1b017000 r--p 00061000 08:03 162651     /opt/eggdrop/eggdrop-1.6.19
1b017000-1b01a000 rw-p 00062000 08:03 162651     /opt/eggdrop/eggdrop-1.6.19
1b01a000-1b069000 rw-p 00000000 00:00 0          [heap]
aa000000-aa021000 rw-p 00000000 00:00 0
aa021000-aa100000 ---p 00000000 00:00 0
aa1e2000-aa1fb000 r-xp 00000000 08:03 266602     /lib/libgcc_s.so.1
aa1fb000-aa1fc000 r--p 00018000 08:03 266602     /lib/libgcc_s.so.1
aa1fc000-aa1fd000 rw-p 00019000 08:03 266602     /lib/libgcc_s.so.1
aa1fd000-aa207000 r-xp 00000000 08:03 266548     /lib/libnss_files-2.14.1.so
aa207000-aa208000 r--p 00009000 08:03 266548     /lib/libnss_files-2.14.1.so
aa208000-aa209000 rw-p 0000a000 08:03 266548     /lib/libnss_files-2.14.1.so
aa209000-aa212000 r-xp 00000000 08:03 266152     /lib/libnss_nis-2.14.1.so
aa212000-aa213000 r--p 00008000 08:03 266152     /lib/libnss_nis-2.14.1.so
aa213000-aa214000 rw-p 00009000 08:03 266152     /lib/libnss_nis-2.14.1.so
aa221000-aa223000 rw-p 00000000 00:00 0
aa223000-aa364000 r-xp 00000000 08:06 134595     /usr/lib/libxml2.so.2.8.0
aa364000-aa368000 r--p 00141000 08:06 134595     /usr/lib/libxml2.so.2.8.0
aa368000-aa369000 rw-p 00145000 08:06 134595     /usr/lib/libxml2.so.2.8.0
aa369000-aa36a000 rw-p 00000000 00:00 0
aa36a000-aa37e000 r-xp 00000000 08:03 257635     /lib/libz.so.1.2.5.1
aa37e000-aa37f000 r--p 00014000 08:03 257635     /lib/libz.so.1.2.5.1
aa37f000-aa380000 rw-p 00015000 08:03 257635     /lib/libz.so.1.2.5.1
aa380000-aa3ce000 r-xp 00000000 08:06 137206     /usr/lib/libisc.so.62.2.1
aa3ce000-aa3cf000 ---p 0004e000 08:06 137206     /usr/lib/libisc.so.62.2.1
aa3cf000-aa3d0000 r--p 0004e000 08:06 137206     /usr/lib/libisc.so.62.2.1
aa3d0000-aa3d1000 rw-p 0004f000 08:06 137206     /usr/lib/libisc.so.62.2.1
aa3d1000-aa3d2000 rw-p 00000000 00:00 0
aa3d2000-aa530000 r-xp 00000000 08:03 266457     /lib/libc-2.14.1.so
aa530000-aa531000 ---p 0015e000 08:03 266457     /lib/libc-2.14.1.so
aa531000-aa533000 r--p 0015e000 08:03 266457     /lib/libc-2.14.1.so
aa533000-aa534000 rw-p 00160000 08:03 266457     /lib/libc-2.14.1.so
aa534000-aa537000 rw-p 00000000 00:00 0
aa537000-aa6b5000 r-xp 00000000 08:06 131531     /usr/lib/libcrypto.so.1.0.0
aa6b5000-aa6c4000 r--p 0017d000 08:06 131531     /usr/lib/libcrypto.so.1.0.0
aa6c4000-aa6c9000 rw-p 0018c000 08:06 131531     /usr/lib/libcrypto.so.1.0.0
aa6c9000-aa6cd000 rw-p 00000000 00:00 0
aa6cd000-aa71f000 r-xp 00000000 08:06 135106     /usr/lib/libssl.so.1.0.0
aa71f000-aa721000 r--p 00052000 08:06 135106     /usr/lib/libssl.so.1.0.0
aa721000-aa724000 rw-p 00054000 08:06 135106     /usr/lib/libssl.so.1.0.0
aa724000-aa737000 r-xp 00000000 08:03 266554     /lib/libnsl-2.14.1.so
aa737000-aa738000 r--p 00012000 08:03 266554     /lib/libnsl-2.14.1.so
aa738000-aa739000 rw-p 00013000 08:03 266554     /lib/libnsl-2.14.1.so
aa739000-aa73b000 rw-p 00000000 00:00 0
aa73b000-aa8b7000 r-xp 00000000 08:06 130322     /usr/lib/libdns.so.69.3.1
aa8b7000-aa8b9000 r--p 0017b000 08:06 130322     /usr/lib/libdns.so.69.3.1
aa8b9000-aa8bc000 rw-p 0017d000 08:06 130322     /usr/lib/libdns.so.69.3.1
aa8bc000-aa8bd000 rw-p 00000000 00:00 0
aa8bd000-aa8bf000 r-xp 00000000 08:03 266508     /lib/libdl-2.14.1.so
aa8bf000-aa8c0000 r--p 00001000 08:03 266508     /lib/libdl-2.14.1.so
aa8c0000-aa8c1000 rw-p 00002000 08:03 266508     /lib/libdl-2.14.1.so
aa8c1000-aa8d6000 r-xp 00000000 08:03 266153     /lib/libpthread-2.14.1.so
aa8d6000-aa8d7000 ---p 00015000 08:03 266153     /lib/libpthread-2.14.1.so
aa8d7000-aa8d8000 r--p 00015000 08:03 266153     /lib/libpthread-2.14.1.so
aa8d8000-aa8d9000 rw-p 00016000 08:03 266153     /lib/libpthread-2.14.1.so
aa8d9000-aa8db000 rw-p 00000000 00:00 0
aa8db000-aa8ff000 r-xp 00000000 08:03 257636     /lib/libm-2.14.1.so
aa8ff000-aa900000 r--p 00023000 08:03 257636     /lib/libm-2.14.1.so
aa900000-aa901000 rw-p 00024000 08:03 257636     /lib/libm-2.14.1.so
aa901000-aaa11000 r-xp 00000000 08:06 140901     /usr/lib/libtcl8.5.so
aaa11000-aaa14000 r--p 0010f000 08:06 140901     /usr/lib/libtcl8.5.so
aaa14000-aaa18000 rw-p 00112000 08:06 140901     /usr/lib/libtcl8.5.so
aaa1b000-aaa1c000 rw-p 00000000 00:00 0
aaa1c000-aaa22000 r-xp 00000000 08:03 266560     /lib/libnss_compat-2.14.1.so
aaa22000-aaa23000 r--p 00006000 08:03 266560     /lib/libnss_compat-2.14.1.so
aaa23000-aaa24000 rw-p 00007000 08:03 266560     /lib/libnss_compat-2.14.1.so
aaa24000-aaa26000 rw-p 00000000 00:00 0
aaa26000-aaa27000 r-xp 00000000 00:00 0          [vdso]
aaa27000-aaa44000 r-xp 00000000 08:03 266557     /lib/ld-2.14.1.so
aaa44000-aaa45000 r--p 0001c000 08:03 266557     /lib/ld-2.14.1.so
aaa45000-aaa46000 rw-p 0001d000 08:03 266557     /lib/ld-2.14.1.so
b4991000-b49b2000 rw-p 00000000 00:00 0          [stack]

downgrading to dev-lang/tcl-8.5.9 and eggrop works again


Reproducible: Always

Steps to Reproduce:
1.upgrade to tcl-8.5.10-r1 , using eggdrop-1.6.19
2. launch the bot

Actual Results:  
crash on : 
Eggdrop v1.6.19+Gentoo (C) 1997 Robey Pointer (C) 2008 Eggheads
*** glibc detected *** ./eggdrop: free(): invalid next size (fast): 0x1b051050 ***

Expected Results:  
eh working bot like before

I tried to add the static build flag : 
[ebuild   R    ] net-irc/eggdrop-1.6.19  USE="mysql ssl static* -debug -postgres -vanilla" 0 kB

it then fails to compile on the mysql functions 
 
 the I tried removing the mysql flag : 
[ebuild   R    ] net-irc/eggdrop-1.6.19  USE="ssl static* -debug -mysql* -postgres -vanilla" 0 kB

it could compile, but still the same error message when running it
Eggdrop v1.6.19+Gentoo (C) 1997 Robey Pointer (C) 2008 Eggheads
*** glibc detected *** ./eggdrop: free(): invalid next size (fast): 0x1286ffa0 ***

last messages from strace say : 

open("/dev/urandom", O_RDONLY|O_NOCTTY|O_NONBLOCK) = 3
fstat64(3, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 9), ...}) = 0
poll([{fd=3, events=POLLIN}], 1, 10)    = 1 ([{fd=3, revents=POLLIN}])
read(3, "\254p\1Y:\367\253k\305|g :\336=\263\275d\252\23\263a\362\362\vk\2239|\204T\20", 32) = 32
close(3)                                = 0
getuid32()                              = 1019
time(NULL)                              = 1338240022
pipe([3, 4])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,child_tidptr=0xa4a02728) = 6462
read(3, *** glibc detected *** ./eggdrop: free(): invalid next size (fast): 0x105164d0 ***
0xbc7fff5c, 8)                  = ? ERESTARTSYS (To be restarted)
--- {si_signo=SIGCHLD, si_code=CLD_DUMPED, si_pid=3889, si_status=SIGABRT, si_utime=0, si_stime=0} (Child exited) ---
read(3, ^C <unfinished ...>

I tried masking tcl-8.5.10-r1
[ebuild     UD ] dev-lang/tcl-8.5.9 [8.5.10-r1] USE="-debug -threads" 0 kB

downgrading to dev-lang/tcl-8.5.9 and eggrop works again


emerge --info

Portage 2.1.10.49 (hardened/linux/x86, gcc-4.5.3, glibc-2.14.1-r3, 2.6.39-hardened-r8ww7_5 i686)
=================================================================
System uname: Linux-2.6.39-hardened-r8ww7_5-i686-Intel-R-_Xeon-R-_CPU_L3426_@_1.87GHz-with-gentoo-2.1
Timestamp of tree: Mon, 28 May 2012 06:15:01 +0000
ccache version 3.1.6 [enabled]
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.3-r1, 3.1.4-r3, 3.2.3
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.5, 4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo bitcoin Menelkir
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="http://mirrors.linuxant.fr/distfiles.gentoo.org/ http://mirror.netcologne.de/gentoo/ http://mirror.opteamax.de/gentoo/ "
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/bitcoin /var/lib/layman/menelkir"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl apache2 bcmath berkdb bzip2 calendar cddb cgi cli cmov cracklib crypt ctype cxx de dri dvd dvdread exif flash force-cgi-redirect fpu ftp fxsr gd gdbm gpm hardened hardenedphp hash iconv imap jpeg maildir mcal memlimit mmx modules msr mtrr mudflap mysql ncurses nls nptl nptlonly openmp openssh pam pax_kernel pcntl pcre pdf pge pic png pppd python readline sasl session simplexml soap sockets spamassassin sse ssl sysvipc tcpd tidy tiff tokenizer truetype tsc unicode urandom v4l vhosts x86 xml xmlreader xmlrpc xmlwriter zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 William Waisse 2012-05-28 20:26:01 UTC
after checking on the eggdrop channel, this is a known upstream bug documented on : 
http://forum.egghelp.org/viewtopic.php?p=97173#97173

 so, this should be fixed in the next eggdrop versiom, probably a good reason to bump the stable eggdrop ebuild to 1.6.20 or 1.6.21

 commits fixing this should be : 
https://github.com/eggheads/eggdrop-1.8/commit/3701a025e83c0a2fc0c20a479b865ea41c5cee23
 and
https://github.com/eggheads/eggdrop-1.8/commit/1d0352785b4fc68eea68857db66ba74ac3f60db3