You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/12/15 20:18:40 UTC

DO NOT REPLY [Bug 41184] New: - child pid nnnn exit signal Segmentation fault (11)

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41184>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41184

           Summary: child pid nnnn exit signal Segmentation fault (11)
           Product: Apache httpd-2
           Version: 2.2.3
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: All
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: harindranath@gmail.com


Httpd does only the following:

[Sat Nov 18 14:39:50 2006] [notice] Apache/2.2.3 (Unix) mod_jk/1.2.19 configured
-- resuming normal operations
[Sat Nov 18 14:39:51 2006] [notice] child pid 6464 exit signal Segmentation
fault (11)
[Sat Nov 18 14:39:51 2006] [notice] child pid 6468 exit signal Segmentation
fault (11)
[Sat Nov 18 14:39:53 2006] [notice] child pid 6529 exit signal Segmentation
fault (11)
[Sat Nov 18 14:39:55 2006] [notice] child pid 6557 exit signal Segmentation
fault (11)
[Sat Nov 18 14:39:57 2006] [notice] child pid 6585 exit signal Segmentation
fault (11)
[Sat Nov 18 14:39:59 2006] [notice] child pid 6614 exit signal Segmentation
fault (11)
[Sat Nov 18 14:40:01 2006] [notice] child pid 6642 exit signal Segmentation
fault (11)
[Sat Nov 18 14:40:03 2006] [notice] child pid 6671 exit signal Segmentation
fault (11)
[Sat Nov 18 14:40:05 2006] [notice] child pid 6699 exit signal Segmentation
fault (11)

No requests served.
Looks similar to bug 40158

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41184] - child pid nnnn exit signal Segmentation fault (11)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41184>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41184


rpluem@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEEDINFO




------- Additional Comments From rpluem@apache.org  2006-12-15 15:21 -------
(In reply to comment #5)

> 
> Breakpoint 1, apr_pollset_create (pollset=0xa6f39ac4, size=1, p=0x8108b58,
>     flags=0) at poll/unix/epoll.c:92
> 92      poll/unix/epoll.c: No such file or directory.
>         in poll/unix/epoll.c
> (gdb) next
> 96      in poll/unix/epoll.c
> (gdb) where
> #0  apr_pollset_create (pollset=0xa6f39a3c, size=1, p=0x8108b58, flags=0)
>     at poll/unix/epoll.c:96
> #1  0x08097245 in listener_thread (thd=0x812d770, dummy=0x819cc80)
>     at worker.c:609
> #2  0xb75813e0 in dummy_worker (opaque=0xa6f39a3c)
>     at threadproc/unix/thread.c:138
> #3  0xb7515dac in start_thread () from /lib/tls/libpthread.so.0
> #4  0xb74b19ea in clone () from /lib/tls/libc.so.6
> (gdb) next
> 97      in poll/unix/epoll.c
> (gdb) next
> 96      in poll/unix/epoll.c
> (gdb) print fd
> $1 = -1219447192

According to the epoll_create man page this should never happen. epoll_create
should either return a positive int (success) or -1 (error) but never something
like -1219447192. So it is possible that this is a libc or kernel bug. Are using
a 32 or 64 bit Linux?

> listener_thread (thd=0x812d770, dummy=0x819cc80) at worker.c:611
> 611     worker.c: No such file or directory.
>         in worker.c
> (gdb) print pollset
> $9 = (apr_pollset_t *) 0x0

Maybe httpd should print an error message in this case and exit instead of
segfaulting.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41184] - child pid nnnn exit signal Segmentation fault (11)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41184>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41184





------- Additional Comments From harindranath@gmail.com  2006-12-15 15:28 -------
This is on a 32 bit kernel. 2.4.21-4.ELsmp, Redhat Enterprise Linux ES 3, no
updates.

It did return -1 through, a few lines later in the trace (I had printed before
the relevant line apparently), but strangely, no errno.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41184] - child pid nnnn exit signal Segmentation fault (11)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41184>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41184





