Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 529052 - net-mail/dovecot-? - imap-login: segmentation fault when using post-login in ? at ?
Summary: net-mail/dovecot-? - imap-login: segmentation fault when using post-login in ...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Eray Aslan
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-12 16:55 UTC by Nico Rittner
Modified: 2021-01-21 10:58 UTC (History)
1 user (show)

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 Nico Rittner 2014-11-12 16:55:53 UTC
hello,

i get these lines in syslog when using post-login within imap-login:

imap-login: Fatal: master: service(imap-login): child 574 killed with signal 11 (core dumps disabled)
imap[5523]: segfault at 14 ip b7556276 sp bfc1c940 error 4 in libdovecot.so.0.0.0[b7529000+d4000]   

these are the relevant sections i added:

service imap-login {
  executable = imap post-login
}

service post-login {
  executable = script-login /path/to/exec
}

i also used /bin/true as /path/to/exec to exclude
the used exec itself as the reason. same result.

version in use is 2.2.13-r1. this behaviour can be
reproduced on two other of my gentoo-machines.
described feature worked in previous version(s),
don't know the exact version number.

i'll cc this to mailinglist dovecot@dovecot.org

thanks a lot for your suggestions.

nico 

---

Portage 2.2.8-r2 (default/linux/x86/13.0, gcc-4.7.3, glibc-2.19-r1, 3.12.21-jason-bare-i686-1403781919 i686)
=================================================================
System uname: Linux-3.12.21-jason-bare-i686-1403781919-i686-Intel-R-_Xeon-R-_CPU_5160_@_3.00GHz-with-gentoo-2.2
KiB Mem:     3374184 total,    707432 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Mon, 10 Nov 2014 09:00:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.7
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo layer23
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/* /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="-O2 -march=i686 -fomit-frame-pointer -pipe"
DISTDIR="/tmp"
FCFLAGS="-O2 -march=i686 -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 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/tmp"
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"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/dat/local/share/portage"
USE="alsa berkdb bzip2 cli cxx dri fortran gd iconv imap jpeg mbox modules mysql ncurses nptl openmp pam pcre perl png readline sasl session ssl syslog tcpd tiff truetype unicode x86 xml zlib" ABI_X86="32" 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" APACHE2_MODULES="actions alias auth_basic auth_digest filter authn_default authn_file authz_default authz_groupfile authz_host authz_owner authz_user cgi deflate dumpio dav dav_fs dir env expires headers include info log_config mime mime_magic proxy proxy_balancer proxy_connect proxy_http rewrite setenvif so status userdir unique_id vhost_alias" APACHE2_MPMS="itk" 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" 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" NGINX_MODULES_HTTP="access auth_basic charset dav fastcgi gzip limit_req map proxy rewrite ssl stub_status" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="i386" RUBY_TARGETS="ruby19 ruby20" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

doveconf -n:
# 2.2.13: /etc/dovecot/dovecot.conf
# OS: Linux 3.12.21-jason-bare-i686-1403781919 i686
auth_mechanisms = plain login
default_idle_kill = 30 secs
default_login_user = dovecot
default_process_limit = 16
disable_plaintext_auth = no
first_valid_gid = 1000
first_valid_uid = 1000
listen = *
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c %k
mail_debug = yes
mail_location = maildir:%h/mail:INBOX=%h/mail/incoming/.mail:LAYOUT=fs:DIRNAME=.mail
mail_privileged_group = mail
namespace {
  inbox = yes
  location =
  mailbox archive {
    auto = subscribe
    special_use = \Archive
  }
  mailbox drafts {
    auto = subscribe
    special_use = \Drafts
  }
  mailbox junk {
    auto = subscribe
    special_use = \Junk
  }
  mailbox sent {
    auto = subscribe
    special_use = \Sent
  }
  mailbox trash {
    auto = subscribe
    special_use = \Trash
  }
  prefix =
  separator = /
  type = private
}
namespace {
  inbox = no
  location = maildir:%h/mail/incoming:LAYOUT=fs:DIRNAME=.mail
  prefix = INBOX/
  separator = /
  type = private
}
passdb {
  driver = pam
}
protocols = imap
ssl_cert = </etc/dovecot/ssl/certificate.pem
ssl_key = </etc/dovecot/ssl/key.pem
ssl_protocols = !SSLv3 !SSLv2
syslog_facility = local7
userdb {
  driver = passwd
}
verbose_proctitle = yes
protocol pop3 {
  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
  pop3_uidl_format = %g
}
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-13 00:50:35 UTC
1) Please post your `emerge -vpq net-mail/dovecot' output in a comment.
2) Please try to obtain a full gdb backtrace (use the core dump) and post the output.
Comment 2 Eray Aslan gentoo-dev 2021-01-21 10:58:52 UTC
Closing.  Please let me know if this is still a problem