Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174139 - net-mail/dovecot-1.0_rc29 doesn't start segfault-ing
Summary: net-mail/dovecot-1.0_rc29 doesn't start segfault-ing
Status: RESOLVED DUPLICATE of bug 162437
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-11 11:44 UTC by Laurento Frittella (mrfree)
Modified: 2007-04-12 15:17 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 Laurento Frittella (mrfree) 2007-04-11 11:44:43 UTC
It crashes with something like:
dovecot-auth[7430]: segfault at 00000000556aef48 rip 00002b14f14309d7 rsp 00007fffb99fc8f0 error 4

Log reports (I enabled all 'verbose' options):
dovecot: Dovecot v1.0.rc29 starting up
dovecot: Auth process died too early - shutting down
dovecot: child 7430 (auth) killed with signal 11


Here is my emerge --info

Portage 2.1.2.2 (hardened/amd64/multilib, gcc-3.4.6, glibc-2.3.6-r5, 2.6.18-hardened-r6 x86_64)
=================================================================
System uname: 2.6.18-hardened-r6 x86_64 AMD Opteron(tm) Processor 850
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 11 Apr 2007 07:50:01 +0000
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.60
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=opteron -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.uoi.gr/mirror/OS/gentoo/ http://gentoo.inode.at/ http://ftp.heanet.ie/pub/gentoo/"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 apache2 berkdb bzip2 crypt hardened imap justify ldap libwww maildir midi multilib ncurses nls nptl nptlonly pam perl pic python readline sasl sse2 ssl tcpd unicode vhosts xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Laurento Frittella (mrfree) 2007-04-11 11:47:31 UTC
Oops I forgot to add the config files:

base_dir = /var/run/dovecot/
protocols = imap imaps
protocol imap {
        listen = 127.0.0.1
        ssl_listen = *
}
disable_plaintext_auth = yes
syslog_facility = mail
ssl_disable = no
ssl_cert_file = /etc/postfix/ssl/Cert.pem
ssl_key_file = /etc/postfix/ssl/Req.pem
ssl_ca_file = /etc/postfix/ssl/cacert.pem
verbose_ssl = yes
login_dir = /var/run/dovecot/login
login_chroot = yes
login_user = dovecot
mail_location = maildir:/home/vmail/domains/%d/%n
first_valid_uid = 1001
last_valid_uid = 1001
first_valid_gid = 1001
last_valid_gid = 1001
valid_chroot_dirs = /home/vmail/domains
protocol imap {
  imap_client_workarounds = outlook-idle
}
protocol pop3 {
  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}
protocol lda {
  postmaster_address = postmaster@mydomain.com
}
auth_executable = /usr/libexec/dovecot/dovecot-auth
auth_verbose = yes
auth_debug = yes
auth default {
  mechanisms = plain
  passdb ldap {
    args = /etc/dovecot/dovecot-ldap.conf 
  }
  userdb ldap {
    args = /etc/dovecot/dovecot-ldap.conf 
  }
  user = dovecot-auth
}
dict {
}
plugin {
}
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-04-11 11:57:21 UTC
http://www.gentoo.org/doc/en/bugzilla-howto.xml
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-04-12 11:46:38 UTC
Could you try the patch on bug #162437 please?
Comment 4 Laurento Frittella (mrfree) 2007-04-12 15:12:30 UTC
Your patch works like a charm! :)

I tryed it with _rc31 (currently keyworded) and dovecot doesn't crash anymore
Comment 5 Roy Marples (RETIRED) gentoo-dev 2007-04-12 15:17:39 UTC

*** This bug has been marked as a duplicate of bug 162437 ***