php.net |  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
25 + 28 = ?
Subscribe to this entry?

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

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/libc.so.6
(gdb) bt
#0  0x00000031b6abea67 in writev () from /lib64/tls/libc.so.6
#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 ()
(gdb)


php.ini is standard.

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

Pascal


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] shire@php.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: Wed Apr 24 20:01:32 2024 UTC