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 2007/04/03 11:50:53 UTC

DO NOT REPLY [Bug 42031] New: - EventMPM child process freeze

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=42031>.
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=42031

           Summary: EventMPM child process freeze
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Event MPM
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: serai@lans-tv.com


Child process freezes with many downloading against MaxClients.

How to reproduce:

(1) configuration to httpd.conf

StartServers          1
MaxClients          3
MinSpareThreads      1
MaxSpareThreads      3
ThreadsPerChild      3
MaxRequestsPerChild   0
Timeout 10
KeepAlive On
MaxKeepAliveRequests 0
KeepAliveTimeout 5

(2) put a large file "test.mpg" (about 200MB) on DocumentRoot
(3) apachectl start
(4) execute many downloading simultaneously.
e.g. bash and wget:
$ for (( i=0 ; i<20 ; i++ )); do wget -b http://localhost/test.mpg; done;

Then the child process often freezes. If not, try to download more.

(5) terminate downloading
e.g. bash and wget:
$ killall wget

(6) access to any file from web browser.
However long you wait, server won't response.


"apachectl graceful" then in error log
[Tue Apr 03 16:41:14 2007] [debug] event.c(1392): the listener thread didn't 
exit

"apachectl stop" then in error log
[Tue Apr 03 16:48:18 2007] [warn] child process 31077 still did not exit, 
sending a SIGTERM
[Tue Apr 03 16:48:20 2007] [warn] child process 31077 still did not exit, 
sending a SIGTERM
[Tue Apr 03 16:48:22 2007] [warn] child process 31077 still did not exit, 
sending a SIGTERM
[Tue Apr 03 16:48:24 2007] [error] child process 31077 still did not exit, 
sending a SIGKILL



OS: Fedora Core 6
kernel: 2.6.20-1.2933.fc6
glibc: 2.5-10.fc6

httpd revision 525116.
$ ./httpd -V
Server version: Apache/2.3.0-dev (Unix)
Server built:   Apr  3 2007 15:49:09
Server's Module Magic Number: 20060905:2
Server loaded:  APR 1.3.0-dev, APR-UTIL 1.3.0-dev
Compiled using: APR 1.3.0-dev, APR-UTIL 1.3.0-dev
Architecture:   32-bit
Server MPM:     Event
  threaded:     yes (fixed thread count)
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/experimental/event"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/usr/local/apache2"
 -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"



backtrace of frozen child process:

Thread 5 (Thread -1219343472 (LWP 30355)):
#0  0x007b9402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x4bb3998e in __lll_mutex_lock_wait () from /lib/libpthread.so.0
No symbol table info available.
#2  0x4bb357fc in _L_mutex_lock_85 () from /lib/libpthread.so.0
No symbol table info available.
#3  0x4bb3533d in pthread_mutex_lock () from /lib/libpthread.so.0
No symbol table info available.
#4  0x0055a308 in apr_thread_mutex_lock (mutex=0x83c72f8)
    at locks/unix/thread_mutex.c:92
        rv = 0
#5  0x08091234 in process_socket (p=0x83f3cd0, sock=0x83f3d10, cs=0x83f3eb0,
    my_child_num=0, my_thread_num=0) at event.c:656
        output_filter = (ap_filter_t *) 0x83f4448
        rv = 0
        c = (conn_rec *) 0x83f3f08
        pt = (listener_poll_type *) 0x83f3ee8
        conn_id = 0
        rc = 2
        sbh = (ap_sb_handle_t *) 0x83f45c8
#6  0x0809215c in worker_thread (thd=0x83b94e0, dummy=0x83e94e0)
    at event.c:1194
        ti = (proc_info *) 0x83e94e0
        process_slot = 0
        thread_slot = 0
        csd = (apr_socket_t *) 0x83f3d10
        cs = (conn_state_t *) 0x83f3eb0
        ptrans = (apr_pool_t *) 0x83f3cd0
        rv = 0
        is_idle = 0
#7  0x00566f70 in dummy_worker (opaque=0x83b94e0)
    at threadproc/unix/thread.c:142
        thread = (apr_thread_t *) 0x83b94e0
#8  0x4bb333db in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#9  0x4ba1726e in clone () from /lib/libc.so.6
No symbol table info available.



Thread 4 (Thread -1229833328 (LWP 30356)):
#0  0x007b9402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x4bb3998e in __lll_mutex_lock_wait () from /lib/libpthread.so.0
No symbol table info available.
#2  0x4bb357fc in _L_mutex_lock_85 () from /lib/libpthread.so.0
No symbol table info available.
#3  0x4bb3533d in pthread_mutex_lock () from /lib/libpthread.so.0
No symbol table info available.
#4  0x0055a308 in apr_thread_mutex_lock (mutex=0x83c72f8)
    at locks/unix/thread_mutex.c:92
        rv = 0
#5  0x08091234 in process_socket (p=0x83e9c38, sock=0x83e9c78, cs=0x83e9e18,
    my_child_num=0, my_thread_num=1) at event.c:656
        output_filter = (ap_filter_t *) 0x83ea3b0
        rv = 0
        c = (conn_rec *) 0x83e9e70
        pt = (listener_poll_type *) 0x83e9e50
        conn_id = 1
        rc = 2
        sbh = (ap_sb_handle_t *) 0x83ea818
#6  0x0809215c in worker_thread (thd=0x83b9500, dummy=0x83e94f0)
    at event.c:1194
        ti = (proc_info *) 0x83e94f0
        process_slot = 0
        thread_slot = 1
        csd = (apr_socket_t *) 0x83e9c78
        cs = (conn_state_t *) 0x83e9e18
        ptrans = (apr_pool_t *) 0x83e9c38
        rv = 0
        is_idle = 0
#7  0x00566f70 in dummy_worker (opaque=0x83b9500)
    at threadproc/unix/thread.c:142
        thread = (apr_thread_t *) 0x83b9500