------- Additional Comments From harindranath@gmail.com  2006-12-15 16:31 -------
"EPOLL does not exist in Red Hat Enterprise Linux version 3."!!! Now, that would
explain a few things. Turns out the binary was built on a 2.6 machine too.
Guess I have some work to do...

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41184] - child pid nnnn exit signal Segmentation fault (11)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41184>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41184





------- Additional Comments From rpluem@apache.org  2006-12-15 16:18 -------
(In reply to comment #7)
 
> It did return -1 through, a few lines later in the trace (I had printed before
> the relevant line apparently), but strangely, no errno.

Ah, Ok I missed that. So the other value is just some kind of bogus value that
sometimes appears during debugging.
I am not sure if gdb really displays the correct value for errno here as if you
include errno.h errno is usually a macro to a function rather then a variable in
order to work in threaded environments. So can you please apply the following
patch and have a look what gets shown in the error log in debug mode?

Index: server/mpm/worker/worker.c
===================================================================
--- server/mpm/worker/worker.c  (Revision 487344)
+++ server/mpm/worker/worker.c  (Arbeitskopie)
@@ -606,7 +606,11 @@
     free(ti);

     /* ### check the status */
-    (void) apr_pollset_create(&pollset, num_listensocks, tpool, 0);
+    rv = apr_pollset_create(&pollset, num_listensocks, tpool, 0);
+    if (rv != APR_SUCCESS) {
+        ap_log_error(APLOG_MARK, APLOG_DEBUG, rv, ap_server_conf,
+                                          "Pollset create returned %i", rv);
+    }

     for (lr = ap_listeners; lr != NULL; lr = lr->next) {
         apr_pollfd_t pfd = { 0 };

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41184] - child pid nnnn exit signal Segmentation fault (11)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41184>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41184





------- Additional Comments From harindranath@gmail.com  2006-12-15 11:22 -------
Built with :
./configure --enable-ssl=shared --with-mpm=worker" 
And mod_jk installed.



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41184] - child pid nnnn exit signal Segmentation fault (11)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41184>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41184





------- Additional Comments From harindranath@gmail.com  2006-12-15 11:22 -------
Backtrace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1493984336 (LWP 7177)]
apr_pollset_add (pollset=0x0, descriptor=0xa6f39a40) at poll/unix/epoll.c:146
146     poll/unix/epoll.c: No such file or directory.
        in poll/unix/epoll.c
(gdb) where
#0  apr_pollset_add (pollset=0x0, descriptor=0xa6f39a40)
    at poll/unix/epoll.c:146
#1  0x08097289 in listener_thread (thd=0x812d770, dummy=0x80bce70)
    at worker.c:620
#2  0xb75813e0 in dummy_worker (opaque=0x0) at threadproc/unix/thread.c:138
#3  0xb7515dac in start_thread () from /lib/tls/libpthread.so.0
#4  0xb74b19ea in clone () from /lib/tls/libc.so.6


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41184] - child pid nnnn exit signal Segmentation fault (11)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41184>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41184


wrowe@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |ASSIGNED




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41184] - child pid nnnn exit signal Segmentation fault (11)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41184>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41184





------- Additional Comments From rpluem@apache.org  2006-12-15 16:25 -------
Could be really an OS problem. See http://kbase.redhat.com/faq/FAQ_79_4466.shtm.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41184] - child pid nnnn exit signal Segmentation fault (11)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41184>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41184





------- Additional Comments From harindranath@gmail.com  2006-12-15 11:51 -------
Result of a little more digging around:

