How to compile php with debug symbols?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello there,

I'm trying to debug a crash/segmentation fault in php-4.4.{4-6} that we've 
been so far unable to get rid of. I guess it's c-client, but I'd like to 
be shure.

I have finally gotten so far that I've managed to get a core-dump. But the 
backtrace says "no symbol table info available", even though I have 
compiled php --with-debug. I have even tried with CFLAGS="-ggdb" but 
nothing helps. 

nm doesn't report any symbols:
# nm php-4.4.*/libs/libphp4.so 

php-4.4.6/libs/libphp4.so:
004ddf20 D php4_module

So, the question, how do I get debugging symbols into the php shared 
object? Thanks..

I do seem to get debug info into apache's error_log:

/usr/local/src/php-4.4.6/ext/imap/php_imap.c(734) : Block 0x0864D0B8 
status:		Beginning:      Overrun (magic=0x00000000, expected=0x7312F8DC)
[Fri Mar  2 15:07:42 2007] [notice] child pid 5106 exit signal Segmentation fault (11)


But I'm unable to get any debugging symbols in the backtrace:

#0  0xb7e5c027 in raise () from /lib/tls/libc.so.6
(gdb) bt full
#0  0xb7e5c027 in raise () from /lib/tls/libc.so.6
No symbol table info available.
#1  0xb7e5d747 in abort () from /lib/tls/libc.so.6
No symbol table info available.
#2  0xb7842725 in ?? () from /usr/local/apache/libexec/libphp4.so
No symbol table info available.
#3  0xb7853dcb in ?? () from /usr/local/apache/libexec/libphp4.so
No symbol table info available.
#4  0xb787501c in ?? () from /usr/local/apache/libexec/libphp4.so
No symbol table info available.
#5  0xb7870efd in ?? () from /usr/local/apache/libexec/libphp4.so
No symbol table info available.
#6  0xb784fbc7 in ?? () from /usr/local/apache/libexec/libphp4.so
No symbol table info available.
#7  0xb7704cbd in ?? () from /usr/local/apache/libexec/libphp4.so
No symbol table info available.
#8  0xb782fcbb in ?? () from /usr/local/apache/libexec/libphp4.so
No symbol table info available.
#9  0xb782e10e in ?? () from /usr/local/apache/libexec/libphp4.so
No symbol table info available.
#10 0xb782e333 in ?? () from /usr/local/apache/libexec/libphp4.so
No symbol table info available.
#11 0xb782fdee in ?? () from /usr/local/apache/libexec/libphp4.so
No symbol table info available.
#12 0xb781ef41 in ?? () from /usr/local/apache/libexec/libphp4.so
No symbol table info available.
#13 0xb782872f in ?? () from /usr/local/apache/libexec/libphp4.so
No symbol table info available.
#14 0xb77f47bb in ?? () from /usr/local/apache/libexec/libphp4.so
No symbol table info available.
#15 0xb784060a in ?? () from /usr/local/apache/libexec/libphp4.so
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#16 0x080522cf in run_cleanups ()
No symbol table info available.
#17 0x08050a0a in ap_clear_pool ()
No symbol table info available.
#18 0x08050a87 in ap_destroy_pool ()
No symbol table info available.
#19 0x080509dd in ap_clear_pool ()
No symbol table info available.
#20 0x08061825 in child_main ()
No symbol table info available.
#21 0x08061f16 in make_child ()
No symbol table info available.
#22 0x0806225d in perform_idle_server_maintenance ()
No symbol table info available.
#23 0x08062874 in standalone_main ()
No symbol table info available.
#24 0x08062e94 in main ()
No symbol table info available.


-- 
A: Top Posters
Q: What is the most annoying thing on mailing lists?

Harald H Hannelius | harald/a\arcada.fi      | GSM +358 50 594 1020

[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux