httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46501] New: Apache 2.2.11 segfaults on kernel 2.6.28
Date Fri, 09 Jan 2009 14:21:23 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46501

           Summary: Apache 2.2.11 segfaults on kernel 2.6.28
           Product: Apache httpd-2
           Version: 2.2.11
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: prefork
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: werner@aloah-from-hell.de


Created an attachment (id=23100)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23100)
GDB-Backtrace

Hi everybody, 

since I've upgraded the kernel of my webserver from version 2.6.26.9 to the
latest kernel 2.6.28 my apache started to segfault:

[Fri Jan 09 12:39:00 2009] [notice] child pid 11610 exit signal Segmentation
fault (11)
[Fri Jan 09 12:39:00 2009] [notice] child pid 11611 exit signal Segmentation
fault (11)
[Fri Jan 09 12:39:00 2009] [notice] child pid 11612 exit signal Segmentation
fault (11)
[Fri Jan 09 12:39:00 2009] [notice] child pid 11613 exit signal Segmentation
fault (11)

I've tried to track down the source of the problem with a coredump, gdb and
mod_backtrace. 
In /var/log/kern.log this shows up as follows: 

Jan  9 15:00:10 n2 kernel: httpd[3882]: segfault at e264e350 ip
00007f47e2494941 sp 00007fffeb45f4d0 error 4 in
libc-2.3.6.so[7f47e2412000+121000]
Jan  9 15:00:10 n2 kernel: httpd[3880]: segfault at e264e350 ip
00007f47e2494941 sp 00007fffeb45f4d0 error 4 in
libc-2.3.6.so[7f47e2412000+121000]

I've attached the output of the backtrace to this message for further
investigation. As far as I understand the output of the backtrace, the source
of the problem might be: 

#5  apr_pollset_add (pollset=0x0, descriptor=0x7fff85c4f4f0) at
poll/unix/epoll.c:150

line 150 is: 

if (pollset->flags & APR_POLLSET_NOCOPY) {

seems like as if a dereferencing of the nullpointer is tried. This is a result
of line 520 in prefork.c: 

/* ### check the status */
(void) apr_pollset_create(&pollset, num_listensocks, pchild, 0);

This obvisiously doesn't work and the error is not correctly handled. Possible
reasons: 
- epoll_create or apr_palloc aborts

In the changelog of the kernel I've found something interesting:

 commit 7ef9964e6d1b911b78709f144000aacadd0ebc21
  Author: Davide Libenzi <davidel@xmailserver.org>
  Date:   Mon Dec 1 13:13:55 2008 -0800

      epoll: introduce resource usage limits

Maybe this sticks together? Please let me know if you need further information.

best regards,
Werner Detter


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

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


Mime
View raw message