php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59915 Apache Segmentation fault in apc_deactivate
Submitted: 2011-08-29 05:30 UTC Modified: 2013-02-18 00:35 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: v dot v dot biriukov at gmail dot com Assigned:
Status: No Feedback Package: APC (PECL)
PHP Version: 5.2.17 OS: Centos 5.5
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: v dot v dot biriukov at gmail dot com
New email:
PHP Version: OS:

 

 [2011-08-29 05:30 UTC] v dot v dot biriukov at gmail dot com
Description:
------------
httpd-2.2.3-45.el5
centos 5.5
php 5.2.17
APC 3.1.9
configure --enable-apc-mmap --with-php-config=%
{_bindir}/php-config

(gdb) bt full
#0  apc_deactivate () at /usr/src/debug/php-pecl-apc-
3.1.9/APC-3.1.9/apc_main.c:933
        pzce = 0x0
        cache_entry = 0x2ab085de4bc0
        zce = 0x2ab06ad23d18
#1  apc_request_shutdown () at /usr/src/debug/php-pecl-apc-
3.1.9/APC-3.1.9/apc_main.c:1008
No locals.
#2  0x00002ab06250be95 in zm_deactivate_apc 
(type=2045515968, module_number=128) at /usr/src/debug/php-
pecl-apc-3.1.9/APC-3.1.9/php_apc.c:407
No locals.
#3  0x00002ab061209afc in module_registry_cleanup (module=
<value optimized out>) at /usr/src/debug/php-
5.2.17/Zend/zend_API.c:1976
No locals.
#4  0x00002ab061212d04 in zend_hash_reverse_apply 
(ht=0x2ab06156fd40, apply_func=0x2ab061209ae0 
<module_registry_cleanup>) at /usr/src/debug/php-
5.2.17/Zend/zend_hash.c:755
        result = 0
        p = 0x2ab069902de0
#5  0x00002ab06120811d in zend_deactivate_modules () at 
/usr/src/debug/php-5.2.17/Zend/zend.c:838
        __orig_bailout = 0x0
        __bailout = {{__jmpbuf = {46937035699744, 
5169551420648816790, 46937448386112, 46937045010272, 
46936896697080, 46936896694496, 5169493484300248646, 
5169551420643735472}, __mask_was_saved = 0, 
            __saved_mask = {__val = {46937107360864, 
46937032147168, 46936896697080, 0, 0, 46936895235808, 
14718464, 46936896694496, 1, 46937035699232, 46937448386112, 
46937045010272, 46936896697080, 
                46936896694496, 5171258272142890496, 
46937035697856}}}}
#6  0x00002ab0611c53ca in php_request_shutdown (dummy=<value 
optimized out>) at /usr/src/debug/php-
5.2.17/main/main.c:1478
        report_memleaks = 1 '\001'
#7  0x00002ab06128cc8e in php_apache_request_dtor 
(r=0x2ab079f00e40) at /usr/src/debug/php-
5.2.17/sapi/apache2handler/sapi_apache2.c:479
No locals.
#8  php_handler (r=0x2ab079f00e40) at /usr/src/debug/php-
5.2.17/sapi/apache2handler/sapi_apache2.c:651
        ctx = 0x2ab079ef2788
        conf = 0x2ab079ef17c8
        brigade = 0x2ab079f09b58
        bucket = <value optimized out>
        rv = <value optimized out>
        parent_req = 0x0
#9  0x00002ab058eb7a0a in ap_run_handler ()
No symbol table info available.
#10 0x00002ab058ebae98 in ap_invoke_handler ()
No symbol table info available.
#11 0x00002ab058ec5938 in ap_process_request ()
No symbol table info available.
#12 0x00002ab058ec2b70 in ?? ()
No symbol table info available.
#13 0x00002ab058ebec92 in ap_run_process_connection ()
No symbol table info available.
#14 0x00002ab058ec97e9 in ?? ()
No symbol table info available.
#15 0x00002ab058ec9a7a in ?? ()
No symbol table info available.
#16 0x00002ab058eca2dd in ap_mpm_run ()
No symbol table info available.
#17 0x00002ab058ea4e48 in main ()
No symbol table info available.


Config file


extension = apc.so
apc.enabled=1
apc.shm_segments=1
apc.shm_size=384M
apc.num_files_hint=1024
apc.user_entries_hint=4096
apc.ttl=3600
apc.user_ttl=1200
apc.gc_ttl=3600
apc.cache_by_default=1
apc.filters
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.file_update_protection=2
apc.enable_cli=0
apc.max_file_size=1M
apc.stat=1
apc.stat_ctime=0
apc.canonicalize=0
apc.write_lock=1
apc.report_autofilter=0
apc.rfc1867=0
apc.rfc1867_prefix =upload_
apc.rfc1867_name=APC_UPLOAD_PROGRESS
apc.rfc1867_freq=0
apc.rfc1867_ttl=3600
apc.include_once_override=0
apc.coredump_unmap=0
apc.file_md5=0
apc.preload_path



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-21 21:49 UTC] miciomiciobaobao at hotmail dot com
I had reproducible segmentation faults when using Apache and APC, but only when using the "worker" MPM - with the "prefork" MPM it seems now to run well.
Posted all details here: http://www.blah-blah.ch/it/webserver/php-acceleration-for-apache/
 [2012-03-18 13:36 UTC] pajoye@php.net
Please try using this snapshot:

  http://snaps.php.net/php-trunk-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

using php 5.3 or 5.4 please.
 [2012-03-18 13:36 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2013-02-18 00:35 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 09:01:27 2024 UTC