Re: [PHP4BETA] segfault
| From: | Zeev Suraski | Date: | Wed, 14 Apr 1999 00:28:37 +0000 |
| Subject: | Re: [PHP4BETA] segfault | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-102@lists.php.net to get a copy of this message | ||
One small request - if you could do the work of reducing the script to the
smallest script that reproduces the problem (and definitely not send a
script that needs to be run to generate the script:), it would greatly
speed up the time it takes us to take care of this bug...
In this case reducing the script involved noticing that it actually leaks
like hell and crashes due to a memory error, so it was a bit more difficult...
Zeev
At 01:49 12/04/99 +0200, Sascha Schumann wrote:
>On Mon, Apr 12, 1999 at 01:03:15AM +0200, Sascha Schumann wrote:
>> Really nice work. :-)
>>
>> I've played with Zend/PHP4 a little bit and get a segfault when running a
>> small Perl generated script:
>>
>> (gdb) bt
>> #0 _erealloc (ptr=0x20000022000, size=18446744073709289472,
>> filename=0x120079830 "zend_ptr_stack.c", lineno=34) at zend_alloc.c:228
>> #1 0x12005e434 in zend_ptr_stack_push (stack=0x1201a7558, ptr=0x122a81840)
>> at zend_ptr_stack.c:34
>> #2 0x12005ea70 in zval_dtor (zvalue=0x1201bd700) at zend_variables.c:80
>> #3 0x12006a8c0 in zend_assign_to_variable (result=0x1201d0520, op1=0x1,
>> value=0x11ffff5b0, type=2, Ts=0x11fffece0) at zend_execute.c:269
>> #4 0x12006d9ac in execute (op_array=0x1201c1820) at zend_execute.c:1506
>> #5 0x120011d38 in php3_parse (primary_file=0x11ffff850) at main.c:1213
>> #6 0x120012780 in main (argc=2, argv=0x11ffff948) at main.c:1485
>> #7 0x2000091b3b0 in __libc_start_main ()
>>
>> It takes some seconds until this happens.
>
>Additional info: It core dumps when calling
>
>$a = new abc("dam");
>
>and does not reach the constructor any more.
>
>--
>
> Regards,
>
> Sascha Schumann |
> Consultant | finger sas@schell.de
> | for PGP public key
>
>--
>PHP 4 Beta
>
>
>
--
Zeev Suraski <zeev@zend.com> http://www.zend.com/
For a PGP public key, finger bourbon@netvision.net.il
--
PHP 4 Beta