php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57071 Segmentation fault on Linux with ZTS
Submitted: 2006-06-08 10:23 UTC Modified: 2006-08-29 12:17 UTC
From: danmactough at yahoo dot com Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.1.2 OS: Linux (RHEL3)
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: danmactough at yahoo dot com
New email:
PHP Version: OS:

 

 [2006-06-08 10:23 UTC] danmactough at yahoo dot com
Description:
------------
APC appears to operate correctly, and all the test files run. However, when executing any PHP script from the command-line, I receive the message "Segmentation fault" following script execution. This occurs even when PHP is configured with apc.enable_cli=0.

-Linux
-Apache 2.0 (worker MPM)
-PHP 5.1.4 (Zend thread safety enabled)
 ./configure  --with-apxs2=/usr/sbin/apxs --with-openssl --with-zlib --with-curl --enable-mbstring --with-mysql --enable-soap --enable-sockets --with-xmlrpc --with-xsl --with-zend-vm=CALL --enable-maintainer-zts

-APC 3.0.10
 ./configure --enable-apc --enable-apc-mmap

Reproduce code:
---------------
php -f apc_001.phpt

Expected result:
----------------
--TEST--
APC: apc_store/fecth with strings
--SKIPIF--
--INI--
apc.enabled=1
apc.enable_cli=1
apc.file_update_protection=0
--FILE--
string(11) "hello world"
string(11) "hello world"
string(4) "nice"
===DONE===


Actual result:
--------------
--TEST--
APC: apc_store/fecth with strings
--SKIPIF--
--INI--
apc.enabled=1
apc.enable_cli=1
apc.file_update_protection=0
--FILE--
string(11) "hello world"
string(11) "hello world"
string(4) "nice"
===DONE===
Segmentation fault


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-29 12:17 UTC] gopalv82 at yahoo dot com
Fixed in CVS (php.apc.c,3.101).

Tested with 5_1 CVS head on amd64, confirm fix on RHEL3, please.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 15:01:36 2025 UTC