On Tue, Oct 04, 2011 at 09:36:59AM -0300, Roberto Scattini wrote:
> 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:
> 
> # 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.

You need apache2-dbg. Also, check this bugreport¹.

¹http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=346409

-- 
Huella de clave primaria: AD8F BDC0 5A2C FD5F A179  60E7 F79B AB04 5299 EC56

Attachment: signature.asc
Description: Digital signature

Reply via email to