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 2011/02/26 11:24:05 UTC

DO NOT REPLY [Bug 50834] New: worker mpm core dump with mod_proxy when we reboot or kill the content server

https://issues.apache.org/bugzilla/show_bug.cgi?id=50834

           Summary: worker mpm core dump with mod_proxy when we reboot or
                    kill the content server
           Product: Apache httpd-2
           Version: 2.2.15
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: worker
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: kumarachal@gmail.com


While load testing mod_proxy/worker mpm with 500 concurrent streams, we see a
core dump. This is easily reproducible.

1. Do 500 concurrent wgets and maintain the load. During the load, go to the
content serves (apaches) and killall httpd. We see the following core dump

(gdb) bt full
#0  0x0000003ac00306f7 in kill () from /lib64/libc.so.6
No symbol table info available.
#1  <signal handler called>
No symbol table info available.
#2  0x00002aaca7a2db89 in apr_brigade_cleanup (data=<value optimized out>) at
buckets/apr_brigade.c:44
        b = (apr_bucket_brigade *) 0x0
#3  0x00002aaca7c5b09d in run_cleanups (cref=0x1a99c068) at
memory/unix/apr_pools.c:2308
        c = (cleanup_t *) 0x0
#4  0x00002aaca7c5bb0e in apr_pool_destroy (pool=0x1a99c048) at
memory/unix/apr_pools.c:779
        active = <value optimized out>
        allocator = <value optimized out>
#5  0x000000000046d09d in ap_process_http_connection (c=0x1a980208) at
http_core.c:199
        r = (request_rec *) 0x1a99c0c0
        csd = (apr_socket_t *) 0x0
#6  0x000000000043fb22 in ap_run_process_connection (c=0x1a980208) at
connection.c:43
        n = 0
        rv = 0
#7  0x000000000048b094 in worker_thread (thd=0x1a7066f0, dummy=<value optimized
out>) at worker.c:544
        process_slot = 8
        thread_slot = 1
        csd = (apr_socket_t *) 0x1a97fff0
        bucket_alloc = (apr_bucket_alloc_t *) 0x1a981f78
        last_ptrans = <value optimized out>
        ptrans = (apr_pool_t *) 0x1a97ff68
        rv = <value optimized out>
        is_idle = <value optimized out>
#8  0x0000003ac08064a7 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#9  0x0000003ac00d3c2d in clone () from /lib64/libc.so.6
No symbol table info available.


Apache has been configured with mod_proxy and worker mpm. The configuration is:

ServerLimit 24
ThreadLimit 64

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_worker_module>
    StartServers         16
    MaxClients           1536
    MinSpareThreads      512
    MaxSpareThreads      1024
    ThreadsPerChild      64
    MaxRequestsPerChild   0
</IfModule>


Whenev

-- 
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


DO NOT REPLY [Bug 50834] worker mpm core dump with mod_proxy when we reboot or kill the content server

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50834

achal <ku...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P1
           Severity|normal                      |critical

-- 
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


DO NOT REPLY [Bug 50834] worker mpm core dump with mod_proxy when we reboot or kill the content server

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50834

--- Comment #2 from achal <ku...@gmail.com> 2011-03-09 06:15:02 EST ---
it seems that it is happening because of the changes made in rev 916627

-- 
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


DO NOT REPLY [Bug 50834] worker mpm core dump with mod_proxy when we reboot or kill the content server

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50834

--- Comment #1 from achal <ku...@gmail.com> 2011-03-07 16:48:14 EST ---
Hi guys, some more information:

This bug is not reproducible with 2.2.14 but happens easily with 2.2.15 and
above 2.2.* versions.

-- 
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


[Bug 50834] worker mpm core dump with mod_proxy when we reboot or kill the content server

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50834

Antoine Prevosto <an...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |antoine.prevosto@gmail.com

-- 
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


[Bug 50834] worker mpm core dump with mod_proxy when we reboot or kill the content server

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50834

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #4 from Eric Covener <co...@gmail.com> ---
test with 50335 changes if still affected; maybe this PR is a good hint for
triggering 50335.

*** This bug has been marked as a duplicate of bug 50335 ***

-- 
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


DO NOT REPLY [Bug 50834] worker mpm core dump with mod_proxy when we reboot or kill the content server

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50834

achal <ku...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kumarachal@gmail.com

-- 
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


DO NOT REPLY [Bug 50834] worker mpm core dump with mod_proxy when we reboot or kill the content server

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50834

--- Comment #3 from achal <ku...@gmail.com> 2011-03-11 15:17:48 EST ---
Hi all,


We reverted the changes made in apache r827514
(http://svn.apache.org/viewvc?view=revision&revision=827514).
This was leading to segfaults on unexpeted origin server shutdown when all
threads were busy in worker MPM. The configuration was 24 child processes each
having 64 threads.


/****

* Return APR_EOF if request body is shorter than the length announced by the
  client.

PR: 33098
Submitted by: Stefan Fritsch <sf sfritsch.de>

****/

Achal

-- 
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