#8  0x4bb333db in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#9  0x4ba1726e in clone () from /lib/libc.so.6
No symbol table info available.



#8  0x4bb333db in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#9  0x4ba1726e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 3 (Thread -1240323184 (LWP 30357)):
#0  0x007b9402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x4bb3998e in __lll_mutex_lock_wait () from /lib/libpthread.so.0
No symbol table info available.
#2  0x4bb357fc in _L_mutex_lock_85 () from /lib/libpthread.so.0
No symbol table info available.
#3  0x4bb3533d in pthread_mutex_lock () from /lib/libpthread.so.0
No symbol table info available.
#4  0x0055a308 in apr_thread_mutex_lock (mutex=0x83c72f8)
    at locks/unix/thread_mutex.c:92
        rv = 0
#5  0x08091382 in process_socket (p=0x8419eb8, sock=0x8419ef0, cs=0x841a090,
    my_child_num=0, my_thread_num=2) at event.c:697
        rc = 0
        pt = (listener_poll_type *) 0x841a0c8
        c = (conn_rec *) 0x841a0e8
        pt = (listener_poll_type *) 0x841a0c8
        conn_id = 2
        rc = -2
        sbh = (ap_sb_handle_t *) 0x841a088
#6  0x0809215c in worker_thread (thd=0x83b9520, dummy=0x83e94e0)
    at event.c:1194
        ti = (proc_info *) 0x83e94e0
        process_slot = 0
        thread_slot = 2
        csd = (apr_socket_t *) 0x8419ef0
        cs = (conn_state_t *) 0x0
        ptrans = (apr_pool_t *) 0x8419eb8
        rv = 0
        is_idle = 0
#7  0x00566f70 in dummy_worker (opaque=0x83b9520)
    at threadproc/unix/thread.c:142
        thread = (apr_thread_t *) 0x83b9520
#8  0x4bb333db in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#9  0x4ba1726e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 2 (Thread -1250813040 (LWP 30358)):
#0  0x007b9402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x4bb371a6 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
No symbol table info available.
#2  0x0055876f in apr_thread_cond_wait (cond=0x83b9478, mutex=0x83b9448)
    at locks/unix/thread_cond.c:68
        rv = 0
#3  0x08094de4 in ap_queue_info_wait_for_idler (queue_info=0x83b9430)
    at fdqueue.c:158
        rv = 0
        prev_idlers = 0
#4  0x080917bd in get_worker (have_idle_worker_p=0xb5721364) at event.c:855
        rc = 1270095860
#5  0x08091dd1 in listener_thread (thd=0x83b9540, dummy=0x83e9500)
    at event.c:1063
        rc = 0
        ti = (proc_info *) 0x83e9500
        process_slot = 0
        tpool = (apr_pool_t *) 0x83c72c0
        csd = (void *) 0x8419ef0
        ptrans = (apr_pool_t *) 0x8419eb8
        lr = (ap_listen_rec *) 0x832b520
        have_idle_worker = 0
        cs = (conn_state_t *) 0x83fff50
        out_pfd = (const apr_pollfd_t *) 0x83c73ac
        num = 0
        time_now = 1175583389600457
        timeout_interval = 1000000
        timeout_time = 1175583389700457
        pt = (listener_poll_type *) 0x83c73f0
#6  0x00566f70 in dummy_worker (opaque=0x83b9540)
    at threadproc/unix/thread.c:142
        thread = (apr_thread_t *) 0x83b9540
#7  0x4bb333db in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#8  0x4ba1726e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 1 (Thread -1208617280 (LWP 30353)):
#0  0x007b9402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x4bb39d6b in read () from /lib/libpthread.so.0
No symbol table info available.
#2  0x08095389 in ap_mpm_pod_check (pod=0x8341640) at pod.c:54
        c = 0 '\0'
        fd = 5
        rc = -1075834592
#3  0x08092bb6 in child_main (child_num_arg=0) at event.c:1553
        threads = (apr_thread_t **) 0x83e94d0
        rv = 0
        ts = (thread_starter *) 0x83b9300
        thread_attr = (apr_threadattr_t *) 0x83b9310
        start_thread_id = (apr_thread_t *) 0x83b9348
#4  0x08092d3c in make_child (s=0x832ef78, slot=0) at event.c:1639
        pid = 0
#5  0x08092dbf in startup_children (number_to_start=1) at event.c:1658
        i = 0
#6  0x080934e4 in ap_mpm_run (_pconf=0x832d0a8, plog=0x835d168, s=0x832ef78)
    at event.c:1978
        remaining_children_to_start = 1
#7  0x08064abb in main (argc=3, argv=0xbfe011a4) at main.c:750
        c = 0 '\0'
        configtestonly = 0
        confname = 0x80a0d7d "conf/httpd.conf"
        def_server_root = 0x80a0d8d "/usr/local/apache2"
        temp_error_log = 0x0
        error = 0x0
        process = (process_rec *) 0x832b128
        server_conf = (server_rec *) 0x832ef78
        pglobal = (apr_pool_t *) 0x832b0a0
        pconf = (apr_pool_t *) 0x832d0a8
        plog = (apr_pool_t *) 0x835d168
        ptemp = (apr_pool_t *) 0x8361178
        pcommands = (apr_pool_t *) 0x832f0b0
        opt = (apr_getopt_t *) 0x832f148
        rv = 0
        mod = (module **) 0x80acc90
        optarg = 0x0
        signal_server = (
    apr_OFN_ap_signal_server_t *) 0x80859a8 <ap_signal_server>
#0  0x007b9402 in __kernel_vsyscall ()

-- 
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 42031] - EventMPM child process freeze

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=42031>.
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=42031





