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

debug apache-php dump



hi list, 

i want to know how can i "bind" php symbols to apache in order to debug an apache2 coredump file.

i upgraded my system to debian squeeze, and suddenly my web application started to generate "segmentation faults" randomly.
it is a standard package installation, apache2, php5 and libapache2-mod-php5. i also installed apache2-dbg, libapr1-dbg, libaprutil1-dbg and php5-dbg.

i generated an apache coredump file, but when i open dump file with gdb the only i get is this:

root@desarrollo:~# gdb /usr/sbin/apache2 /var/cache/apache2/core
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 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 "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...

warning: The current binary is a PIE (Position Independent Executable), which
GDB does NOT currently support.  Most debugger features will fail if used
in this session.

Reading symbols from /usr/sbin/apache2...Reading symbols from /usr/lib/debug/usr/sbin/apache2-mpm-prefork...done.
(no debugging symbols found)...done.
Core was generated by `/usr/sbin/apache2 -k start'.
Program terminated with signal 11, Segmentation fault.
#0  0xb6edfcd5 in ?? ()
(gdb) bt full
#0  0xb6edfcd5 in ?? ()
No symbol table info available.
#1  0xb6e9f628 in ?? ()
No symbol table info available.
#2  0xb626b47a in ?? ()
No symbol table info available.
#3  0xb6ecb2b4 in ?? ()
No symbol table info available.
#4  0xb6273500 in ?? ()
No symbol table info available.
#5  0xb6ebfe00 in ?? ()
No symbol table info available.
#6  0xb6ecae88 in ?? ()
No symbol table info available.
#7  0xb6ebe641 in ?? ()
No symbol table info available.
#8  0xb6e63095 in ?? ()
No symbol table info available.
#9  0xb6f5064c in ?? ()
No symbol table info available.
#10 0xb77f5521 in ?? ()
No symbol table info available.
#11 0xb77f9326 in ?? ()
No symbol table info available.
#12 0xb7808ca8 in ?? ()
No symbol table info available.
#13 0xb78057c8 in ?? ()
No symbol table info available.
#14 0xb77fdda1 in ?? ()
No symbol table info available.
#15 0xb780e9ac in ?? ()
No symbol table info available.
#16 0xb780ed0e in ?? ()
No symbol table info available.
#17 0xb780fcbb in ?? ()
No symbol table info available.
#18 0xb77dff8a in ?? ()
No symbol table info available.
#19 0xb75c8c76 in ?? ()
No symbol table info available.
#20 0xb77dec01 in ?? ()
No symbol table info available.
(gdb) quit


i am completely newbie with this thing of debugging...  what am i doing wrong?


any help is welcome!!



--
Roberto Scattini


Reply to: