On 10.7.2010, at 19.11, Sven Kirmess wrote: >> 3. gdb -p `pidof imap` >> cont >> 4. make it crash >> 5. 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.
You need to give gdb the "cont" command after attaching to it. > r...@azati:dovecot> /opt/gdb/bin/gdb -p 10682 .. > 0xfecea5b5 in ?? () Also looks like gdb -p isn't working properly. You need to instead use gdb /path/to/imap pid