[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian sid, PHP cli, xdebug, set_error_handler, mysql_list_dbs, throw = Segmentation fault



On 19.03.2013 21:41, Jerry Stuckle wrote:
> On 3/19/2013 3:08 PM, Sven Uhlig wrote:
>> On 17.03.2013 23:40, Jerry Stuckle wrote:
>>> On 3/17/2013 2:54 PM, Sven Uhlig wrote:
>>>> On 17.03.2013 16:01, Jerry Stuckle wrote:
>>>>> On 3/17/2013 9:20 AM, Sven Uhlig wrote:
>>>>>> The following PHP code exits in "segmentation fault".
>>>>>>
>>>>>> <?php
>>>>>> function error_handler() {
>>>>>>      throw new Exception;
>>>>>> }
>>>>>> set_error_handler('error_handler');
>>>>>> mysql_list_dbs();
>>>>>> ?>
>>>>>>
>>>>>> No segmentation fault if I do either of these things:
>>>>>> 1) disable xdebug
>>>>>> 2) don't set_error_handler
>>>>>> 3) don't throw exception
>>>>>> 4) throw exception after mysql_list_dbs but outside of error_handler
>>>>>>
>>>>>> $ php -v
>>>>>> PHP 5.4.4-14 (cli) (built: Mar  4 2013 14:08:43)
>>>>>> Copyright (c) 1997-2012 The PHP Group
>>>>>> Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
>>>>>>        with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans
>>>>>>
>>>>>> # uname -a
>>>>>> Linux baldur 3.2.0-4-amd64 #1 SMP Debian 3.2.39-2 x86_64 GNU/Linux
>>>>>
>>>>> Impossible to tell from the (lack of) information you supplied.
>>>>
>>>> What do you need?
>>>>
>>> Well, if it happened to me, I'd get a dump of the problem, preferably
>>> with a debug version of the binaries, and a trace leading up to the
>>> problem.  Then I'd dig in and see where the problem lies.
>>
>> Because I am no C developer, I have no idea where to look for the cause
>> of the problem. All I can do is to help someone else fixing the code of
>> xdebug/php. But I am really not the right person to do this.
>>
>
> I'm not sure about anyone else on this list, but unfortunately I don't
> have the time it would take to duplicate your environment then try to
> duplicate your problem.
> 
> I understand you're not a C programmer - which is why I suggested you
> start with the developer of xdebug.  It's where I would start if I had
> this problem.

Jerry, sorry. I totally got you wrong before. I tought you wanted me to
fix the problem...

I have forwarded the bug report to xdebug
http://bugs.xdebug.org/view.php?id=936

Best regards
Sven.


Reply to: