Hi,

Trying to debug qmail-smtp as it segfault after a patch.

Compiled qmail with flags -ggdb and removed the -s flag.

Setup the necessary environment variables.

Then at the prompt # gdb qmail-smtp

Here is what was returned.

------------------- start ---------------------------

GNU gdb 6.7.1
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/local/src/qmail-1.03/qmail-smtpd
warning: no loadable sections found in added symbol-file system-supplied
DSO at 0x7fffdadfe000
220 cluster4 ESMTP
ehlo
250-cluster4
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-SIZE 0
250-PIPELINING
250 8BITMIME
AUTH PLAIN AHBvc3RtYXN1AtPLc291bmQuc2cAcHZsb3Zl

Program received signal SIGSEGV, Segmentation fault.
0x00005555555669ea in ?? ()
(gdb) backtrace
#0  0x00005555555669ea in ?? ()
#1  0x0000000000000000 in ?? ()
(gdb) frame 0
#0  0x00005555555669ea in ?? ()
(gdb) frame 1
#1  0x0000000000000000 in ?? ()
(gdb)

------------------- end ----------------------------------

It seems that the backtrace does not give useful information.

What else can I do, to get more information like which line in the source code is giving the problem?

Is there some other way to compile qmail so that the debug can so more details?

P.V.Anthony

_______________________________________________
Slugnet mailing list
[email protected]
http://www.lugs.org.sg/mailman/listinfo/slugnet

Reply via email to