On Wed, Jun 30, 2010 at 22:28, Timo Sirainen <tss@iki.fi> wrote:
On Wed, 2010-06-30 at 21:57 +0200, Sven Kirmess wrote:
$ openssl s_client -connect localhost:993 -crlf
1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS] Logged in b list "Trash" *
- LIST (\HasNoChildren) "/" "Trash" b OK List completed. c list "test2" *
- LIST (\HasNoChildren) "/" "test2" c OK List completed. d rename "test2" "Trash/test2" closed
Works with me.
I get this message in syslog:
core not dumped - set drop_priv_before_exec=yes
And when I set drop_priv_before_exec=yes in dovecot.conf I get this:
doveconf: Fatal: Error in configuration file /etc/opt/dovecot/dovecot/dovecot.conf line 86: Unknown setting: drop_priv_before_exec
Yeah, it doesn't specify that it should be inside service imap {} section.
Following http://dovecot.org/bugreport.html I set mail_drop_priv_before_exec=yes in dovecot.conf and get:
doveconf: Warning: Obsolete setting in /etc/opt/dovecot/dovecot/dovecot.conf:86: mail_drop_priv_before_exec has been replaced by service { drop_priv_before_exec } doveconf: Fatal: Error in configuration file /etc/opt/dovecot/dovecot/dovecot.conf line 86: Unknown setting: drop_priv_before_exec
I don't understand why some people get this error. I haven't been able to reproduce it.
Anyway, there's an easy way now that you can easily reproduce it:
- openssl s_client ..
- login
- gdb -p
pidof imap
cont- make it crash
- gdb should now have stopped, and you can give "bt" command.
I can't make it crash. As soon as I attach gdb to the process it doesn't do anything. It just hangs.
$ openssl s_client a login ... a OK ...
ROOT@azati:dovecot> ps -ef|grep imap ski 10682 22251 0 16:40:16 ? 0:00 dovecot/imap dovenull 10679 22251 0 16:40:10 ? 0:00 dovecot/imap-login root 10684 10617 0 16:40:21 pts/3 0:00 grep imap ROOT@azati:dovecot> /opt/gdb/bin/gdb -p 10682 GNU gdb (GDB) 7.1 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i386-pc-solaris2.10". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Attaching to process 10682 [New process 10682] Retry #1: Retry #2: Retry #3: Retry #4: 0xfecea5b5 in ?? () (gdb)
I typed the following in the openssl d rename "test2" "Trash/test2"
and it just hangs for 2 hours now.