------- Additional Comments From serai@lans-tv.com  2007-08-21 09:01 -------
Now I can't reproduce the bug on trunk rev 567852 nor rev 525116.
(4) execute many downloading simultaneously,
Then child process exit signal Segmentation fault.
Why???

gdb output (rev 525116)

(gdb) run -X
Starting program: /usr/local/apache2/bin/httpd -X
[Thread debugging using libthread_db enabled]
[New Thread -1208502592 (LWP 561)]
[New Thread -1208738928 (LWP 574)]
[New Thread -1219228784 (LWP 575)]
[New Thread -1229718640 (LWP 576)]
[New Thread -1240208496 (LWP 577)]
[New Thread -1250698352 (LWP 578)]
[Thread -1208738928 (LWP 574) exited]

Program received signal SIGPIPE, Broken pipe.
[Switching to Thread -1240208496 (LWP 577)]
0x00110402 in __kernel_vsyscall ()
(gdb) thread apply all bt full

Thread 6 (Thread -1250698352 (LWP 578)):
#0  0x00110402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x003e2b21 in __lll_mutex_unlock_wake () from /lib/libpthread.so.0
No symbol table info available.
#2  0x003df839 in _L_mutex_unlock_99 () from /lib/libpthread.so.0
No symbol table info available.
#3  0x003df4b0 in __pthread_mutex_unlock_usercnt () from /lib/libpthread.so.0
No symbol table info available.
#4  0x003df830 in pthread_mutex_unlock () from /lib/libpthread.so.0
No symbol table info available.
#5  0x0016b37e in apr_thread_mutex_unlock (mutex=0x9a99010)
    at /home/user1/httpd-trunk/srclib/apr/locks/unix/thread_mutex.c:121
	status = 0
#6  0x0809518f in ap_queue_push (queue=0x9a98ff8, sd=0x9b2bec8, cs=0x0, 
p=0x9b2be90)
    at /home/user1/httpd-trunk/server/mpm/experimental/event/fdqueue.c:337
	elem = (fd_queue_elem_t *) 0x9a99094
	rv = 0
#7  0x08091cc7 in listener_thread (thd=0x9a991d0, dummy=0x9ac7168)
    at /home/user1/httpd-trunk/server/mpm/experimental/event/event.c:1027
	rc = 0
	ti = (proc_info *) 0x9ac7168
	process_slot = 0
	tpool = (apr_pool_t *) 0x9aa2f80
	csd = (void *) 0x9b2bec8
	ptrans = (apr_pool_t *) 0x9b2be90
	lr = (ap_listen_rec *) 0x9a33520
	have_idle_worker = 1
	cs = (conn_state_t *) 0x9b0dea0
	out_pfd = (const apr_pollfd_t *) 0x9aa3080
	num = 1
	time_now = 1187710557998374
	timeout_interval = 1000000
	timeout_time = 1187710558098374
	pt = (listener_poll_type *) 0x9aa30b0
#8  0x00179754 in dummy_worker (opaque=0x9a991d0)
    at /home/user1/httpd-trunk/srclib/apr/threadproc/unix/thread.c:142
	thread = (apr_thread_t *) 0x9a991d0
#9  0x003dc44b in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#10 0x002bd80e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 5 (Thread -1240208496 (LWP 577)):
#0  0x00110402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x002b41ee in sendfile64 () from /lib/libc.so.6
No symbol table info available.
#2  0x00173b2a in apr_socket_sendfile (sock=0x9b2bec8, file=0x9b2c618, 
hdtr=0x17f9f8, offset=0xb613e0e0, 
    len=0xb613e0dc, flags=0) at /home/user1/httpd-
trunk/srclib/apr/network_io/unix/sendrecv.c:329
	rv = 0
	nbytes = 0
	total_hdrbytes = 0
	i = 134909576
	arv = 1569892
	off = 16384
#3  0x0807a583 in sendfile_nonblocking (s=0x9b2bec8, bucket=0x9b2e0c8, 
cumulative_bytes_written=0x9b2c5d0, 
    c=0x9b2c0c0) at /home/user1/httpd-trunk/server/core_filters.c:774
	n = 190898180
	arv = 0
	old_timeout = 10000000
	rv = 0
	file_bucket = (apr_bucket_file *) 0x9b2e018
	fd = (apr_file_t *) 0x9b2c618
	file_length = 190898180
	file_offset = 16384
	bytes_written = 0
#4  0x08079ea7 in send_brigade_nonblocking (s=0x9b2bec8, bb=0x9b2c5f8, 
bytes_written=0x9b2c5d0, c=0x9b2c0c0)
    at /home/user1/httpd-trunk/server/core_filters.c:576
	file_bucket = (apr_bucket_file *) 0x9b2e018
	fd = (apr_file_t *) 0x9b2c618
	did_sendfile = 1
	bucket = (apr_bucket *) 0x9b2e0c8
	next = (apr_bucket *) 0x9b2e070
	rv = 162731568
	vec = {{iov_base = 0x9b31388, iov_len = 0}, {iov_base = 0x9b2c09c, 
iov_len = 162717632}, {
    iov_base = 0x9b31368, iov_len = 162728960}, {iov_base = 0x9b31488, iov_len 
= 0}, {iov_base = 0x0, 
    iov_len = 162727224}, {iov_base = 0x0, iov_len = 162731128}, {iov_base = 
0x9b2dfc0, 
    iov_len = 162717808}, {iov_base = 0x9b31388, iov_len = 3054756344}, 
{iov_base = 0x8074626, 
    iov_len = 162728960}, {iov_base = 0x9b31488, iov_len = 0}, {iov_base = 
0x0, iov_len = 190914564}, {
    iov_base = 0x0, iov_len = 162717632}, {iov_base = 0x198e18, iov_len = 
162103320}, {iov_base = 0x0, 
    iov_len = 0}, {iov_base = 0x16e525, iov_len = 4129}, {iov_base = 
0xffffffff, iov_len = 162031304}}
	nvec = 0
