I'm getting some cra shes with 1.1.1, but even with these start options: #!/bin/sh mkdir /var/core chmod 1777 /var/core echo /var/core/%p > /proc/sys/kernel/core_pattern ulimit -n 65535 ulimit -c unlimited /usr/local/sbin/dovecot -F I'm not getting any corefiles - why? It definitely used to work :) Jun 22 00:05:53 postamt dovecot: imap-login: *** glibc detected *** imap-login: free(): invalid pointer: 0x08cbd600 *** Jun 22 00:05:53 postamt dovecot: child 28879 (login) killed with signal 6 Jun 22 00:29:58 postamt dovecot: imap-login: *** glibc detected *** imap-login: malloc(): memory corruption: 0x09db3d88 *** Jun 22 00:29:58 postamt dovecot: child 28883 (login) killed with signal 6 Jun 22 00:47:07 postamt dovecot: imap-login: *** glibc detected *** imap-login: free(): invalid pointer: 0x090693d8 *** Jun 22 00:47:07 postamt dovecot: child 28876 (login) killed with signal 6 Jun 22 02:47:27 postamt dovecot: child 28885 (login) killed with signal 11 Jun 22 10:06:19 postamt dovecot: imap-login: *** glibc detected *** imap-login: malloc(): memory corruption: 0x091ee0a0 *** Jun 22 10:06:19 postamt dovecot: child 28887 (login) killed with signal 6 Jun 22 15:20:21 postamt dovecot: imap-login: *** glibc detected *** imap-login: malloc(): memory corruption: 0x09f84718 *** Jun 22 15:20:21 postamt dovecot: child 12530 (login) killed with signal 6 -- Ralf Hildebrandt (Ralf.Hildebrandt at charite.de) snickebo at charite.de Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de All the features in the world only do more to make me believe that Sendmail is hopelessly baroque, like some huge construction with chrome and tailfins sticking out in every direction -- like some monstrocity sculpted by people not the least bit interested in correctness.
On Jun 22, 2008, at 5:38 PM, Ralf Hildebrandt wrote:> I'm getting some cra shes with 1.1.1, but even with these start > options: > > #!/bin/sh > mkdir /var/core > chmod 1777 /var/core > echo /var/core/%p > /proc/sys/kernel/core_pattern > ulimit -n 65535 > ulimit -c unlimited > /usr/local/sbin/dovecot -F > > I'm not getting any corefiles - why? It definitely used to work :)Also from login processes? One problem with it is that it calls setuid() after exec(), so kernel thinks it's a setuid-program and doesn't dump its core. But I don't know if changing core_pattern is supposed to change that behavior. The other problem is that it's chrooted, but I guess that doesn't matter then.> Jun 22 00:05:53 postamt dovecot: imap-login: *** glibc detected *** > imap-login: free(): invalid pointer: 0x08cbd600 ***Well, these really aren't good and there's a good chance that cores won't help finding out the cause. The best way would be to run via valgrind: login_executable = /usr/bin/valgrind /usr/local/libexec/dovecot/ imap-login I don't really have any good guesses as to why these could be happening, but could you post your dovecot -n output? Maybe there are some less common settings.. -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080622/5612561f/attachment-0002.bin>
* Timo Sirainen <tss at iki.fi>:> Well, these really aren't good and there's a good chance that cores won't > help finding out the cause. The best way would be to run via valgrind: > > login_executable = /usr/bin/valgrind /usr/local/libexec/dovecot/ > imap-loginI can try that.> I don't really have any good guesses as to why these could be happening, > but could you post your dovecot -n output? Maybe there are some less > common settings..attached -- Ralf Hildebrandt (Ralf.Hildebrandt at charite.de) snickebo at charite.de Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de "Looking at the proliferation of personal web pages on the net, it looks like very soon everyone on earth will have 15 Megabytes of fame." -MG Siriam -------------- next part -------------- # 1.1.1: /usr/local/etc/dovecot.conf protocols: imap imaps pop3s ssl_cert_file: /etc/ssl/certs/postamt.pem ssl_key_file: /etc/ssl/private/postamt.key disable_plaintext_auth: no login_dir: /usr/local/var/run/dovecot/login login_executable(default): /usr/local/libexec/dovecot/imap-login login_executable(imap): /usr/local/libexec/dovecot/imap-login login_executable(pop3): /usr/local/libexec/dovecot/pop3-login login_process_per_connection: no login_greeting_capability(default): yes login_greeting_capability(imap): yes login_greeting_capability(pop3): no login_processes_count: 16 login_max_processes_count: 1024 login_max_connections: 512 max_mail_processes: 1024 mail_max_userip_connections: 1024 verbose_proctitle: yes mail_location: maildir:~/Maildir fsync_disable: yes maildir_copy_preserve_filename: yes mail_drop_priv_before_exec: yes mail_executable(default): /usr/local/sbin/imap_login_script mail_executable(imap): /usr/local/sbin/imap_login_script mail_executable(pop3): /usr/local/sbin/pop_login_script mail_plugins(default): quota imap_quota trash mail_log fts fts_squat mail_plugins(imap): quota imap_quota trash mail_log fts fts_squat mail_plugins(pop3): quota mail_log mail_plugin_dir(default): /usr/local/lib/dovecot/imap mail_plugin_dir(imap): /usr/local/lib/dovecot/imap mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3 mail_log_max_lines_per_sec: 0 imap_client_workarounds(default): outlook-idle netscape-eoh imap_client_workarounds(imap): outlook-idle netscape-eoh imap_client_workarounds(pop3): pop3_lock_session(default): no pop3_lock_session(imap): no pop3_lock_session(pop3): yes pop3_uidl_format(default): %08Xu%08Xv pop3_uidl_format(imap): %08Xu%08Xv pop3_uidl_format(pop3): %v-%u pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh namespace: type: private separator: . prefix: INBOX. inbox: yes list: yes subscriptions: yes auth default: mechanisms: plain login cache_size: 64 master_user_separator: * verbose: yes passdb: driver: passwd-file args: /usr/local/etc/dovecot.masterusers pass: yes master: yes passdb: driver: shadow passdb: driver: pam args: cache_key=%u dovecot userdb: driver: passwd socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix plugin: fts: squat quota: maildir quota_rule: Trash:storage=100M quota_warning: storage=90%% /usr/local/scripts/quota-warning 90 quota_warning2: storage=95%% /usr/local/scripts/quota-warning 95 quota_warning3: storage=99%% /usr/local/scripts/quota-warning 99 trash: /usr/local/etc/dovecot-trash.conf