[xdebug-general] Re: problem with zend_extension_ts

From: Derick Rethans <derick[@]xdebug.org>
Date: Wed, 22 Aug 2007 08:33:46 +0200 (CEST)

On Tue, 21 Aug 2007, Udo Schmiedeskamp wrote:

> First i tried
>
> zend_extension="/usr/lib/php5/20060613+lfs/xdebug.so"
>
> phpinfo() shows xdebug is loaded.
>
> A small test script with an error works fine too. (works fine = xdebug
> puts out the error)
>
> If i try to load the developer view of symfony (projectname_dev.php) i
> get a *blank* page.
> and this line in the error.log
>
> Tue Aug 21 05:36:26 2007] [notice] child pid 9389 exit signal
> Segmentation fault (11)
>
> "Stupid me" i thought. "you are using apache2 with mpm-prefork"
> you have to use
>
> zend_extension_ts="/usr/lib/php5/20060613+lfs/xdebug.so"
> ^^^
> restarted apache
>
> But THEN the phpinfo() does NOT show a sign of xdebug.
> The symfony developer view does load then, but says xdebug has not
> been loaded too.

That's because prefork is not threaded, so your original zend_extension=
line is correct.

> Can anybody please help me, how can i load xdebug into apache 2.2.3
> without getting segmentation faults.

For that to figure out I will need at least a backtrace though, and
also a reproducing small script. See the following URL on how to obtain
a backtrace:

http://bugs.php.net/bugs-generating-backtrace.php (under "If you can't
get a core file").

regards,
Derick

-- 
Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org
Received on Wed Aug 22 2007 - 08:33:47 BST

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