[Dovecot] Segfault by asking for a folder?
I 'hg pull'ed and now my Dovecot segfaults when I select a particular folder. I've removed all files with 'index' in the name, so I don't think it's due to bad indexes.
Oct 21 09:18:40 alchemy dovecot: Dovecot v1.1.beta3 starting up
Oct 21 09:18:47 alchemy dovecot: imap-login: Login: user=<paulproteus>,
method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, TLS
Oct 21 09:18:47 alchemy dovecot: child 28714 (imap) killed with signal 11
is in syslog.
I haven't stripped the binaries as far as I know, yet here's what seems to happen in gdb:
paulproteus@alchemy:~/dovecot.rawlog $ gdb dovecot
[snip] This GDB was configured as "i486-linux-gnu"... Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". (gdb) set args --exec-mail imap (gdb) run Starting program: /usr/local/sbin/dovecot --exec-mail imap * PREAUTH [CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS UIDPLUS LIST-EXTENDED] Logged in as paulproteus 01 SELECT pinerc
Program received signal SIGSEGV, Segmentation fault.
Cannot remove breakpoints because program is no longer writable.
It might be running in another process.
Further execution is probably impossible.
0x08073d0d in ?? ()
(gdb) bt
#0 0x08073d0d in ?? ()
#1 0xbff92f70 in ?? ()
#2 0x00000000 in ?? ()
(gdb) bt full
#0 0x08073d0d in ?? ()
No symbol table info available.
#1 0xbff92f70 in ?? ()
No symbol table info available.
#2 0x00000000 in ?? ()
No symbol table info available.
(gdb)
Uh? It seems to also segfault the same way if I select INBOX.
-- Asheesh.
-- You'll never see all the places, or read all the books, but fortunately, they're not all recommended.
On Sun, 21 Oct 2007, Asheesh Laroia wrote:
I 'hg pull'ed and now my Dovecot segfaults when I select a particular folder. I've removed all files with 'index' in the name, so I don't think it's due to bad indexes.
I 'hg bisect'ed between 1.1.beta3 and the tip with this as my test:
sh autogen.sh && ./configure && make && sudo make install && echo 'lol SELECT pinerc' | dovecot --exec-mail imap
If it didn't segfault, I would tell hg 'hg bisect good'; if it did, I did 'hg bisect bad'. At the end of it all, hg told me:
paulproteus@alchemy:~/dnlds/dovecot $ hg bisect good The first bad revision is: changeset: 6599:a6f51026b969 branch: HEAD user: Timo Sirainen tss@iki.fi date: Sun Oct 21 18:54:32 2007 +0300 summary: Added maildir_uidlist_init_readonly() and maildir_uidlist_get_uid().
I haven't actually examined this changeset (yet? perhaps tomorrow), but hopefully finding it as the problem will help figure out what's up.
This was my first VCS-coordinated bisection. Yippee!
-- Asheesh.
-- "Being against torture ought to be sort of a multipartisan thing." -- Karl Lehenbauer, as amended by Jeff Daiell, a Libertarian
participants (1)
-
Asheesh Laroia