php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56229 apd_set_pprof_trace causes apache seg fault
Submitted: 2004-11-16 00:34 UTC Modified: 2015-02-26 07:33 UTC
From: d dot broker at ponl dot com Assigned:
Status: Suspended Package: apd (PECL)
PHP Version: Irrelevant OS: SuSE Linux 9.0
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-11-16 00:34 UTC] d dot broker at ponl dot com
Description:
------------
Running PHP 5.0.2 / Apache 1.3.31 on SuSE Linux 9.0

Apache will seg fault on the below code every 6th request. Ie: I reload the page 5 times and it works fine, on the 6th time the page displays correctly, the APD trace file is ok, but the Apache child process will seg fault.


Reproduce code:
---------------
<?php

apd_set_pprof_trace();

echo 'hello';

?>


Expected result:
----------------
Apache should not seg fault

Actual result:
--------------
$> gdb /usr/sbin/httpd
(gdb) run -X
Starting program: /usr/sbin/httpd -X
[New Thread 16384 (LWP 22493)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 22493)]
0x40168567 in _int_free () from /lib/i686/libc.so.6
(gdb) bt
#0  0x40168567 in _int_free () from /lib/i686/libc.so.6
#1  0x4016722f in free () from /lib/i686/libc.so.6
#2  0x4037db1b in shutdown_memory_manager (silent=0, full_shutdown=0)
    at /root/php-5.0.2/Zend/zend_alloc.c:564
#3  0x4035af23 in php_request_shutdown (dummy=0x0)
    at /root/php-5.0.2/main/main.c:1223
#4  0x403c55aa in apache_php_module_main (r=0x8192154, display_source_mode=0)
    at /root/php-5.0.2/sapi/apache/sapi_apache.c:60
#5  0x403c606c in send_php (r=0x8192154, display_source_mode=0, filename=0x0)
    at /root/php-5.0.2/sapi/apache/mod_php5.c:622
#6  0x403c6233 in send_parsed_php (r=0x8192154)
    at /root/php-5.0.2/sapi/apache/mod_php5.c:637
#7  0x0806b423 in ap_invoke_handler ()
#8  0x08080469 in process_request_internal ()
#9  0x080804c8 in ap_process_request ()
#10 0x080774ec in child_main ()
#11 0x08077694 in make_child ()
#12 0x080777fa in startup_children ()
#13 0x08077eba in standalone_main ()
#14 0x080786d8 in main ()


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-02-26 07:33 UTC] krakjoe@php.net
-Status: Open +Status: Suspended
 [2015-02-26 07:33 UTC] krakjoe@php.net
APD hasn't had a release in 10 years, this means it's source code is way out of sync with modern PHP.

I'm going to mark this bug as suspended, the report can still be found if a maintainer for APD comes forward.

Sorry about the wait.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Dec 03 11:01:23 2020 UTC