php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60003 Apache crashes and return empty page
Submitted: 2011-10-06 12:32 UTC Modified: 2017-01-10 07:57 UTC
Votes:6
Avg. Score:5.0 ± 0.0
Reproduced:6 of 6 (100.0%)
Same Version:2 (33.3%)
Same OS:4 (66.7%)
From: benjamin79 at free dot fr Assigned:
Status: Suspended Package: bcompiler (PECL)
PHP Version: 5.3.6 OS: Debian Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: benjamin79 at free dot fr
New email:
PHP Version: OS:

 

 [2011-10-06 12:32 UTC] benjamin79 at free dot fr
Description:
------------
Hello,

PHP 5.3.8 dotdeb
Apache 2.2
bcompiler 1.0.2

I have compile php classes like that : 


<?php

class QQQ
{
    function QQQ()
    {
        $this->i();
    }
    function i()
    {
		echo 'qsd';
	}
};
$m = new QQQ();
?>

When I execute this php file in command line, all is OK but 
when I execute this script with my browser, a Segfault was 
produced in apache error_log.

The backtrace : 


#0  0x00007fbcfd08eb39 in _zend_hash_add_or_update () from 
/usr/lib/apache2/modules/libphp5.so
#1  0x00007fbcfd03abe3 in php_register_variable_ex () from 
/usr/lib/apache2/modules/libphp5.so
#2  0x00007fbcfce92679 in ?? () from 
/usr/lib/apache2/modules/libphp5.so
#3  0x00007fbcfd034892 in sapi_getenv () from 
/usr/lib/apache2/modules/libphp5.so
#4  0x00007fbcf52f856b in suhosin_log () from 
/usr/lib/php5/20090626/suhosin.so
#5  0x00007fbcfd08c0d7 in ?? () from 
/usr/lib/apache2/modules/libphp5.so
#6  0x00007fbcfd08c4f4 in zend_hash_destroy () from 
/usr/lib/apache2/modules/libphp5.so
#7  0x00007fbcfd07780c in destroy_zend_class () from 
/usr/lib/apache2/modules/libphp5.so
#8  0x00007fbcfd08c1c2 in ?? () from 
/usr/lib/apache2/modules/libphp5.so
#9  0x00007fbcfd08c2c9 in zend_hash_reverse_apply () from 
/usr/lib/apache2/modules/libphp5.so
#10 0x00007fbcfd0733ae in ?? () from 
/usr/lib/apache2/modules/libphp5.so
#11 0x00007fbcfd080212 in ?? () from 
/usr/lib/apache2/modules/libphp5.so
#12 0x00007fbcfd02b015 in php_request_shutdown () from 
/usr/lib/apache2/modules/libphp5.so
#13 0x00007fbcfd10bdf7 in ?? () from 
/usr/lib/apache2/modules/libphp5.so
#14 0x00007fbd04410880 in ap_run_handler ()
#15 0x00007fbd0441421e in ap_invoke_handler ()
#16 0x00007fbd04421e48 in ap_process_request ()
#17 0x00007fbd0441ecf8 in ?? ()
#18 0x00007fbd04418478 in ap_run_process_connection ()
#19 0x00007fbd04426e97 in ?? ()
#20 0x00007fbd044271aa in ?? ()
#21 0x00007fbd044274db in ap_mpm_run ()
#22 0x00007fbd043fca90 in main ()


Best regards.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-23 00:40 UTC] jazz at funkynerd dot com
I'm also having a similar problem and would like to add something.

With APC loaded, the opcode is cached and subsequent page loads work as expected using the cache.

However, if I disable APC then all my scripts fail to work at all and I get a consistent segfault.

PHP 5.3.10
Apache 2.2.22
bcompiler 1.0.2
 [2017-01-10 07:57 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-01-10 07:57 UTC] kalle@php.net
Suspending this report as the extension have not had a release for almost 6 years.  Please revive this if the extension once again shows life
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 10:01:29 2025 UTC