#5  0x08079c97 in ap_core_output_filter (f=0x9b2c568, new_bb=0x9b2c6a0)
    at /home/user1/httpd-trunk/server/core_filters.c:488
	rv = 162709608
	c = (conn_rec *) 0x9b2c0c0
	net = (core_net_rec *) 0x9b2c540
	ctx = (core_output_filter_ctx_t *) 0x9b2c5c8
	bb = (apr_bucket_brigade *) 0x9b2c5f8
	bucket = (apr_bucket *) 0x9b2c5fc
	next = (apr_bucket *) 0x9b2c5fc
	bytes_in_brigade = 190898180
	non_file_bytes_in_brigade = 0
#6  0x08087609 in ap_pass_brigade (next=0x9b2c568, bb=0x9b2c6a0)
    at /home/user1/httpd-trunk/server/util_filter.c:526
	e = (apr_bucket *) 0x9b2dfc0
#7  0x0808b0e5 in ap_process_async_request (r=0x9b2fed8)
    at /home/user1/httpd-trunk/modules/http/http_request.c:261
	access_status = 0
	bb = (apr_bucket_brigade *) 0x9b2c6a0
	b = (apr_bucket *) 0x9b2dfc0
	c = (conn_rec *) 0x9b2c0c0
#8  0x08087b6a in ap_process_http_async_connection (c=0x9b2c0c0)
    at /home/user1/httpd-trunk/modules/http/http_core.c:140
	r = (request_rec *) 0x9b2fed8
	cs = (conn_state_t *) 0x9b2c068
#9  0x0808353f in ap_run_process_connection (c=0x9b2c0c0) at /home/user1/httpd-
trunk/server/connection.c:43
	pHook = (ap_LINK_process_connection_t *) 0x9ac1970
	n = 0
	rv = -2
#10 0x080911eb in process_socket (p=0x9b2be90, sock=0x9b2bec8, cs=0x9b2c068, 
my_child_num=0, 
    my_thread_num=2) at /home/user1/httpd-
trunk/server/mpm/experimental/event/event.c:626
	c = (conn_rec *) 0x9b2c0c0
	pt = (listener_poll_type *) 0x9b2c0a0
	conn_id = 2
	rc = -2
	sbh = (ap_sb_handle_t *) 0x9b2c060
#11 0x080921e8 in worker_thread (thd=0x9a991b0, dummy=0x9ac7158)
    at /home/user1/httpd-trunk/server/mpm/experimental/event/event.c:1194
	ti = (proc_info *) 0x9ac7158
	process_slot = 0
	thread_slot = 2
	csd = (apr_socket_t *) 0x9b2bec8
	cs = (conn_state_t *) 0x0
	ptrans = (apr_pool_t *) 0x9b2be90
	rv = 0
	is_idle = 0
#12 0x00179754 in dummy_worker (opaque=0x9a991b0)
    at /home/user1/httpd-trunk/srclib/apr/threadproc/unix/thread.c:142
	thread = (apr_thread_t *) 0x9a991b0
#13 0x003dc44b in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#14 0x002bd80e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 4 (Thread -1229718640 (LWP 576)):
#0  0x00110402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x003e0206 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
No symbol table info available.
#2  0x0016cf4f in apr_thread_cond_wait (cond=0x9a99040, mutex=0x9a99010)
    at /home/user1/httpd-trunk/srclib/apr/locks/unix/thread_cond.c:68
	rv = 0
#3  0x08095200 in ap_queue_pop (queue=0x9a98ff8, sd=0xb6b3f38c, cs=0xb6b3f388, 
p=0xb6b3f384)
    at /home/user1/httpd-trunk/server/mpm/experimental/event/fdqueue.c:363
	elem = (fd_queue_elem_t *) 0x0
	rv = 0
#4  0x08092147 in worker_thread (thd=0x9a99190, dummy=0x9ac7168)
    at /home/user1/httpd-trunk/server/mpm/experimental/event/event.c:1162
	ti = (proc_info *) 0x9ac7168
	process_slot = 0
	thread_slot = 1
	csd = (apr_socket_t *) 0x9ad1970
	cs = (conn_state_t *) 0x9ad1b10
	ptrans = (apr_pool_t *) 0x9ad1938
	rv = 0
	is_idle = 1
#5  0x00179754 in dummy_worker (opaque=0x9a99190)
    at /home/user1/httpd-trunk/srclib/apr/threadproc/unix/thread.c:142
	thread = (apr_thread_t *) 0x9a99190
#6  0x003dc44b in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7  0x002bd80e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 3 (Thread -1219228784 (LWP 575)):
#0  0x00110402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x002b41ee in sendfile64 () from /lib/libc.so.6
No symbol table info available.
#2  0x00173b2a in apr_socket_sendfile (sock=0x9ac78d8, file=0x9ac8028, 
hdtr=0x17f9f8, offset=0xb7540190, 
    len=0xb754018c, flags=0) at /home/user1/httpd-
trunk/srclib/apr/network_io/unix/sendrecv.c:329
	rv = 0
	nbytes = 0
	total_hdrbytes = 0
	i = 0
	arv = 162676768
	off = 10301440
#3  0x0807a583 in sendfile_nonblocking (s=0x9ac78d8, bucket=0x9ac9ad8, 
cumulative_bytes_written=0x9ac7fe0, 
    c=0x9ac7ad0) at /home/user1/httpd-trunk/server/core_filters.c:774
	n = 183644164
	arv = 0
	old_timeout = 10000000
	rv = 0
	file_bucket = (apr_bucket_file *) 0x9ac9a28
	fd = (apr_file_t *) 0x9ac8028
	file_length = 183644164
	file_offset = 7270400
	bytes_written = 0
