php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57524 Crash on CLI shutdown
Submitted: 2007-02-13 06:39 UTC Modified: 2007-02-13 09:13 UTC
From: scottmacvicar at ntlworld dot com Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.2.1RC4 OS: RHEL 4
Private report: No CVE-ID: None
 [2007-02-13 06:39 UTC] scottmacvicar at ntlworld dot com
Description:
------------
When running any script from the command line there is always a segmentation fault, this only happens with APC loaded as a shared module. When I run php without a php.ini it works without problem.

Config from php.ini is

;;;;;;;;;;;;;;;;;;;;;;;;;
; APC Memory Cache      ;
;;;;;;;;;;;;;;;;;;;;;;;;;
extension="apc.so"

apc.enabled = 1
apc.shm_segments = 1
apc.optimization=0
apc.shm_size=128
apc.ttl=7200
apc.user_ttl=7200
apc.num_files_hint=1024
apc.mmap_file_mask=/tmp/apc.XXXXXX


Reproduce code:
---------------
<?php print "test\n"; ?>

Backtrace:
(gdb) bt
#0  0x00402f98 in ?? ()
#1  0x082fa159 in tsrm_shutdown () at /www/src/php-5.2.1/TSRM/TSRM.c:180
#2  0x083c4396 in main (argc=2, argv=0xbfe6b6e4) at /www/src/php-5.2.1/sapi/cli/php_cli.c:1283

For some reason I can't get any symbols loaded for APC, presuming its involved directly.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-13 09:13 UTC] gopalv82 at yahoo dot com
http://cvs.php.net/viewvc.cgi/pecl/apc/php_apc.c?r1=3.128&r2=3.129

Should be fixed already.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Sep 20 22:01:26 2024 UTC