|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56972 Segfault (11)
Submitted: 2006-04-23 11:05 UTC Modified: 2009-02-16 20:28 UTC
From: pfoubert at carat-hosting dot com Assigned:
Status: No Feedback Package: APC (PECL)
PHP Version: 4.3.11 OS: centos 4.4
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:
Bug Type:
From: pfoubert at carat-hosting dot com
New email:
PHP Version: OS:


 [2006-04-23 11:05 UTC] pfoubert at carat-hosting dot com

I use APC 3.0.10

When the shm is full (128MB) I receive a lot of pid segfault in /var/log/httpd/error_log.

Some users also complaint they have a blank page.

Here is the result of gdb
(gdb) run -X
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /usr/sbin/httpd -X
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 182894107936 (LWP 626)]

Program received signal SIGPIPE, Broken pipe.
[Switching to Thread 182894107936 (LWP 626)]
0x00000031b6abea67 in writev () from /lib64/tls/
(gdb) bt
#0  0x00000031b6abea67 in writev () from /lib64/tls/
#1  0x00000031b921420d in apr_socket_sendv (sock=0x1112830, vec=0x7fbffff540, nvec=1, len=0x7fbfffd310) at sendrecv.c:201
#2  0x000000000043a430 in writev_it_all ()
#3  0x000000000043bbb6 in core_output_filter ()
#4  0x0000002a98fa86a9 in watchFilterOutput (f=0x1112f90, bb=0x1194e88) at mod_watch.c:615
#5  0x000000000042427a in ap_process_request ()
#6  0x000000000041f928 in ap_process_http_connection ()
#7  0x0000000000430573 in ap_run_process_connection ()
#8  0x000000000042519d in child_main ()
#9  0x00000000004253d4 in make_child ()
#10 0x00000000004254ae in startup_children ()
#11 0x0000000000425b8b in ap_mpm_run ()
#12 0x000000000042bc60 in main ()

php.ini is standard.

If I switch off APC and restart Apache then I don't have these segfault.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-28 06:50 UTC] gopalv82 at yahoo dot com
Didn't notice the amd64 part there. 

Will test on 64bit if you could give some idea of what was in the php script that crashed (just phpinfo(); ?)
 [2006-08-29 23:49 UTC] gopalv82 at yahoo dot com
SIGPIPE isn't supposed to be fatal. That merely means that the connection was killed or timed out. 

If you had pressed continue, it should have gone on to php_handle_aborted_connection and continued serving files. 

Please upgrade to the latest APC and confirm whether the memory fixes in the release help you or not.
 [2009-02-16 20:28 UTC]
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: Sun Mar 03 10:01:29 2024 UTC