#4  0x08079ea7 in send_brigade_nonblocking (s=0x9ac78d8, bb=0x9ac80c0, 
bytes_written=0x9ac7fe0, c=0x9ac7ad0)
    at /home/user1/httpd-trunk/server/core_filters.c:576
	file_bucket = (apr_bucket_file *) 0x9ac9a28
	fd = (apr_file_t *) 0x9ac8028
	did_sendfile = 1
	bucket = (apr_bucket *) 0x9ac9ad8
	next = (apr_bucket *) 0x9ac9a80
	rv = 0
	vec = {{iov_base = 0x9afbc70, iov_len = 162511984}, {iov_base = 
0x9afa3d8, iov_len = 162503552}, {
    iov_base = 0x0, iov_len = 162505488}, {iov_base = 0x1302f4, iov_len = 
3075736136}, {
    iov_base = 0x8087564, iov_len = 162505304}, {iov_base = 0x9afa3d8, iov_len 
= 2549142}, {
    iov_base = 0x17bccc, iov_len = 3075736132}, {iov_base = 0x0, iov_len = 
162511752}, {iov_base = 0xb, 
    iov_len = 0}, {iov_base = 0x46cb065c, iov_len = 457949}, {iov_base = 
0x9af9d70, iov_len = 0}, {
    iov_base = 0x9af9da4, iov_len = 3075736184}, {iov_base = 0x806ae86, 
iov_len = 0}, {iov_base = 0x0, 
    iov_len = 3075736184}, {iov_base = 0x806ce1f, iov_len = 162512072}, 
{iov_base = 0x9b23e20, 
    iov_len = 3075736216}}
	nvec = 0
#5  0x08079ad6 in ap_core_output_filter (f=0x9ac7f78, new_bb=0x0)
    at /home/user1/httpd-trunk/server/core_filters.c:423
	rv = 304
	c = (conn_rec *) 0x9ac7ad0
	net = (core_net_rec *) 0x9ac7f50
	ctx = (core_output_filter_ctx_t *) 0x9ac7fd8
	bb = (apr_bucket_brigade *) 0x9ac80c0
	bucket = (apr_bucket *) 0x3e2b21
	next = (apr_bucket *) 0x9ac8330
	bytes_in_brigade = 162297992
	non_file_bytes_in_brigade = 4112372
#6  0x0809123c in process_socket (p=0x9ac78a0, sock=0x9ac78d8, cs=0x9ac7a78, 
my_child_num=0, 
    my_thread_num=0) at /home/user1/httpd-
trunk/server/mpm/experimental/event/event.c:644
	output_filter = (ap_filter_t *) 0x9ac7f78
	rv = 0
	c = (conn_rec *) 0x9ac7ad0
	pt = (listener_poll_type *) 0x9ac7ab0
	conn_id = 0
	rc = 2
	sbh = (ap_sb_handle_t *) 0x9ac8330
#7  0x080921e8 in worker_thread (thd=0x9a99170, dummy=0x9ac7158)
    at /home/user1/httpd-trunk/server/mpm/experimental/event/event.c:1194
	ti = (proc_info *) 0x9ac7158
	process_slot = 0
	thread_slot = 0
	csd = (apr_socket_t *) 0x9ac78d8
	cs = (conn_state_t *) 0x9ac7a78
	ptrans = (apr_pool_t *) 0x9ac78a0
	rv = 0
	is_idle = 0
#8  0x00179754 in dummy_worker (opaque=0x9a99170)
    at /home/user1/httpd-trunk/srclib/apr/threadproc/unix/thread.c:142
	thread = (apr_thread_t *) 0x9a99170
#9  0x003dc44b in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#10 0x002bd80e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 1 (Thread -1208502592 (LWP 561)):
#0  0x00110402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x003e3f3e in do_sigwait () from /lib/libpthread.so.0
No symbol table info available.
#2  0x003e3fdf in sigwait () from /lib/libpthread.so.0
No symbol table info available.
#3  0x0017b242 in apr_signal_thread (signal_handler=0x8092279 <check_signal>)
    at /home/user1/httpd-trunk/srclib/apr/threadproc/unix/signals.c:383
	signal_received = 4095
	sig_mask = {__val = {1073340935, 4294967294, 4294967295 <repeats 30 
times>}}
	sig_func = (int (*)(int)) 0x8092279 <check_signal>
#4  0x08092be4 in child_main (child_num_arg=0)
    at /home/user1/httpd-trunk/server/mpm/experimental/event/event.c:1520
	threads = (apr_thread_t **) 0x9ac7148
	rv = 0
	ts = (thread_starter *) 0x9a98f90
	thread_attr = (apr_threadattr_t *) 0x9a98fa0
	start_thread_id = (apr_thread_t *) 0x9a98fd8
#5  0x08092d42 in make_child (s=0x9a36f78, slot=0)
    at /home/user1/httpd-trunk/server/mpm/experimental/event/event.c:1602
	pid = 0
#6  0x08092e4b in startup_children (number_to_start=1)
    at /home/user1/httpd-trunk/server/mpm/experimental/event/event.c:1658
	i = 0
#7  0x08093570 in ap_mpm_run (_pconf=0x9a350a8, plog=0x9a65168, s=0x9a36f78)
    at /home/user1/httpd-trunk/server/mpm/experimental/event/event.c:1978
	remaining_children_to_start = 1
#8  0x08064aeb in main (argc=2, argv=0xbff4d244) at /home/user1/httpd-
trunk/server/main.c:750
	c = 88 'X'
	configtestonly = 0
	confname = 0x80a0e3d "conf/httpd.conf"
	def_server_root = 0x80a0e4d "/usr/local/apache2"
	temp_error_log = 0x0
	error = 0x0
	process = (process_rec *) 0x9a33128
	server_conf = (server_rec *) 0x9a36f78
	pglobal = (apr_pool_t *) 0x9a330a0
	pconf = (apr_pool_t *) 0x9a350a8
	plog = (apr_pool_t *) 0x9a65168
	ptemp = (apr_pool_t *) 0x9a69178
	pcommands = (apr_pool_t *) 0x9a370b0
	opt = (apr_getopt_t *) 0x9a37148
	rv = 0
	mod = (module **) 0x80ae0b0
	optarg = 0x0
	signal_server = (apr_OFN_ap_signal_server_t *) 0
