Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 564716 - net-mail/cyrus-imapd-2.5.6 : lmtpd segfaults
Summary: net-mail/cyrus-imapd-2.5.6 : lmtpd segfaults
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal critical (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-02 17:34 UTC by Stefan G. Weichinger
Modified: 2015-11-03 11:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan G. Weichinger 2015-11-02 17:34:54 UTC
upgraded from 2.4.17 to 2.5.6.
In preparation I rebuilt glibc, glib, gcc ... and the other mail-components postfix and cyrus-sasl.

The lmtpd that worked before now crashes, either as socket or ipv4.

See segfaults below.





Reproducible: Always

Steps to Reproduce:
# cyrus.conf
lmtpunix	cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0

# /etc/postfix/main.cf
mailbox_transport = lmtp:unix:/var/imap/socket/lmtp

# ls -l /var/imap/socket/lmtp
srwxrwxrwx 1 root root 0 Nov  2 13:04 /var/imap/socket/lmtp
Actual Results:  
Nov 02 14:01:59 postler.lichtfels.com kernel: lmtpd[17148]: segfault at
173e450 ip 00007f09acc141b5 sp 00007ffc379dab30 error 4 in
libc-2.21.so[7f09acb9e000+18b000]

Nov 02 14:01:59 postler.lichtfels.com master[8091]: process type:SERVICE
name:lmtpunix path:/usr/lib64/cyrus/lmtpd age:0.324s pid:17148 signaled
to death by signal 11 (Segmentation fault)

# dmesg

[12630549.982443] lmtpd[17655]: segfault at 778ba0 ip 00007f5f3a1091b5
sp 00007ffe0dda3470 error 4 in libc-2.21.so[7f5f3a093000+18b000]
[12630550.204617] lmtpd[17671]: segfault at 250f6c0 ip 00007fd6bdc6b1b5
sp 00007fffd49d63a0 error 4 in libc-2.21.so[7fd6bdbf5000+18b000]
[12630550.834193] lmtpd[17678]: segfault at 12056b0 ip 00007f86e19461b5
sp 00007ffe7f076260 error 4 in libc-2.21.so[7f86e18d0000+18b000]
[12630552.372314] show_signal_msg: 5 callbacks suppressed
[12630552.372321] lmtpd[17748]: segfault at 214f050 ip 00007f65586331b5
sp 00007fffbe826030 error 4 in libc-2.21.so[7f65585bd000+18b000]
[12630552.666540] lmtpd[17743]: segfault at 143f150 ip 00007f095d5ea1b5
sp 00007fff5436c9c0 error 4 in libc-2.21.so[7f095d574000+18b000]
[12630552.739760] lmtpd[17769]: segfault at 1e16560 ip 00007fc9abdeb1b5
sp 00007fffa0481150 error 4 in libc-2.21.so[7fc9abd75000+18b000]

maybe this is also relevant:

Nov 02 14:06:12 postler.lichtfels.com master[5188]: unable to
setsocketopt(IP_TOS) service lmtpunix/unix: Operation not supported

Nov 02 14:06:12 postler.lichtfels.com master[5188]: unable to
setsocketopt(IP_TOS) service notify/unix: Operation not supported



Expected Results:  
correct delivery of every email.
Right now it seems as if some mail gets through and some not.

I can't get mails out of the postfix queue with "postsuper -r ALL".


# emerge --info
!!! Repository 'webapp-experimental' is missing masters attribute in '/var/lib/layman/webapps-experimental/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility
Portage 2.2.18 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.9.3, glibc-2.21-r1, 3.18.12-gentoo x86_64)
=================================================================
System uname: Linux-3.18.12-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5600+-with-gentoo-2.2
KiB Mem:     4015716 total,    160860 free
KiB Swap:    1477968 total,   1477932 free
Timestamp of repository gentoo: Mon, 02 Nov 2015 11:30:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p39::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.2.5-r6::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           2.8.12.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.11.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.7.3-r1::gentoo, 4.8.4::gentoo, 4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

webapp-experimental
    location: /var/lib/layman/webapps-experimental
    masters: gentoo
    priority: 0

hiro-oops-intern
    location: /usr/local/portage
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /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.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm hardenedphp iconv ipv6 mmx mmxext modules multilib ncurses nls nptl openmp pam pcre readline sasl seccomp session sse sse2 ssl systemd tcpd unicode xattr zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="proxy proxy_ajp proxy_http authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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 ublox 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" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Stefan G. Weichinger 2015-11-02 17:36:44 UTC
I posted on the info-cyrus ML already, no feedback so far.
Comment 2 Stefan G. Weichinger 2015-11-02 23:25:36 UTC
something around sieve-scripts. still digging.
Comment 3 Stefan G. Weichinger 2015-11-03 11:04:15 UTC
Solved for me:

some outdated sieve-scripts crashed lmtpd (dunno why) ... removing them makes things work again.

sorry for the noise