#27342 [Fbk->Opn]: zend_fetch_debug_backtrace segfault

From: Date: Tue, 24 Feb 2004 11:36:46 +0000
Subject: #27342 [Fbk->Opn]: zend_fetch_debug_backtrace segfault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-55440@lists.php.net to get a copy of this message
ID: 27342 Updated by: nlopess@php.net Reported By: nlopess@php.net -Status: Feedback +Status: Open Bug Type: Zend Engine 2 problem Operating System: win32 only PHP Version: 5CVS-2004-02-23 (dev) New Comment: I've compiled PHP my self in cygwin (instead of using a snapshot from snaps.php.net) It just outputs: $ gdb php-debug (..) (gdb) run bug.php Starting program: /home/Nuno/php5/sapi/cli/php-debug.exe bug.php Fatal error: Uncaught exception 'tidy_exception' with message 'Unknown Tidy Conf iguration Option 'foo'' in /home/Nuno/php5/sapi/cli/bug.php:6 Stack trace: #0 {main} thrown in /home/Nuno/php5/sapi/cli/bug.php on line 6 Program exited with code 0377. (gdb) bt No stack. I think this doesn't help much, but I think snaps.php.net should distribute binaries with DEBUG symbols (as it is for debugging purposes). It seems it only segfaults with the binary from snaps.php.net. If you send me a snapshot with DEBUG symbols built in that machine, I may test it. Previous Comments: ------------------------------------------------------------------------ [2004-02-23 13:20:09] sniper@php.net You need to get better backtrace. (dunno how you enable debug symbols in there) Tidy throws an exception with your code, and seems like that somehow crashes on windows. Maybe ZTS related..dunno. ------------------------------------------------------------------------ [2004-02-23 09:33:33] nlopess@php.net Hi sniper! Using latest snapshot from snaps.php.net, I still receive a segfault: Program received signal SIGSEGV, Segmentation fault. 0x1000a974 in zend_fetch_debug_backtrace () from /cygdrive/c/php/php5ts.dll (gdb) bt #0 0x1000a974 in zend_fetch_debug_backtrace () from /cygdrive/c/php/php5ts.dll #1 0x00a00350 in ?? () #2 0x00362718 in ?? () ------------------------------------------------------------------------ [2004-02-22 19:31:24] sniper@php.net Can not reproduce using latest tidy version and latest CVS checkout. ------------------------------------------------------------------------ [2004-02-21 05:24:32] nlopess@php.net Description: ------------ Using the given reproduce code, php segfaults. Reproduce code: --------------- <?php $html = '<p>test</I>'; $config = array('foo' => 'bar'); $tidy = tidy_parse_string($html, $config); echo tidy_config_count($tidy); ?> Expected result: ---------------- 1 Actual result: -------------- $ gdb php GNU gdb 2003-09-20-cvs (cygwin-special) (...) (gdb) run tidy.php Starting program: /cygdrive/c/php/php.exe tidy.php ---Type <return> to continue, or q <return> to quit--- Program received signal SIGSEGV, Segmentation fault. 0x1000a974 in zend_fetch_debug_backtrace () from /cygdrive/c/php/php5ts.dll ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27342&edit=1

« previous php.bugs (#55440) next »