https://bz.apache.org/bugzilla/show_bug.cgi?id=60439
--- Comment #17 from Andreas Seltenreich <[email protected]> --- Hi, I did take a closer look at 20 core dumps collected in the meantime with the following observations. The segfault always occurs with one of three backtraces[1][2][3]. Another thing I noticed is that there is always one thread busy in a close() syscall at the time of the crash with a consistent backtrace[4]. Maybe someone that is more familar with the code can tell whether this is suspicious or something to be expected? Any other hints on further debugging appreciated. regards, Andreas Footnotes: [1] --8<---------------cut here---------------start------------->8--- #0 0x0000000000000000 in ?? () #1 0x000000000044a576 in remove_empty_buckets (bb=0x7f81a40ea5f0) at /opt/unpack/httpd-2.4.25/server/core_filters.c:720 apr_bucket_delete(bucket); #2 0x000000000044a852 in send_brigade_nonblocking (s=0x0, bb=0x7f81a40ea5f0, bytes_written=0x7f81480cb620, c=0x7f814c0cc9e8) at /opt/unpack/httpd-2.4.25/server/core_filters.c:625 #3 0x000000000044b5c1 in send_brigade_blocking (c=<optimized out>, bytes_written=<optimized out>, bb=<optimized out>, s=<optimized out>) at /opt/unpack/httpd-2.4.25/server/core_filters.c:733 #4 ap_core_output_filter (f=0x0, new_bb=0x7f81a40ea5f0) at /opt/unpack/httpd-2.4.25/server/core_filters.c:542 #5 0x0000000000464c31 in ap_process_request (r=0x7f8148056c40) at /opt/unpack/httpd-2.4.25/modules/http/http_request.c:477 #6 0x0000000000460df5 in ap_process_http_sync_connection (c=0x7f81a40ea058) at /opt/unpack/httpd-2.4.25/modules/http/http_core.c:210 #7 ap_process_http_connection (c=0x7f81a40ea058) at /opt/unpack/httpd-2.4.25/modules/http/http_core.c:251 #8 0x0000000000459100 in ap_run_process_connection (c=0x7f81a40ea058) at /opt/unpack/httpd-2.4.25/server/connection.c:42 #9 0x000000000046b7c1 in process_socket (bucket_alloc=<optimized out>, my_thread_num=<optimized out>, my_child_num=<optimized out>, sock=<optimized out>, p=<optimized out>, thd=<optimized out>) at /opt/unpack/httpd-2.4.25/server/mpm/worker/worker.c:631 #10 worker_thread (thd=0x0, dummy=0x7f81a40ea5f0) at /opt/unpack/httpd-2.4.25/server/mpm/worker/worker.c:992 #11 0x00007f81afe500a4 in start_thread (arg=0x7f81897ca700) at pthread_create.c:403 #12 0x00007f81af98162d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 --8<---------------cut here---------------end--------------->8--- [2] --8<---------------cut here---------------start------------->8--- #0 0x00007f81afe52274 in __GI___pthread_mutex_lock (mutex=0x0) at ../nptl/pthread_mutex_lock.c:79 #1 0x00007f81b04bea69 in apr_thread_mutex_lock (mutex=<optimized out>) at /opt/loadbalancer/../unpack/apr-1.5.2/locks/unix/thread_mutex.c:92 #2 0x00007f81b04bf538 in allocator_free (node=0x7f813c0eb050, allocator=0x1bab00e) at /opt/loadbalancer/../unpack/apr-1.5.2/memory/unix/apr_pools.c:370 #3 apr_allocator_free (allocator=0x1bab00e, node=0x7f813c0eb050) at /opt/loadbalancer/../unpack/apr-1.5.2/memory/unix/apr_pools.c:444 #4 0x00007f81b0909d57 in heap_bucket_destroy (data=0x7f81680aaf48) at /opt/loadbalancer/../unpack/apr-util-1.5.4/buckets/apr_buckets_heap.c:36 #5 0x000000000044ada1 in ap_core_input_filter (f=0x7f81a41949d8, b=0x7f813c013190, mode=AP_MODE_GETLINE, block=APR_NONBLOCK_READ, readbytes=0) at /opt/unpack/httpd-2.4.25/server/core_filters.c:132 #6 0x00007f81af292fce in logio_in_filter (f=<optimized out>, bb=0x7f813c013190, mode=<optimized out>, block=<optimized out>, readbytes=<optimized out>) at /opt/unpack/httpd-2.4.25/modules/loggers/mod_logio.c:165 #7 0x0000000000465e9c in ap_http_filter (f=0x7f81500a68b8, b=0x7f813c013190, mode=1745531016, block=(unknown: 2753121024), readbytes=8192) at /opt/unpack/httpd-2.4.25/modules/http/http_filters.c:515 #8 0x00007f81aea61044 in ap_proxy_http_process_response (p=0x1bab1800008, r=0x7f813c090e40, backend_ptr=0x7f81680ab088, server_portstr=0x7f818e7d3c60 "", conf=<optimized out>, conf=<optimized out>, worker=<optimized out>) at /opt/unpack/httpd-2.4.25/modules/proxy/mod_proxy_http.c:1673 #9 0x00007f81aea629a9 in proxy_http_handler (r=0x7f813c090e40, worker=0x1c59560, conf=0x7f81680ab088, url=0x7f813c090dc8 "...", proxyname=0x0, proxyport=31904) at /opt/unpack/httpd-2.4.25/modules/proxy/mod_proxy_http.c:1986 #10 0x00007f81af07f6c3 in proxy_run_scheme_handler (r=0x7f813c090e40, worker=0x1c59560, conf=0x1c1c190, url=0x7f813c007b00 "..."..., proxyhost=0x0, proxyport=0) at /opt/unpack/httpd-2.4.25/modules/proxy/mod_proxy.c:2880 #11 0x00007f81af080631 in proxy_handler (r=0x1bab1800008) at /opt/unpack/httpd-2.4.25/modules/proxy/mod_proxy.c:1230 #12 0x000000000044fbb0 in ap_run_handler (r=r@entry=0x7f813c090e40) at /opt/unpack/httpd-2.4.25/server/config.c:170 #13 0x00000000004500f9 in ap_invoke_handler (r=0x7f813c090e40) at /opt/unpack/httpd-2.4.25/server/config.c:434 #14 0x0000000000464a13 in ap_process_async_request (r=0x7f813c090e40) at /opt/unpack/httpd-2.4.25/modules/http/http_request.c:436 #15 0x0000000000464bb0 in ap_process_request (r=0x7f813c090e40) at /opt/unpack/httpd-2.4.25/modules/http/http_request.c:471 #16 0x0000000000460df5 in ap_process_http_sync_connection (c=0x7f816c015518) at /opt/unpack/httpd-2.4.25/modules/http/http_core.c:210 #17 ap_process_http_connection (c=0x7f816c015518) at /opt/unpack/httpd-2.4.25/modules/http/http_core.c:251 #18 0x0000000000459100 in ap_run_process_connection (c=0x7f816c015518) at /opt/unpack/httpd-2.4.25/server/connection.c:42 #19 0x000000000046b7c1 in process_socket (bucket_alloc=<optimized out>, my_thread_num=<optimized out>, my_child_num=<optimized out>, sock=<optimized out>, p=<optimized out>, thd=<optimized out>) at /opt/unpack/httpd-2.4.25/server/mpm/worker/worker.c:631 #20 worker_thread (thd=0x1bab1800008, dummy=0x7f813c0eb050) at /opt/unpack/httpd-2.4.25/server/mpm/worker/worker.c:992 #21 0x00007f81afe500a4 in start_thread (arg=0x7f818e7d4700) at pthread_create.c:403 #22 0x00007f81af98162d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 --8<---------------cut here---------------end--------------->8--- [3] --8<---------------cut here---------------start------------->8--- Program terminated with signal SIGSEGV, Segmentation fault. 664 in /opt/unpack/httpd-2.4.25/server/core_filters.c if (!APR_BUCKET_IS_METADATA(bucket)) { #0 send_brigade_nonblocking (s=0x7f81540d77e8, bb=0x7f81a4100d40, bytes_written=0x4, c=0x7f81540d7248) at /opt/unpack/httpd-2.4.25/server/core_filters.c:664 #1 0x000000000044b5c1 in send_brigade_blocking (c=<optimized out>, bytes_written=<optimized out>, bb=<optimized out>, s=<optimized out>) at /opt/unpack/httpd-2.4.25/server/core_filters.c:733 #2 ap_core_output_filter (f=0x7f81540d77e8, new_bb=0x7f81a4100d40) at /opt/unpack/httpd-2.4.25/server/core_filters.c:542 #3 0x0000000000464c31 in ap_process_request (r=0x7f81500bbf20) at /opt/unpack/httpd-2.4.25/modules/http/http_request.c:477 #4 0x0000000000460df5 in ap_process_http_sync_connection (c=0x7f81a41007a8) at /opt/unpack/httpd-2.4.25/modules/http/http_core.c:210 #5 ap_process_http_connection (c=0x7f81a41007a8) at /opt/unpack/httpd-2.4.25/modules/http/http_core.c:251 #6 0x0000000000459100 in ap_run_process_connection (c=0x7f81a41007a8) at /opt/unpack/httpd-2.4.25/server/connection.c:42 #7 0x000000000046b7c1 in process_socket (bucket_alloc=<optimized out>, my_thread_num=<optimized out>, my_child_num=<optimized out>, sock=<optimized out>, p=<optimized out>, thd=<optimized out>) at /opt/unpack/httpd-2.4.25/server/mpm/worker/worker.c:631 #8 worker_thread (thd=0x7f81540d77e8, dummy=0x7f8193fdec90) at /opt/unpack/httpd-2.4.25/server/mpm/worker/worker.c:992 #9 0x00007f81afe500a4 in start_thread (arg=0x7f8193fdf700) at pthread_create.c:403 #10 0x00007f81af98162d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111 --8<---------------cut here---------------end--------------->8--- [4] --8<---------------cut here---------------start------------->8--- #0 0x00007f81afe56add in close () at ../sysdeps/unix/syscall-template.S:81 #1 0x000000000045c324 in ap_mpm_podx_check (pod=<optimized out>) at /opt/unpack/httpd-2.4.25/server/mpm_unix.c:546 #2 0x000000000042bb8d in child_main (child_num_arg=1, child_bucket=29984256) at /opt/unpack/httpd-2.4.25/server/mpm/worker/worker.c:1364 #3 0x000000000046c852 in make_child (s=0x1bd85e8, slot=1, bucket=0) at /opt/unpack/httpd-2.4.25/server/mpm/worker/worker.c:1456 #4 0x000000000046d185 in perform_idle_server_maintenance (num_buckets=<optimized out>, child_bucket=<optimized out>) at /opt/unpack/httpd-2.4.25/server/mpm/worker/worker.c:1672 #5 server_main_loop (num_buckets=<optimized out>, remaining_children_to_start=<optimized out>) at /opt/unpack/httpd-2.4.25/server/mpm/worker/worker.c:1805 #6 worker_run (_pconf=0x4, plog=0x1, s=0x0) at /opt/unpack/httpd-2.4.25/server/mpm/worker/worker.c:1888 #7 0x00000000004336ae in ap_run_mpm (pconf=0x1bb1138, plog=0x1bde378, s=0x1bd85e8) at /opt/unpack/httpd-2.4.25/server/mpm_common.c:94 #8 0x000000000042c5f4 in main (argc=3, argv=0x7ffed664e9f8) at /opt/unpack/httpd-2.4.25/server/main.c:783 --8<---------------cut here---------------end--------------->8--- -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
