[xdebug-general] Re: XDebug Segfault Capabilities

From: Erik Osterman <e[@]osterman.com>
Date: Thu, 28 Sep 2006 09:22:27 -0700

Thanks! Turns out the debug script from Brian is exactly what I was
looking for. In addition, I found this very useful script
http://viewcvs.php.net/viewvc.cgi/php-src/.gdbinit?view=co which expands
on Brian's script.

Regards,

Erik Osterman

Derick Rethans wrote:
> On Thu, 21 Sep 2006, Erik Osterman wrote:
>
>
>> Can XDebug correlate lines of php code to a segfault much like gdb with C
>> code? Or is it only useful for tracking down exceptions and errors not related
>> to segfaults? The latter being my expectation.
>>
>
> What you can try is a tracefile with parameters and return values. The
> tracefile aborts as soon as PHP segfaults. Then you can have a look at
> the tracefile to see where exactly something crashed. However, in order
> to find the real cause (PHP shouldn't segfault) you'd need extensive
> knowlegde of PHP internals. However, if you get a segfault due to
> infinite recursion Xdebug will warn you and abort the script at some
> point.
>
> regards,
> Derick
>
>
Received on Thu Sep 28 2006 - 18:20:32 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST