Re: Re: debug apache-php dump
On Fri, Oct 14, 2011 at 6:18 PM, David Sastre d.sastre.med...@gmail.com wrote: On Tue, Oct 04, 2011 at 09:36:59AM -0300, Roberto Scattini wrote: ... it is a standard package installation, apache2, php5 and libapache2-mod-php5. i also installed apache2-dbg, libapr1-dbg, libaprutil1-dbg and php5-dbg. You need apache2-dbg. Also, check this bugreport¹. hi david, thanks for your response! you can see that i already have apache2-dbg installed, and gdb seems to be loading some symbols from /usr/lib/debug/... ¹http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=346409 this seems to clarify a little... it will not work... just like it says... i will try to build gdb with PIE support by myself... thanks!!! -- Roberto Scattini Hi Roberto, I know it's a bit late, but I ran into the same problem. The easiest solution I could come up with was to fetch gdb 7.3-1~bpo60+1 from the squeeze backports. http://packages.debian.org/squeeze-backports/gdb -- Glenn B. Jakobsen
Re: debug apache-php dump
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 signature.asc Description: Digital signature
Re: debug apache-php dump
On Fri, Oct 14, 2011 at 6:18 PM, David Sastre d.sastre.med...@gmail.com wrote: On Tue, Oct 04, 2011 at 09:36:59AM -0300, Roberto Scattini wrote: ... it is a standard package installation, apache2, php5 and libapache2-mod-php5. i also installed apache2-dbg, libapr1-dbg, libaprutil1-dbg and php5-dbg. You need apache2-dbg. Also, check this bugreport¹. hi david, thanks for your response! you can see that i already have apache2-dbg installed, and gdb seems to be loading some symbols from /usr/lib/debug/... ¹http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=346409 this seems to clarify a little... it will not work... just like it says... :( i will try to build gdb with PIE support by myself... thanks!!! -- Roberto Scattini -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAApYZY_VdR1d1s4Q3eiEj4svesd56oTLR+k=ukhxqp03bit...@mail.gmail.com