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

Bug 246103

Summary: mail-mta/ssmtp-2.62-r3 crashes when sending email
Product: Gentoo Linux Reporter: garfungiloops <stepankov>
Component: New packagesAssignee: Net-Mail Packages <net-mail+disabled>
Status: RESOLVED NEEDINFO    
Severity: normal CC: asolokha
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description garfungiloops 2008-11-08 22:09:52 UTC
sending email with Mutt, crashes ssmtp

*** glibc detected *** ssmtp: free(): invalid pointer: 0x080569a9 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7db4a00]
/lib/libc.so.6(cfree+0x89)[0xb7db66f9]
ssmtp[0x804b3ef]
======= Memory map: ========
08048000-0804f000 r-xp 00000000 03:03 1395538    /usr/sbin/ssmtp
0804f000-08050000 r--p 00006000 03:03 1395538    /usr/sbin/ssmtp
08050000-08051000 rw-p 00007000 03:03 1395538    /usr/sbin/ssmtp
08051000-08076000 rw-p 08051000 00:00 0          [heap]
b7a00000-b7a21000 rw-p b7a00000 00:00 0
b7a21000-b7b00000 ---p b7a21000 00:00 0
b7bc7000-b7bcf000 r-xp 00000000 03:03 709830     /lib/libnss_files-2.6.1.so
b7bcf000-b7bd0000 r--p 00007000 03:03 709830     /lib/libnss_files-2.6.1.so
b7bd0000-b7bd1000 rw-p 00008000 03:03 709830     /lib/libnss_files-2.6.1.so
b7bd1000-b7bd9000 r-xp 00000000 03:03 709856     /lib/libnss_nis-2.6.1.so
b7bd9000-b7bda000 r--p 00007000 03:03 709856     /lib/libnss_nis-2.6.1.so
b7bda000-b7bdb000 rw-p 00008000 03:03 709856     /lib/libnss_nis-2.6.1.so
b7bdb000-b7bee000 r-xp 00000000 03:03 709853     /lib/libnsl-2.6.1.so
b7bee000-b7bef000 r--p 00012000 03:03 709853     /lib/libnsl-2.6.1.so
b7bef000-b7bf0000 rw-p 00013000 03:03 709853     /lib/libnsl-2.6.1.so


Reproducible: Always




