php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56773 Segfault with PHP 5.1.2
Submitted: 2006-01-12 16:21 UTC Modified: 2006-02-24 00:08 UTC
From: traufeisen@php.net Assigned: rasmus (profile)
Status: Closed Package: APC (PECL)
PHP Version: 5.1.1 OS: CentOS 4.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: traufeisen@php.net
New email:
PHP Version: OS:

 

 [2006-01-12 16:21 UTC] traufeisen@php.net
Description:
------------
I?ve upgraded to PHP 5.1.2 and the Apache 2.0 is now segfaulting when APC is active.
Before the PHP-update this server was running PHP 5.0.5 without problems.

On another CentOS 4.2 server with PHP 5.1.2 and Apache 2.0 everything works fine. On this other server are the same classes in use as on the segfaulting one.

APC 3.0.8 was compiled with
--enable-apc-mmap --with-apxs

no additional settings are in the php.ini and auto_globals_jit is off



Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208002880 (LWP 13476)]
0x01354b01 in _zend_hash_add_or_update (ht=0x82baf48, arKey=0x839405c "\031", nKeyLength=137969796, pData=0x83940cc, nDataSize=4, pDest=0xbff05918, flag=2)
    at /root/src/php-5.1.2/Zend/zend_hash.h:256
256                     hash = ((hash << 5) + hash) + *arKey++;
(gdb) bt
#0  0x01354b01 in _zend_hash_add_or_update (ht=0x82baf48, arKey=0x839405c "\031", nKeyLength=137969796, pData=0x83940cc, nDataSize=4, pDest=0xbff05918,
    flag=2) at /root/src/php-5.1.2/Zend/zend_hash.h:256
#1  0x013555a5 in _zend_hash_merge (target=0x82baf48, source=0x70a262c0, pCopyConstructor=0x133d5a0 <inherit_static_prop>, tmp=0x0, size=4, overwrite=0)
    at /root/src/php-5.1.2/Zend/zend_hash.c:785
#2  0x0133d64b in zend_do_inheritance (ce=0x82baeb4, parent_ce=0x82ba494) at /root/src/php-5.1.2/Zend/zend_compile.c:2209
#3  0x00a8c081 in my_compile_file (h=0xbff05a60, type=8) at /tmp/tmpSOGvci/APC-3.0.8/apc_main.c:151
#4  0x0136a340 in ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER (execute_data=0xbff06a70) at /root/src/php-5.1.2/Zend/zend_vm_execute.h:1871
#5  0x01364979 in execute (op_array=0x8325684) at /root/src/php-5.1.2/Zend/zend_vm_execute.h:92
#6  0x0136a3bb in ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER (execute_data=0xbff06d30) at /root/src/php-5.1.2/Zend/zend_vm_execute.h:1918
#7  0x01364979 in execute (op_array=0x83d9a64) at /root/src/php-5.1.2/Zend/zend_vm_execute.h:92
#8  0x0134d6ba in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /root/src/php-5.1.2/Zend/zend.c:1101
#9  0x01319eac in php_execute_script (primary_file=0xbff09080) at /root/src/php-5.1.2/main/main.c:1720
#10 0x013c5777 in php_handler (r=0x828c690) at /root/src/php-5.1.2/sapi/apache2handler/sapi_apache2.c:584
#11 0x00d079b7 in ap_run_handler () from /usr/sbin/httpd
#12 0x00d07e23 in ap_invoke_handler () from /usr/sbin/httpd
#13 0x00d048b5 in ap_process_request () from /usr/sbin/httpd
#14 0x00cff63f in _start () from /usr/sbin/httpd
#15 0x0828c690 in ?? ()
#16 0x00000004 in ?? ()
#17 0x0828c690 in ?? ()
#18 0x08288498 in ?? ()
#19 0x082884ac in ?? ()
#20 0x082883c0 in ?? ()
#21 0x00000001 in ?? ()
#22 0x00d2f374 in ?? () from /usr/sbin/httpd
#23 0x081a28f8 in ?? ()
#24 0x00000000 in ?? ()
(gdb) bt full
#0  0x01354b01 in _zend_hash_add_or_update (ht=0x82baf48, arKey=0x839405c "\031", nKeyLength=137969796, pData=0x83940cc, nDataSize=4, pDest=0xbff05918,
    flag=2) at /root/src/php-5.1.2/Zend/zend_hash.h:256
        nIndex = Variable "nIndex" is not available.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-18 22:18 UTC] hakalv at gmail dot com
I have the same problem.
My env:
Linux:RHEL4
APACHE:httpd2.2
PHP:5.1.2
APC:3.0.8 complied with
./configure --enable-apc --with-apxs=/usr/local/test/apache2/bin/apxs --with-php-config=/usr/local/test/php5/bin/php-config
auto_globals_jit is set to off.

The first request is fine,but when apc try to load script 
from cache,httpd will:
child pid 5512 exit signal Segmentation fault (11)
 [2006-02-24 00:08 UTC] rasmus@php.net
This should be fixed in CVS now.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 14:01:29 2024 UTC