[Dovecot] imap core dumping on signal 10

Timo Sirainen tss at iki.fi
Wed Jul 21 19:26:27 EEST 2010


On Wed, 2010-07-21 at 12:05 -0400, Chris Hoogendyk wrote:
> #0  0x000aa19c in mail_index_map (index=0x489, type=0) at /usr/local/src/dovecot/dovecot-1.2.12/src/lib-index//mail-index-map.c:502
..
> #1  0x000a5adc in mail_index_try_open (index=0x160820) at /usr/local/src/dovecot/dovecot-1.2.12/src/lib-index//mail-index.c:300

There is still too much optimization.. There should have been at least 2
functions between these two.

> (gdb) p hdr
> 
> $1 = (const struct mail_index_header *) 0x0
> 
> (gdb) p *hdr
> 
> Cannot access memory at address 0x0
> 
> (gdb) p &map->hdr
> 
> No symbol "map" in current context.
> 
> (gdb) p *map->rec_map
> 
> No symbol "map" in current context.

These also fail because of the optimization. Well, maybe just try it the
other way:

CFLAGS=-g ./configure
make clean
make

That should at least get rid of the optimizations. But I'm not sure if
it crashes anymore with that. If it doesn't, try 

CFLAGS='-g -O' ./configure



More information about the dovecot mailing list