[mpm-itk] segfaults pfn_ap_logio_get_last_bytes(r->connection)

Arkadiusz Miśkiewicz arekm at maven.pl
Wed Sep 24 11:47:51 CEST 2014


Hello.

One one machine where mpm_itk (2.4.7-02) is installed I'm getting segfaults.
Restart cures them for some time and then back again. If segfaults start then
segfault rate is like few segfaults per second.

[error] [pid 21260] [client child died with signal 11 mpm_itk
[error] [pid 21105] [client child died with signal 11 mpm_itk
[error] [pid 21213] [client child died with signal 11 mpm_itk

I'm using mod_logio to log number of bytes sent per vhost and that seems to be related,

ap_increment_counts() is doing:

    if (pfn_ap_logio_get_last_bytes != NULL) {
        bytes = pfn_ap_logio_get_last_bytes(r->connection);                                                                                                                 
    }

Now not sure if that's itk fault but not hitting this on other machines with the
same software, just without itk.

Any ideas?

Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f8dd58f4b30 in ?? ()
(gdb) bt
#0  0x00007f8dd58f4b30 in ?? ()
#1  0x00000000004357c5 in ap_increment_counts (sb=0x4b0bec0, r=r at entry=0x4b11d00) at /usr/src/debug/httpd-2.4.10/server/scoreboard.c:369
#2  0x00000000004465c0 in eor_bucket_cleanup (data=<optimized out>) at /usr/src/debug/httpd-2.4.10/server/eor_bucket.c:37
#3  0x00007f8dd962955e in run_cleanups (cref=0x4b11cf8) at memory/unix/apr_pools.c:2352
#4  apr_pool_destroy (pool=0x4b11c88) at memory/unix/apr_pools.c:804
#5  0x00000000004466c6 in remove_empty_buckets (bb=bb at entry=0x4b0c550) at /usr/src/debug/httpd-2.4.10/server/core_filters.c:722
#6  0x0000000000446a28 in send_brigade_nonblocking (s=s at entry=0x4b0bcd0, bb=bb at entry=0x4b0c550, bytes_written=bytes_written at entry=0x4b0c448, c=c at entry=0x4b0bec0)
    at /usr/src/debug/httpd-2.4.10/server/core_filters.c:711
#7  0x0000000000447681 in send_brigade_blocking (c=<optimized out>, bytes_written=0x4b0c448, bb=0x4b0c550, s=0x4b0bcd0)
    at /usr/src/debug/httpd-2.4.10/server/core_filters.c:735
#8  ap_core_output_filter (f=0x4b0c378, new_bb=0x4b0c550) at /usr/src/debug/httpd-2.4.10/server/core_filters.c:544
#9  0x0000000000460bc9 in ap_process_request (r=r at entry=0x4b11d00) at /usr/src/debug/httpd-2.4.10/modules/http/http_request.c:369
#10 0x000000000045d622 in ap_process_http_sync_connection (c=0x4b0bec0) at /usr/src/debug/httpd-2.4.10/modules/http/http_core.c:190
#11 ap_process_http_connection (c=0x4b0bec0) at /usr/src/debug/httpd-2.4.10/modules/http/http_core.c:231
#12 0x0000000000455435 in ap_run_process_connection (c=0x4b0bec0) at /usr/src/debug/httpd-2.4.10/server/connection.c:41
#13 0x00007f8dd2dd8a87 in itk_fork_process () from /etc/httpd/modules/mpm_itk.so
#14 0x0000000000455435 in ap_run_process_connection (c=0x4b0bec0) at /usr/src/debug/httpd-2.4.10/server/connection.c:41
#15 0x0000000000455818 in ap_process_connection (c=c at entry=0x4b0bec0, csd=<optimized out>) at /usr/src/debug/httpd-2.4.10/server/connection.c:203
#16 0x00007f8dd29cb7a7 in child_main (child_num_arg=child_num_arg at entry=51) at /usr/src/debug/httpd-2.4.10/server/mpm/prefork/prefork.c:704
#17 0x00007f8dd29cb9e6 in make_child (s=0x86da80, slot=51) at /usr/src/debug/httpd-2.4.10/server/mpm/prefork/prefork.c:800
#18 0x00007f8dd29cc64e in perform_idle_server_maintenance (p=<optimized out>) at /usr/src/debug/httpd-2.4.10/server/mpm/prefork/prefork.c:902
#19 prefork_run (_pconf=<optimized out>, plog=<optimized out>, s=<optimized out>) at /usr/src/debug/httpd-2.4.10/server/mpm/prefork/prefork.c:1090
#20 0x00000000004322d3 in ap_run_mpm (pconf=0x715138, plog=0x742358, s=0x86da80) at /usr/src/debug/httpd-2.4.10/server/mpm_common.c:94
#21 0x000000000042b9a6 in main (argc=4, argv=0x7fffce5470a8) at /usr/src/debug/httpd-2.4.10/server/main.c:777
(gdb) 
#0  0x00007f8dd58f4b30 in ?? ()
#1  0x00000000004357c5 in ap_increment_counts (sb=0x4b0bec0, r=r at entry=0x4b11d00) at /usr/src/debug/httpd-2.4.10/server/scoreboard.c:369
#2  0x00000000004465c0 in eor_bucket_cleanup (data=<optimized out>) at /usr/src/debug/httpd-2.4.10/server/eor_bucket.c:37
#3  0x00007f8dd962955e in run_cleanups (cref=0x4b11cf8) at memory/unix/apr_pools.c:2352
#4  apr_pool_destroy (pool=0x4b11c88) at memory/unix/apr_pools.c:804
#5  0x00000000004466c6 in remove_empty_buckets (bb=bb at entry=0x4b0c550) at /usr/src/debug/httpd-2.4.10/server/core_filters.c:722
#6  0x0000000000446a28 in send_brigade_nonblocking (s=s at entry=0x4b0bcd0, bb=bb at entry=0x4b0c550, bytes_written=bytes_written at entry=0x4b0c448, c=c at entry=0x4b0bec0)
    at /usr/src/debug/httpd-2.4.10/server/core_filters.c:711
#7  0x0000000000447681 in send_brigade_blocking (c=<optimized out>, bytes_written=0x4b0c448, bb=0x4b0c550, s=0x4b0bcd0)
    at /usr/src/debug/httpd-2.4.10/server/core_filters.c:735
#8  ap_core_output_filter (f=0x4b0c378, new_bb=0x4b0c550) at /usr/src/debug/httpd-2.4.10/server/core_filters.c:544
#9  0x0000000000460bc9 in ap_process_request (r=r at entry=0x4b11d00) at /usr/src/debug/httpd-2.4.10/modules/http/http_request.c:369
#10 0x000000000045d622 in ap_process_http_sync_connection (c=0x4b0bec0) at /usr/src/debug/httpd-2.4.10/modules/http/http_core.c:190
#11 ap_process_http_connection (c=0x4b0bec0) at /usr/src/debug/httpd-2.4.10/modules/http/http_core.c:231
#12 0x0000000000455435 in ap_run_process_connection (c=0x4b0bec0) at /usr/src/debug/httpd-2.4.10/server/connection.c:41
#13 0x00007f8dd2dd8a87 in itk_fork_process () from /etc/httpd/modules/mpm_itk.so
#14 0x0000000000455435 in ap_run_process_connection (c=0x4b0bec0) at /usr/src/debug/httpd-2.4.10/server/connection.c:41
#15 0x0000000000455818 in ap_process_connection (c=c at entry=0x4b0bec0, csd=<optimized out>) at /usr/src/debug/httpd-2.4.10/server/connection.c:203
#16 0x00007f8dd29cb7a7 in child_main (child_num_arg=child_num_arg at entry=51) at /usr/src/debug/httpd-2.4.10/server/mpm/prefork/prefork.c:704
#17 0x00007f8dd29cb9e6 in make_child (s=0x86da80, slot=51) at /usr/src/debug/httpd-2.4.10/server/mpm/prefork/prefork.c:800
#18 0x00007f8dd29cc64e in perform_idle_server_maintenance (p=<optimized out>) at /usr/src/debug/httpd-2.4.10/server/mpm/prefork/prefork.c:902
#19 prefork_run (_pconf=<optimized out>, plog=<optimized out>, s=<optimized out>) at /usr/src/debug/httpd-2.4.10/server/mpm/prefork/prefork.c:1090
#20 0x00000000004322d3 in ap_run_mpm (pconf=0x715138, plog=0x742358, s=0x86da80) at /usr/src/debug/httpd-2.4.10/server/mpm_common.c:94
#21 0x000000000042b9a6 in main (argc=4, argv=0x7fffce5470a8) at /usr/src/debug/httpd-2.4.10/server/main.c:777
(gdb) frame 1
#1  0x00000000004357c5 in ap_increment_counts (sb=0x4b0bec0, r=r at entry=0x4b11d00) at /usr/src/debug/httpd-2.4.10/server/scoreboard.c:369
369             bytes = pfn_ap_logio_get_last_bytes(r->connection);

-- 
Arkadiusz Miśkiewicz, arekm / maven.pl



More information about the mpm-itk mailing list