#27342 [Csd]: zend_fetch_debug_backtrace segfault

From: Date: Wed, 10 Mar 2004 17:32:02 +0000
Subject: #27342 [Csd]: zend_fetch_debug_backtrace segfault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56246@lists.php.net to get a copy of this message
 ID:               27342
 Updated by:       nlopess@php.net
 Reported By:      nlopess@php.net
 Status:           Closed
 Bug Type:         Zend Engine 2 problem
 Operating System: win32 only
-PHP Version:      5CVS-2004-02-23 (dev)
+PHP Version:      5CVS-2004-03-10 (dev)
 New Comment:

Hi sniper,

It doesn't crash apache and windows doesn't display an error box, but
GDB still complain.
Take a look:
Nuno@pc07653 /cygdrive/c/nuno/testing
$ php bug-tidy.php

Nuno@pc07653 /cygdrive/c/nuno/testing
$ gdb php
(...)
(gdb) run bug-tidy.php
Starting program: /cygdrive/c/php/php.exe bug-tidy.php
---Type <return> to continue, or q <return> to quit---

Program received signal SIGSEGV, Segmentation fault.
0x1000a8a4 in zend_fetch_debug_backtrace () from
/cygdrive/c/php/php5ts.dll
(gdb) run bug-tidy2.php
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /cygdrive/c/php/php.exe bug-tidy2.php
---Type <return> to continue, or q <return> to quit---

Program received signal SIGSEGV, Segmentation fault.
0x1000a8a4 in zend_fetch_debug_backtrace () from
/cygdrive/c/php/php5ts.dll
(gdb)

Strange...


Previous Comments:
------------------------------------------------------------------------

[2004-03-09 19:30:46] sniper@php.net

Does not crash using latest CVS snapshot.
(neither the first script or the non-existing file test)


------------------------------------------------------------------------

[2004-02-26 10:46:25] nlopess@php.net

This code also segfaults:
<?php
$tidy = tidy_parse_file('bogus.htm');
?>

where bogus.htm file doesn't exist

------------------------------------------------------------------------

[2004-02-24 13:01:40] nlopess@php.net

I've compiled with Cygwin/gcc.
Maybe the problem is in the microsoft VC compiler...

------------------------------------------------------------------------

[2004-02-24 12:05:05] sniper@php.net

well..then there's surely something wrong with the snaps since  those
won't work but self-compiled one works? :)


------------------------------------------------------------------------

[2004-02-24 10:00:01] edink@php.net

Just FYI, snaps box is not for debug purposes. Its "if we were 
releasing PHP today you would get this". 

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/27342

-- 
Edit this bug report at http://bugs.php.net/?id=27342&edit=1


Thread (18 messages)

« previous php.bugs (#56246) next »