You have to compile dbmail with debug,

> -----Original Message-----
> From: dbmail-boun...@dbmail.org [mailto:dbmail-boun...@dbmail.org] On
> Behalf Of James Greig
> Sent: sexta-feira, 14 de Março de 2014 17:11
> To: DBMail mailinglist
> Subject: Re: [Dbmail] Iphone HTML emails
> 
> Scratch that.  But doesn't seem no matter what I do this is the only
> output I ever get when doing bt or bt full on pop3d
> 
> (gdb) bt
> #0  0x0000000803ed64dc in ?? () from /lib/libthr.so.3
> #1  0x0000000803ed07b5 in ?? () from /lib/libthr.so.3
> #2  0x0000000803ed88ed in ?? () from /lib/libthr.so.3
> #3  0x0000000802df2b15 in doSweep () from /usr/local/lib/libzdb.so.9
> #4  0x0000000803eced34 in ?? () from /lib/libthr.so.3
> #5  0x0000000000000000 in ?? ()
> (gdb) bt
> #0  0x0000000803ed64dc in ?? () from /lib/libthr.so.3
> #1  0x0000000803ed07b5 in ?? () from /lib/libthr.so.3
> #2  0x0000000803ed88ed in ?? () from /lib/libthr.so.3
> #3  0x0000000802df2b15 in doSweep () from /usr/local/lib/libzdb.so.9
> #4  0x0000000803eced34 in ?? () from /lib/libthr.so.3
> #5  0x0000000000000000 in ?? ()
> (gdb) bt full
> #0  0x0000000803ed64dc in ?? () from /lib/libthr.so.3 No symbol table
> info available.
> #1  0x0000000803ed07b5 in ?? () from /lib/libthr.so.3 No symbol table
> info available.
> #2  0x0000000803ed88ed in ?? () from /lib/libthr.so.3 No symbol table
> info available.
> #3  0x0000000802df2b15 in doSweep () from /usr/local/lib/libzdb.so.9 No
> symbol table info available.
> #4  0x0000000803eced34 in ?? () from /lib/libthr.so.3 No symbol table
> info available.
> #5  0x0000000000000000 in ?? ()
> No symbol table info available.
> 
> I imagine I'm doing something completely wrong here=/
> 
> Best regards,
> 
> James Greig
> -----Original Message-----
> From: dbmail-boun...@dbmail.org [mailto:dbmail-boun...@dbmail.org] On
> Behalf Of James Greig
> Sent: 14 March 2014 16:12
> To: DBMail mailinglist
> Subject: Re: [Dbmail] Iphone HTML emails
> 
> Eugh.  Wish it was that easy for me but unfortunately this is freebsd
> which will mean kernel rebuilds etc by the looks of it.  Running gdb -p
> XXXX requires ptrace drivers.
> 
> Best regards,
> 
> James Greig
> 
> -----Original Message-----
> From: dbmail-boun...@dbmail.org [mailto:dbmail-boun...@dbmail.org] On
> Behalf Of Reindl Harald
> Sent: 14 March 2014 15:41
> To: dbmail@dbmail.org
> Subject: Re: [Dbmail] Iphone HTML emails
> 
> 
> Am 14.03.2014 16:31, schrieb James Greig:
> > Just happened again so I've killed pop3d and started with gdb
> 
> oh no - the stop makes the problem go away try the script below and
> replace "imapd" with "pop3d"
> the idea behind is find the *thread* which hangs and backtrace that one
> 
> that was used to find "Fixed critical spinlock when appending empty
> string"
> http://git.dbmail.eu/paul/dbmail/commit/?h=dbmail_3_1&id=b93924f9238506
> ea69dc23c66898ddaa9380e36d
> _______________________________________________________
> 
> #!/bin/bash
> MAXCPU=20
> IMAPPID=`pidof dbmail-imapd`
> # find busy threads
> BUSY=`top -H -b -n1 -p $IMAPPID|grep 'pool'|awk '{if ($9 > $MAXCPU)
> print $1}'|head -1` if [ -n "$BUSY" ]; then
>   # generate a gdb commandfile
>   tmpfile=`mktemp`
>   echo 'bt' > $tmpfile
>   # get a backtrace
>   gdb --batch -x $tmpfile -p $BUSY > dbmail-debug-backtrace.$BUSY.txt
>   rm -f $tmpfile
> fi
> 
> _______________________________________________
> DBmail mailing list
> DBmail@dbmail.org
> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
> _______________________________________________
> DBmail mailing list
> DBmail@dbmail.org
> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to