#0  0x00110402 in __kernel_vsyscall ()
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x00117186 in apr_brigade_cleanup (data=0x0)
    at /home/user1/httpd-trunk/srclib/apr-util/buckets/apr_brigade.c:42
42	    while (!APR_BRIGADE_EMPTY(b)) {
(gdb) thread apply all bt full

Thread 6 (Thread -1250698352 (LWP 578)):
#0  0x00110402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x003e0206 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
No symbol table info available.
#2  0x0016cf4f in apr_thread_cond_wait (cond=0x9a99108, mutex=0x9a990d8)
    at /home/user1/httpd-trunk/srclib/apr/locks/unix/thread_cond.c:68
	rv = 0
#3  0x08094e70 in ap_queue_info_wait_for_idler (queue_info=0x9a990c0)
    at /home/user1/httpd-trunk/server/mpm/experimental/event/fdqueue.c:158
	rv = 0
	prev_idlers = 0
#4  0x08091849 in get_worker (have_idle_worker_p=0xb573d364)
    at /home/user1/httpd-trunk/server/mpm/experimental/event/event.c:855
	rc = 4112372
#5  0x08091f10 in listener_thread (thd=0x9a991d0, dummy=0x9ac7168)
    at /home/user1/httpd-trunk/server/mpm/experimental/event/event.c:1087
	rc = 0
	ti = (proc_info *) 0x9ac7168
	process_slot = 0
	tpool = (apr_pool_t *) 0x9aa2f80
	csd = (void *) 0x9b2bec8
	ptrans = (apr_pool_t *) 0x9b2be90
	lr = (ap_listen_rec *) 0x9a33520
	have_idle_worker = 0
	cs = (conn_state_t *) 0x9ae5c40
	out_pfd = (const apr_pollfd_t *) 0x9aa3094
	num = 0
	time_now = 1187710592861859
	timeout_interval = 1000000
	timeout_time = 1187710592961859
	pt = (listener_poll_type *) 0x9aa30b0
#6  0x00179754 in dummy_worker (opaque=0x9a991d0)
    at /home/user1/httpd-trunk/srclib/apr/threadproc/unix/thread.c:142
	thread = (apr_thread_t *) 0x9a991d0
#7  0x003dc44b in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#8  0x002bd80e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 5 (Thread -1240208496 (LWP 577)):
#0  0x00117186 in apr_brigade_cleanup (data=0x0)
    at /home/user1/httpd-trunk/srclib/apr-util/buckets/apr_brigade.c:42
	b = (apr_bucket_brigade *) 0x0
	e = (apr_bucket *) 0x0
#1  0x08079921 in ap_core_output_filter (f=0x9b2c568, new_bb=0x0)
    at /home/user1/httpd-trunk/server/core_filters.c:357
	c = (conn_rec *) 0x9b2c0c0
	net = (core_net_rec *) 0x9b2c540
	ctx = (core_output_filter_ctx_t *) 0x9b2c5c8
	bb = (apr_bucket_brigade *) 0x808366d
	bucket = (apr_bucket *) 0x0
	next = (apr_bucket *) 0x9b2c068
	bytes_in_brigade = 3054756600
	non_file_bytes_in_brigade = 134755647
#2  0x0809123c in process_socket (p=0x9b2be90, sock=0x9b2bec8, cs=0x9b2c068, 
my_child_num=0, 
    my_thread_num=2) at /home/user1/httpd-
trunk/server/mpm/experimental/event/event.c:644
	output_filter = (ap_filter_t *) 0x9b2c568
	rv = 0
	c = (conn_rec *) 0x9b2c0c0
	pt = (listener_poll_type *) 0x9b2c0a0
	conn_id = 2
	rc = -2
	sbh = (ap_sb_handle_t *) 0x9b2c060
#3  0x080921e8 in worker_thread (thd=0x9a991b0, dummy=0x9ac7158)
    at /home/user1/httpd-trunk/server/mpm/experimental/event/event.c:1194
	ti = (proc_info *) 0x9ac7158
	process_slot = 0
	thread_slot = 2
	csd = (apr_socket_t *) 0x9b2bec8
	cs = (conn_state_t *) 0x0
	ptrans = (apr_pool_t *) 0x9b2be90
	rv = 0
	is_idle = 0
#4  0x00179754 in dummy_worker (opaque=0x9a991b0)
    at /home/user1/httpd-trunk/srclib/apr/threadproc/unix/thread.c:142
	thread = (apr_thread_t *) 0x9a991b0
#5  0x003dc44b in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#6  0x002bd80e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 4 (Thread -1229718640 (LWP 576)):
#0  0x00110402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x003e2a0e in __lll_mutex_lock_wait () from /lib/libpthread.so.0
No symbol table info available.
#2  0x003de883 in _L_mutex_lock_79 () from /lib/libpthread.so.0
No symbol table info available.
#3  0x003de3ad in pthread_mutex_lock () from /lib/libpthread.so.0
No symbol table info available.
#4  0x0016b2fc in apr_thread_mutex_lock (mutex=0x9aa2fb8)
    at /home/user1/httpd-trunk/srclib/apr/locks/unix/thread_mutex.c:92
	rv = 0
#5  0x080912c0 in process_socket (p=0x9b0dcc8, sock=0x9b0dd00, cs=0x9b0dea0, 
my_child_num=0, 
    my_thread_num=1) at /home/user1/httpd-
