Create a small text file that contains the necessary commands:

cat > test.txt
x login myusername mypassword
x select INBOX
x UID SEARCH CHARSET ISO-8859-1 ALL BODY "aa"
CTRL-D

bash: #> gdb /usr/sbin/dbmail-imapd
gdb> run -n < test.txt
...
...

if gdb reports a crash:

gdb> bt


But please try Jonathans solution as well, just to make sure this is not a client timeout.


Aleksander Kamenik wrote:
Jorge Bastos wrote:
Hi,
How do i debug with gdb?

Google!

I think it went like this:
$ gdb
 > exec /path/to/executable
 > run
 > bt

exec tell gdb what program to run, run executes it and bt produces a backtrace.

HTH,



--
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to