php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25223 ZE2 Crashes in non-debug mode (CLI only)
Submitted: 2003-08-24 12:00 UTC Modified: 2003-08-25 16:59 UTC
From: john@php.net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5CVS-2003-08-25 (dev) OS: Redhat 8
Private report: No CVE-ID: None
 [2003-08-24 12:00 UTC] john@php.net
Description:
------------
ZE2 crashes from the latest HEAD when built in release (without --enable-debug) trying to initialize the memory manager:

(gdb) r -v
Starting program: /home/john/working/php-src/sapi/cli/php -v
[New Thread 16384 (LWP 598)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 598)]
0x4207d297 in memset () from /lib/i686/libc.so.6
(gdb) bt
#0  0x4207d297 in memset () from /lib/i686/libc.so.6
#1  0x081d8ec8 in ?? ()
#2  0x08166ac1 in zend_mm_startup (heap=0x81d8f50, block_size=262144)
    at /home/john/working/php-src/Zend/zend_mm.c:260
#3  0x08146a22 in start_memory_manager (tsrm_ls=0x81d5ff0)
    at /home/john/working/php-src/Zend/zend_alloc.c:459
#4  0x081234a1 in ts_allocate_id (rsrc_id=0x81d5548, size=0, ctor=0, dtor=0)
    at /home/john/working/php-src/TSRM/TSRM.c:235
#5  0x08157859 in zend_startup (utility_functions=0xbffff850, extensions=0x0, 
    start_builtin_functions=1) at /home/john/working/php-src/Zend/zend.c:543
#6  0x081271b7 in php_module_startup (sf=0x81d26a0, additional_modules=0x0, 
    num_additional_modules=0) at /home/john/working/php-src/main/main.c:1300
#7  0x08177dc3 in main (argc=2, argv=0xbffffa84)
    at /home/john/working/php-src/sapi/cli/php_cli.c:592
#8  0x420158f7 in __libc_start_main () from /lib/i686/libc.so.6
(gdb) 


My configure was simple:
'./configure' '--enable-maintainer-zts' '--disable-cgi'





Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-24 12:04 UTC] sfox@php.net
Even a little thing like 'php -v' crashes the Release_TS cli version in PHP5 here (although the command is executed first)..

(on win98)
 [2003-08-24 15:46 UTC] sfox@php.net
Remove win98 from the equation.  Updating libxml2.lib to the latest version (2.5.10.win32) gets rid of the problem here.  (Weird, John only reported this because he could replicate it on redhat ! :)
 [2003-08-24 23:23 UTC] sniper@php.net
Using latest CVS, I can _not_ reproduce this crash.
Get a clean checkout, or preferrably the latest snapshot..

 [2003-08-25 16:59 UTC] john@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

a cvs update between yesterday and today fixed the problem somehow. 


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 16 14:01:32 2024 UTC