trunk/server/mpm/experimental/event/event.c:656
	output_filter = (ap_filter_t *) 0x9b0e3a0
	rv = 0
	c = (conn_rec *) 0x9b0def8
	pt = (listener_poll_type *) 0x9b0ded8
	conn_id = 1
	rc = 2
	sbh = (ap_sb_handle_t *) 0x9b0e568
#6  0x080921e8 in worker_thread (thd=0x9a99190, dummy=0x9ac7168)
    at /home/user1/httpd-trunk/server/mpm/experimental/event/event.c:1194
	ti = (proc_info *) 0x9ac7168
	process_slot = 0
	thread_slot = 1
	csd = (apr_socket_t *) 0x9b0dd00
	cs = (conn_state_t *) 0x9b0dea0
	ptrans = (apr_pool_t *) 0x9b0dcc8
	rv = 0
	is_idle = 0
#7  0x00179754 in dummy_worker (opaque=0x9a99190)
    at /home/user1/httpd-trunk/srclib/apr/threadproc/unix/thread.c:142
	thread = (apr_thread_t *) 0x9a99190
#8  0x003dc44b in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#9  0x002bd80e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 3 (Thread -1219228784 (LWP 575)):
#0  0x00110402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x003e2a0e in __lll_mutex_lock_wait () from /lib/libpthread.so.0
No symbol table info available.
#2  0x003de883 in _L_mutex_lock_79 () from /lib/libpthread.so.0
No symbol table info available.
#3  0x003de3ad in pthread_mutex_lock () from /lib/libpthread.so.0
No symbol table info available.
#4  0x0016b2fc in apr_thread_mutex_lock (mutex=0x9aa2fb8)
    at /home/user1/httpd-trunk/srclib/apr/locks/unix/thread_mutex.c:92
	rv = 0
#5  0x080912c0 in process_socket (p=0x9ac78a0, sock=0x9ac78d8, cs=0x9ac7a78, 
my_child_num=0, 
    my_thread_num=0) at /home/user1/httpd-
trunk/server/mpm/experimental/event/event.c:656
	output_filter = (ap_filter_t *) 0x9ac7f78
	rv = 0
	c = (conn_rec *) 0x9ac7ad0
	pt = (listener_poll_type *) 0x9ac7ab0
	conn_id = 0
	rc = 2
	sbh = (ap_sb_handle_t *) 0x9ac8330
#6  0x080921e8 in worker_thread (thd=0x9a99170, dummy=0x9ac7158)
    at /home/user1/httpd-trunk/server/mpm/experimental/event/event.c:1194
	ti = (proc_info *) 0x9ac7158
	process_slot = 0
	thread_slot = 0
	csd = (apr_socket_t *) 0x9ac78d8
	cs = (conn_state_t *) 0x9ac7a78
	ptrans = (apr_pool_t *) 0x9ac78a0
	rv = 0
	is_idle = 0
#7  0x00179754 in dummy_worker (opaque=0x9a99170)
    at /home/user1/httpd-trunk/srclib/apr/threadproc/unix/thread.c:142
	thread = (apr_thread_t *) 0x9a99170
#8  0x003dc44b in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#9  0x002bd80e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 1 (Thread -1208502592 (LWP 561)):
#0  0x00110402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x003e3f3e in do_sigwait () from /lib/libpthread.so.0
No symbol table info available.
#2  0x003e3fdf in sigwait () from /lib/libpthread.so.0
No symbol table info available.
#3  0x0017b242 in apr_signal_thread (signal_handler=0x8092279 <check_signal>)
    at /home/user1/httpd-trunk/srclib/apr/threadproc/unix/signals.c:383
	signal_received = 4095
	sig_mask = {__val = {1073340935, 4294967294, 4294967295 <repeats 30 
times>}}
	sig_func = (int (*)(int)) 0x8092279 <check_signal>
#4  0x08092be4 in child_main (child_num_arg=0)
    at /home/user1/httpd-trunk/server/mpm/experimental/event/event.c:1520
	threads = (apr_thread_t **) 0x9ac7148
	rv = 0
	ts = (thread_starter *) 0x9a98f90
	thread_attr = (apr_threadattr_t *) 0x9a98fa0
	start_thread_id = (apr_thread_t *) 0x9a98fd8
#5  0x08092d42 in make_child (s=0x9a36f78, slot=0)
    at /home/user1/httpd-trunk/server/mpm/experimental/event/event.c:1602
	pid = 0
#6  0x08092e4b in startup_children (number_to_start=1)
    at /home/user1/httpd-trunk/server/mpm/experimental/event/event.c:1658
	i = 0
#7  0x08093570 in ap_mpm_run (_pconf=0x9a350a8, plog=0x9a65168, s=0x9a36f78)
    at /home/user1/httpd-trunk/server/mpm/experimental/event/event.c:1978
	remaining_children_to_start = 1
#8  0x08064aeb in main (argc=2, argv=0xbff4d244) at /home/user1/httpd-
trunk/server/main.c:750
	c = 88 'X'
	configtestonly = 0
	confname = 0x80a0e3d "conf/httpd.conf"
	def_server_root = 0x80a0e4d "/usr/local/apache2"
	temp_error_log = 0x0
	error = 0x0
	process = (process_rec *) 0x9a33128
	server_conf = (server_rec *) 0x9a36f78
	pglobal = (apr_pool_t *) 0x9a330a0
	pconf = (apr_pool_t *) 0x9a350a8
	plog = (apr_pool_t *) 0x9a65168
	ptemp = (apr_pool_t *) 0x9a69178
	pcommands = (apr_pool_t *) 0x9a370b0
	opt = (apr_getopt_t *) 0x9a37148
	rv = 0
	mod = (module **) 0x80ae0b0
	optarg = 0x0
	signal_server = (apr_OFN_ap_signal_server_t *) 0