(gdb) run -X -d /opt/CCBLPSM/ccm/httpd
Starting program: /opt/CCBLPSM/ccm/httpd/bin/httpd -X -d /opt/CCBLPSM/ccm/httpd
Breakpoint 1 at 0xb757e52d: file poll/unix/epoll.c, line 92.
[Thread debugging using libthread_db enabled]
[New Thread -1220712800 (LWP 7813)]
[New Thread -1221248080 (LWP 7821)]
[New Thread -1231737936 (LWP 7822)]
[New Thread -1242227792 (LWP 7823)]
[New Thread -1252717648 (LWP 7824)]
[New Thread -1263207504 (LWP 7825)]
[New Thread -1273697360 (LWP 7826)]
[New Thread -1284187216 (LWP 7827)]
[New Thread -1294677072 (LWP 7828)]
[New Thread -1305166928 (LWP 7829)]
[New Thread -1315656784 (LWP 7830)]
[New Thread -1326146640 (LWP 7831)]
[New Thread -1336636496 (LWP 7832)]
[New Thread -1347126352 (LWP 7833)]
[New Thread -1357616208 (LWP 7834)]
[New Thread -1368106064 (LWP 7835)]
[New Thread -1378595920 (LWP 7836)]
[New Thread -1389085776 (LWP 7837)]
[New Thread -1399575632 (LWP 7838)]
[New Thread -1410065488 (LWP 7839)]
[New Thread -1420555344 (LWP 7840)]
[New Thread -1431045200 (LWP 7841)]
[New Thread -1441535056 (LWP 7842)]
[New Thread -1452024912 (LWP 7843)]
[New Thread -1462514768 (LWP 7844)]
[New Thread -1473004624 (LWP 7845)]
[New Thread -1483494480 (LWP 7846)]
[New Thread -1493984336 (LWP 7847)]
[Switching to Thread -1493984336 (LWP 7847)]

Breakpoint 1, apr_pollset_create (pollset=0xa6f39ac4, size=1, p=0x8108b58,
    flags=0) at poll/unix/epoll.c:92
92      poll/unix/epoll.c: No such file or directory.
        in poll/unix/epoll.c
(gdb) next
96      in poll/unix/epoll.c
(gdb) where
#0  apr_pollset_create (pollset=0xa6f39a3c, size=1, p=0x8108b58, flags=0)
    at poll/unix/epoll.c:96
#1  0x08097245 in listener_thread (thd=0x812d770, dummy=0x819cc80)
    at worker.c:609
#2  0xb75813e0 in dummy_worker (opaque=0xa6f39a3c)
    at threadproc/unix/thread.c:138
#3  0xb7515dac in start_thread () from /lib/tls/libpthread.so.0
#4  0xb74b19ea in clone () from /lib/tls/libc.so.6
(gdb) next
97      in poll/unix/epoll.c
(gdb) next
96      in poll/unix/epoll.c
(gdb) print fd
$1 = -1219447192
(gdb) print errno
$2 = 0
(gdb) next
97      in poll/unix/epoll.c
(gdb) next
98      in poll/unix/epoll.c
(gdb) print $2
$3 = 0
(gdb) print errno
$4 = 0
(gdb) print
$5 = 0
(gdb) print fd
$6 = -1
(gdb) print errno
$7 = 0
(gdb) next
99      in poll/unix/epoll.c
(gdb) next
131     in poll/unix/epoll.c
(gdb) print size
$8 = 1
(gdb) next
listener_thread (thd=0x812d770, dummy=0x819cc80) at worker.c:611
611     worker.c: No such file or directory.
        in worker.c
(gdb) print pollset
$9 = (apr_pollset_t *) 0x0


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41184] - child pid nnnn exit signal Segmentation fault (11)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41184>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41184





------- Additional Comments From rpluem@apache.org  2006-12-15 16:30 -------
Further question: Have you compiled httpd on this box / another RedHat 3 ES box
or has this binary been compiled on a different system e.g. RedHat 4?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41184] - child pid nnnn exit signal Segmentation fault (11)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41184>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41184


wrowe@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




------- Additional Comments From wrowe@apache.org  2006-12-15 11:34 -------
In fact, it looks like nothing.  Please post the backtrace of the core dump?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 41184] - child pid nnnn exit signal Segmentation fault (11)

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41184>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41184





------- Additional Comments From wrowe@apache.org  2006-12-15 11:35 -------
Sorry - your followup was faster than my email notices!

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org