root:~# emerge --info
Portage 2.1.4.5 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.26-gentoo-r1 i686)
=================================================================
System uname: 2.6.26-gentoo-r1 i686 AMD Athlon(tm) XP 3100+
Timestamp of tree: Mon, 27 Oct 2008 20:05:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en ru de"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl alsa berkdb bidi bzip2 cdr cli clucene cracklib crypt cups cvs dbus directfb divx4linux dri dvd dvdr dvdread encode exif faad fbcon ffmpeg fortran gdbm gif gimp gimpprint glitz gpm gtk hal icc iconv imagemagick imlib ipv6 isdnlog jack jpeg kde mad matroska midi mjpeg mmx mmxext mozilla mp3 mpeg mudflap ncurses nls nptl nptlonly nvidia ogg opengl openmp oss pam pcre pdf perl png pppd python qt qt4 readline real reflection samba sdl session slang spl sql sqlite3 sse ssl svg sysfs tcpd threads threadsafe tiff truetype unicode usb v4l v4l2 vidix vim-syntax vorbis win32codecs wma wxwindows x264 x86 xcomposite xine xml xorg xv xvid zlib" ALSA_CARDS="intel8x0 usb-audio" 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 authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru de" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 garfungiloops 2008-11-08 22:12:44 UTC
*** glibc detected *** ssmtp: free(): invalid pointer: 0x080569a9 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7db4a00]
/lib/libc.so.6(cfree+0x89)[0xb7db66f9]
ssmtp[0x804b3ef]
======= Memory map: ========
08048000-0804f000 r-xp 00000000 03:03 1395538    /usr/sbin/ssmtp
0804f000-08050000 r--p 00006000 03:03 1395538    /usr/sbin/ssmtp
08050000-08051000 rw-p 00007000 03:03 1395538    /usr/sbin/ssmtp
08051000-08076000 rw-p 08051000 00:00 0          [heap]
b7a00000-b7a21000 rw-p b7a00000 00:00 0
b7a21000-b7b00000 ---p b7a21000 00:00 0
b7bc7000-b7bcf000 r-xp 00000000 03:03 709830     /lib/libnss_files-2.6.1.so
b7bcf000-b7bd0000 r--p 00007000 03:03 709830     /lib/libnss_files-2.6.1.so
b7bd0000-b7bd1000 rw-p 00008000 03:03 709830     /lib/libnss_files-2.6.1.so
b7bd1000-b7bd9000 r-xp 00000000 03:03 709856     /lib/libnss_nis-2.6.1.so
b7bd9000-b7bda000 r--p 00007000 03:03 709856     /lib/libnss_nis-2.6.1.so
b7bda000-b7bdb000 rw-p 00008000 03:03 709856     /lib/libnss_nis-2.6.1.so
b7bdb000-b7bee000 r-xp 00000000 03:03 709853     /lib/libnsl-2.6.1.so
b7bee000-b7bef000 r--p 00012000 03:03 709853     /lib/libnsl-2.6.1.so
b7bef000-b7bf0000 rw-p 00013000 03:03 709853     /lib/libnsl-2.6.1.so
b7bf0000-b7bf2000 rw-p b7bf0000 00:00 0
b7bf2000-b7bf8000 r-xp 00000000 03:03 709860     /lib/libnss_compat-2.6.1.so
b7bf8000-b7bf9000 r--p 00005000 03:03 709860     /lib/libnss_compat-2.6.1.so
b7bf9000-b7bfa000 rw-p 00006000 03:03 709860     /lib/libnss_compat-2.6.1.so
b7bfa000-b7bfb000 rw-p b7bfa000 00:00 0
b7bfb000-b7bfd000 r-xp 00000000 03:03 709705     /lib/libdl-2.6.1.so
b7bfd000-b7bfe000 r--p 00001000 03:03 709705     /lib/libdl-2.6.1.so
b7bfe000-b7bff000 rw-p 00002000 03:03 709705     /lib/libdl-2.6.1.so
b7bff000-b7d36000 r-xp 00000000 03:03 983399     /usr/lib/libcrypto.so.0.9.8
b7d36000-b7d3e000 r--p 00137000 03:03 983399     /usr/lib/libcrypto.so.0.9.8
b7d3e000-b7d4c000 rw-p 0013f000 03:03 983399     /usr/lib/libcrypto.so.0.9.8
b7d4c000-b7d4f000 rw-p b7d4c000 00:00 0
b7d4f000-b7e79000 r-xp 00000000 03:03 709845     /lib/libc-2.6.1.so
b7e79000-b7e7b000 r--p 0012a000 03:03 709845     /lib/libc-2.6.1.so
b7e7b000-b7e7c000 rw-p 0012c000 03:03 709845     /lib/libc-2.6.1.so
b7e7c000-b7e7f000 rw-p b7e7c000 00:00 0
b7e7f000-b7ec1000 r-xp 00000000 03:03 983414     /usr/lib/libssl.so.0.9.8
b7ec1000-b7ec2000 r--p 00041000 03:03 983414     /usr/lib/libssl.so.0.9.8
b7ec2000-b7ec5000 rw-p 00042000 03:03 983414     /usr/lib/libssl.so.0.9.8
b7ec5000-b7ec6000 rw-p b7ec5000 00:00 0
b7ee5000-b7eef000 r-xp 00000000 03:03 1131744
+/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1
b7eef000-b7ef0000 rw-p 00009000 03:03 1131744
+/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1
b7ef0000-b7ef1000 rw-p b7ef0000 00:00 0
b7ef1000-b7f0b000 r-xp 00000000 03:03 709417     /lib/ld-2.6.1.so
b7f0b000-b7f0c000 r--p 00019000 03:03 709417     /lib/ld-2.6.1.so
b7f0c000-b7f0d000 rw-p 0001a000 03:03 709417     /lib/ld-2.6.1.so
bf9f7000-bfa0d000 rw-p bffea000 00:00 0          [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0          [vdso]
Comment 2 Arseny Solokha 2008-11-19 12:45:51 UTC
Can you build it with debugging support and provide backtrace?
Comment 3 Tobias Scherbaum (RETIRED) gentoo-dev 2008-11-29 18:49:00 UTC
(In reply to comment #2)
> Can you build it with debugging support and provide backtrace?
> 

plus try to rebuild with -O2 ... re-open if you have the requested information.