0x00117186	42	    while (!APR_BRIGADE_EMPTY(b)) {
(gdb) c
Continuing.

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb) quit


-- 
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 42031] - EventMPM child process freeze

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=42031>.
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=42031





------- Additional Comments From serai@lans-tv.com  2007-08-21 19:09 -------
sorry, not resolved

On (A), repeat 
(4) execute many downloading simultaneously.
(5) terminate downloading
then child freezes.

Reproducing the deadlock issue on (A) is harder than on (B),
so r567852 is effective but not complete, IMHO.

-- 
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 42031] - EventMPM child process freeze

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=42031>.
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=42031





------- Additional Comments From chip@force-elite.com  2007-08-21 10:28 -------
Please update to trunk again, I believe I have fixed the last crash with r568202:
https://svn.apache.org/viewvc?view=rev&revision=568202

-- 
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 42031] - EventMPM child process freeze

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=42031>.
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=42031





------- Additional Comments From serai@lans-tv.com  2007-08-21 08:23 -------
> Here is a patch that might fix this issue on 2.2.x.  I haven't been able to
> locally reproduce it --  can you please try this patch out and let me know if
> it fixes the issue?

I wasn't able to reproduce the bug on 2.2.x. I should've mentioned it.

-- 
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 42031] - EventMPM child process freeze

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=42031>.
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=42031


chip@force-elite.com changed:

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




-- 
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 42031] - EventMPM child process freeze

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=42031>.
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=42031


chip@force-elite.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From chip@force-elite.com  2007-09-10 22:30 -------
I've committed a slightly modified version of your patch in r574462.

-- 
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 42031] - EventMPM child process freeze

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=42031>.
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=42031





------- Additional Comments From serai@lans-tv.com  2007-09-04 09:44 -------
Created an attachment (id=20769)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20769&action=view)
for trunk

How about this patch?

now:
apr_thread_mutex_lock(timeout_mutex)
get_worker(&have_idle_worker)
APR_RING_REMOVE(cs, timeout_list)
apr_thread_mutex_unlock(timeout_mutex)
push2worker(&cs->pfd, event_pollset)

this patch:
apr_thread_mutex_lock(timeout_mutex)
APR_RING_REMOVE(cs, timeout_list)
apr_thread_mutex_unlock(timeout_mutex)
get_worker(&have_idle_worker)
push2worker(&cs->pfd, event_pollset)

-- 
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 42031] - EventMPM child process freeze

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=42031>.
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=42031





------- Additional Comments From chip@force-elite.com  2007-08-20 15:13 -------
I've committed a potential fix to trunk with r567852:
https://svn.apache.org/viewvc?view=rev&revision=567852

The approach is different form the patch attached here -- it avoids rewriting
the loops.

-- 
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 42031] - EventMPM child process freeze

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=42031>.
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=42031





------- Additional Comments From rpluem@apache.org  2007-04-03 13:21 -------
I have not have the time to analyse this in more detail, but from first glance I
tend to say that the lock aquired in line 1058 of event.c is being held for too
long, such that we can run into a deadlock. In the backtrace below thread 2 is
holding this lock and preventing all the worker threads from doing their jobs
(they need to get hold of this lock). OTH thread 2 waits for a free worker via a
conditional wait. BOOOM.

-- 
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 42031] - EventMPM child process freeze

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=42031>.
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=42031





------- Additional Comments From serai@lans-tv.com  2007-08-22 05:17 -------
I tried 2.2 and reproduced the deadlock, so I tried that patch against 2.2.

Aother error occurs:

[Wed Aug 22 19:51:22 2007] [error] event_loop: unexpected state 2
[Wed Aug 22 19:51:22 2007] [crit] [Wed Aug 22 19:51:22 2007] 
file /home/user1/httpd-2.2.x/server/mpm/experimental/event/event.c, line 925, 
assertion "0" failed
[Wed Aug 22 19:51:23 2007] [notice] child pid 17224 exit signal Aborted (6)

This error occurs when I access a HTML page from browser.

-- 
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 42031] - EventMPM child process freeze

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=42031>.
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=42031





------- Additional Comments From serai@lans-tv.com  2007-08-21 18:08 -------
I tried two source trees:
(A)rev 568202
(B)rev 568202 + revert r567852 ( svn merge -r 567852:567851 ./ )

(A) works fine, there seems to be no issues.
And I can reproduce the dead lock bug on (B).
RESOLVED FIXED?

thanks



-- 
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 42031] - EventMPM child process freeze

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=42031>.
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=42031





------- Additional Comments From serai@lans-tv.com  2007-08-22 01:41 -------
I took a bachtrace of a frozen child process.
The bt was the same as  bt I have posted in April.

"Reproducing the deadlock issue on (A) is harder than on (B)" was how I felt, 
but now seems wrong.

-- 
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 42031] - EventMPM child process freeze

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=42031>.
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=42031





------- Additional Comments From chip@force-elite.com  2007-08-21 10:18 -------
Your latest backtrace appears to be a separate bug. The crashing thread is
crashing in sendfile_nonblocking, which is also new code in trunk.

-- 
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 42031] - EventMPM child process freeze

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=42031>.
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=42031


chip@force-elite.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chip@force-elite.com




-- 
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 42031] - EventMPM child process freeze

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=42031>.
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=42031





------- Additional Comments From chip@force-elite.com  2007-08-20 14:45 -------
Created an attachment (id=20684)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20684&action=view)
2.2.x deadlock fix

Here is a patch that might fix this issue on 2.2.x.  I haven't been able to
locally reproduce it --  can you please try this patch out and let me know if
it fixes the issue?

This reorders the locking logic inside the timeout ring iteration, so that we
only lock when doing ops on the ring, but once we are ready to push to a child,
we are lock free.

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