I compile Dovecot from the source packages of the Debian repository. I don't know if it has been correctly compiled with that flag, i have executed:
# CFLAGS=-g3 dpkg-buildpackage -rfakeroot -b
When running gdb again, i get diffrenet output but i think that this information is not relevant:
(gdb) cont Continuing.
Program received signal SIGSEGV, Segmentation fault. 0x080b294d in mail_get_physical_size () (gdb) bt full #0 0x080b294d in mail_get_physical_size () No symbol table info available. #1 0xb7df0200 in quota_try_alloc () from /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so No symbol table info available. #2 0xb7df4b01 in quota_plugin_deinit () from /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so No symbol table info available. #3 0xb7df4edc in quota_plugin_deinit () from /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so No symbol table info available. #4 0xb7de8036 in antispam_save_finish () from /usr/lib/dovecot/modules/imap/lib90_antispam_plugin.so No symbol table info available. #5 0x080b5aa6 in mailbox_save_finish () No symbol table info available. #6 0x0805ad8f in _start () No symbol table info available. (gdb) cont Continuing.
Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists. (gdb)
2008/6/4 Juan Asensio Sánchez <okelet@gmail.com>:
I compile Dovecot from the source packages of the Debian repository. I don't know if it has been correctly compiled with that flag, i have executed:
# CFLAGS=-g3 dpkg-buildpackage -rfakeroot -b
When running gdb again, i get diffrenet output but i think that this information is not relevant:
(gdb) cont Continuing.
Program received signal SIGSEGV, Segmentation fault. 0x080b294d in mail_get_physical_size () (gdb) bt full #0 0x080b294d in mail_get_physical_size () No symbol table info available. #1 0xb7df0200 in quota_try_alloc () from /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so No symbol table info available. #2 0xb7df4b01 in quota_plugin_deinit () from /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so No symbol table info available. #3 0xb7df4edc in quota_plugin_deinit () from /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so No symbol table info available. #4 0xb7de8036 in antispam_save_finish () from /usr/lib/dovecot/modules/imap/lib90_antispam_plugin.so No symbol table info available. #5 0x080b5aa6 in mailbox_save_finish () No symbol table info available. #6 0x0805ad8f in _start () No symbol table info available. (gdb) cont Continuing.
Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists. (gdb)
2008/6/3 Johannes Berg <johannes@sipsolutions.net>:
On Tue, 2008-06-03 at 22:16 +0300, Timo Sirainen wrote:
On Tue, 2008-06-03 at 21:11 +0200, Johannes Berg wrote:
On Tue, 2008-06-03 at 21:06 +0200, Juan Asensio Sánchez wrote:
Wow. Thanks for your quick answer. I don't know much about compiling or debugging. Could anyone say me how to do that or give some tips?
well, add -g3 somewhere to the CFLAGS when building dovecot.
-g is added by default. Does -g3 add anything useful compared to it?
I think it only adds debug information for macros.
johannes