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

Bug 99497

Summary: qmail-1.03-r16: qmail-remote seg faults
Product: Gentoo Linux Reporter: Andrei Ivanov <andrei.ivanov>
Component: Current packagesAssignee: Qmail Team (OBSOLETE) <qmail-bugs+disabled>
Status: VERIFIED TEST-REQUEST    
Severity: major CC: frank-schmitt
Priority: High    
Version: 2005.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 40486    
Attachments: qmail-remote strace.log

Description Andrei Ivanov 2005-07-19 02:06:06 UTC
After upgrading to r16, qmail-remote crashes.
Downgrading to r15 makes it work again

[ebuild     U ] mail-mta/qmail-1.03-r16 [1.03-r15] -logmail -mailwrapper
+noauthcram -notlsbeforeauth (-selinux) +ssl

=================================================================
System uname: 2.6.11-gentoo-r10 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.13
dev-lang/python:     2.2.3-r5, 2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.11
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
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays
-ffast-math -fforce-addr -falign-functions=4 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/alias /var/qmail/control
/var/run/dspam /var/spool/dspam"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays
-ffast-math -fforce-addr -falign-functions=4 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks fixpackages sandbox sfperms strict userpriv
usersandbox"
GENTOO_MIRRORS="http://ftp.lug.ro/gentoo/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 acl adns alsa apache2 berkdb bitmap-fonts crypt curl emboss fam flash
freetds gd gif gpm imagemagick imap innodb java javamail jpeg junit ldap libg++
libwww maildir memlimit mp3 ncurses nls noauthcram nptl oss pam pdflib pg-hier
pg-intdatetime pg-vacuumdelay pic png python readline ruby samba slang slp spell
sse ssl tcpd tiff truetype truetype-fonts type1-fonts unicode xml xml2 zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Andrei Ivanov 2005-07-19 02:06:46 UTC
Created attachment 63759 [details]
qmail-remote strace.log
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-07-19 04:02:54 UTC
please submit a decoded backtrace for qmail-remote.
1. CFLAGS="-ggdb3 -O1" emerge qmail
2. enable coredumps for qmail-remote
3. let qmail-remote run, so it generates a core dump.
4. gdb /var/qmail/bin/qmail-remote YOURCOREDUMP
5. gdb command is 'bt'.

paste in the output from #5.
Comment 3 Andrei Ivanov 2005-07-19 04:49:14 UTC
Reading symbols from /usr/lib/libssl.so.0.9.7...done.
Loaded symbols for /usr/lib/libssl.so.0.9.7
Reading symbols from /usr/lib/libcrypto.so.0.9.7...done.
Loaded symbols for /usr/lib/libcrypto.so.0.9.7
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0  0x0804c449 in timeoutconn (s=3, ip=0x3, smtpip=0x19, port=60, timeout=3) at
timeoutconn.c:29
29         if ( ( smtpip            != 0 ) &&
(gdb) bt
#0  0x0804c449 in timeoutconn (s=3, ip=0x3, smtpip=0x19, port=60, timeout=3) at
timeoutconn.c:29
#1  0x0804bb85 in main (argc=4, argv=0xbffff994) at qmail-remote.c:984
(gdb)
Comment 4 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-07-19 08:15:16 UTC
Confirmed, I'm working on it. I must have broken it with some of the new patches.
Comment 5 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-07-19 08:42:07 UTC
It's the patch from bug 98961. I've commented it out in the ebuild in CVS, but
if you don't want to wait for rsync, just comment line 254 in the ebuild. I'll
fix the patch itself this evening -- or drop it finally if it's unfixable.
Comment 6 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-07-19 16:03:01 UTC
I've fixed the patch locally, but the patch has generally a problem with the
moreipme patch. I'll fix this tomorrow and readd it to the ebuild.
Comment 7 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-07-20 07:12:55 UTC
Okay, the fixed patch is in CVS. Can you test it again, please? (A friend of
mine and I did already, but just to be sure)
Comment 8 Andrei Ivanov 2005-07-21 00:51:48 UTC
It seems to work now.
Comment 9 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-08-06 12:45:44 UTC
Thanks for testing