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
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: 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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue May 14 09:01:31 2024 UTC