Getting backtrace through GDB?

Getting backtrace through GDB?

am 26.08.2009 16:51:01 von Jason Young

Hi all,

I'm trying to follow the instructions for getting a GDB backtrace from
the PECL site ( http://bugs.php.net/bugs-generating-backtrace.php ).

For some reason, I'm not getting any symbol output when I try to
generate the backtrace, it simply gives me the memory address and '??'.

I'm using a clean install of PHP, and I've specified --enable-debug in
the configure script (which I know works, since PHP will identify and
print memory leaks).

Has anyone else had any trouble with this and found a solution? I'd
really like to get generate these so I can better help the PECL
developer this is needed for.

Thanks for any insight or suggestions you can give!
-Jason Young

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Getting backtrace through GDB?

am 27.08.2009 17:58:15 von Jason Young

Anyone, anyone? Bueller? :P
I'm sure someone has experience with GDB? I'm not looking for a newbie
primer, I'm just curious if anyone has had experience with the problem
below and knew how to correct it..

Thanks :)

Jason Young wrote:
> Hi all,
>
> I'm trying to follow the instructions for getting a GDB backtrace from
> the PECL site ( http://bugs.php.net/bugs-generating-backtrace.php ).
>
> For some reason, I'm not getting any symbol output when I try to
> generate the backtrace, it simply gives me the memory address and '??'.
>
> I'm using a clean install of PHP, and I've specified --enable-debug in
> the configure script (which I know works, since PHP will identify and
> print memory leaks).
>
> Has anyone else had any trouble with this and found a solution? I'd
> really like to get generate these so I can better help the PECL
> developer this is needed for.
>
> Thanks for any insight or suggestions you can give!
> -Jason Young

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Getting backtrace through GDB?

am 28.08.2009 02:28:07 von Lupus Michaelis

Jason Young wrote:
> Anyone, anyone? Bueller? :P
> I'm sure someone has experience with GDB? I'm not looking for a newbie
> primer, I'm just curious if anyone has had experience with the problem
> below and knew how to correct it..
>

I guess we are on PHP users list, gdb's ;)

If no symbols appear, it means that libraries and PHP wasn't compile
with debug flags (eg -g with gcc). So, what you need as informations
depends about what OS you're running.

But, especially for PHP, you must run configure PHP building with the
fine flag --enable-debug.

For more information, you can read the GCC and GDB documentations.

--
Mickaël Wolff aka Lupus Michaelis
http://lupusmic.org

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php