gdb apache2 server_root/tmp/core
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/sbin/apache2...done.
[New Thread 21846]
[New Thread 21855]
[New Thread 21858]
[New Thread 21894]
[New Thread 21842]
[New Thread 21872]
[New Thread 21853]
[New Thread 21917]
[New Thread 21848]
[New Thread 21878]
[New Thread 21861]
[New Thread 21891]
[New Thread 21867]
[New Thread 21850]
[New Thread 21864]
[New Thread 21882]
[New Thread 21921]
[New Thread 21910]
[New Thread 21869]
[New Thread 21913]
[New Thread 21875]
[New Thread 21885]
[New Thread 21905]
[New Thread 21888]
[New Thread 21896]
[New Thread 21903]
[New Thread 21900]
warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/libpcre.so.3...Reading symbols from /usr/lib/debug/lib/libpcre.so.3.12.1...done.
done.
Loaded symbols for /lib/libpcre.so.3
Reading symbols from /usr/lib/libaprutil-1.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libaprutil-1.so.0
Reading symbols from /usr/lib/libapr-1.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libapr-1.so.0
Reading symbols from /lib/libpthread.so.0...Reading symbols from /usr/lib/debug/lib/libpthread-2.11.1.so...done.
done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libc.so.6...Reading symbols from /usr/lib/debug/lib/libc-2.11.1.so...done.
done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libuuid.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libuuid.so.1
Reading symbols from /lib/librt.so.1...Reading symbols from /usr/lib/debug/lib/librt-2.11.1.so...done.
done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libcrypt.so.1...Reading symbols from /usr/lib/debug/lib/libcrypt-2.11.1.so...done.
done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libdl.so.2...Reading symbols from /usr/lib/debug/lib/libdl-2.11.1.so...done.
done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libexpat.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libexpat.so.1
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.11.1.so...done.
done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib/libnss_files.so.2...Reading symbols from /usr/lib/debug/lib/libnss_files-2.11.1.so...done.
done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /usr/lib/apache2/modules/mod_proxy.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/apache2/modules/mod_proxy.so
Reading symbols from /usr/lib/apache2/modules/mod_proxy_http.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/apache2/modules/mod_proxy_http.so
Reading symbols from /usr/lib/apache2/modules/mod_unique_id.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/apache2/modules/mod_unique_id.so
Reading symbols from /usr/lib/libxml2.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libxml2.so
Reading symbols from /lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /lib/libm.so.6...Reading symbols from /usr/lib/debug/lib/libm-2.11.1.so...done.
done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /usr/local/lib/libhtp.so...done.
Loaded symbols for /usr/local/lib/libhtp.so
Reading symbols from /usr/local/ironbee/lib/mod_ironbee.so...done.
Loaded symbols for /usr/local/ironbee/lib/mod_ironbee.so
Reading symbols from /usr/lib/libdb-4.8.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libdb-4.8.so
Reading symbols from /usr/local/ironbee/lib/libironbee.so.0...done.
Loaded symbols for /usr/local/ironbee/lib/libironbee.so.0
Reading symbols from /usr/local/ironbee/lib/libibutil.so.0...done.
Loaded symbols for /usr/local/ironbee/lib/libibutil.so.0
Reading symbols from /usr/local/ironbee/lib/ibmod_pcre.so...done.
Loaded symbols for /usr/local/ironbee/lib/ibmod_pcre.so
Reading symbols from /usr/local/ironbee/lib/ibmod_htp.so...done.
Loaded symbols for /usr/local/ironbee/lib/ibmod_htp.so
Reading symbols from /usr/local/ironbee/lib/ibmod_poc_sig.so...done.
Loaded symbols for /usr/local/ironbee/lib/ibmod_poc_sig.so
Reading symbols from /usr/local/ironbee/lib/ibmod_lua.so...done.
Loaded symbols for /usr/local/ironbee/lib/ibmod_lua.so
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Core was generated by `apache2 -d /home/coz/workspace2/waf-qa/server_root -f /home/coz/workspace2/waf-'.
Program terminated with signal 6, Aborted.
0 0x00007f8172499a75 in *__GI_raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
in ../nptl/sysdeps/unix/sysv/linux/raise.c
(gdb) bt full
0 0x00007f8172499a75 in *__GI_raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
5 0x00007f81724ce4cb in __fopen_internal (filename=0x7f817472b280 "/home/coz/workspace2/waf-qa/server_root/logs/audit/20110614/2152/4df7d814-1aa8-4588-8fff-555298765432.log", mode=0x5556 <Address 0x5556 out of bounds>, is32=6)
at ../sysdeps/wordsize-64/../../libio/iofopen.c:76
No locals.
6 0x00007f817025162e in core_audit_open (lpi=, log=0x7f8174723440) at core.c:345
12 0x00007f817024933a in ib_state_notify_response_finished (ib=0x7f81746b0040, tx=0x7f8174721e70) at engine.c:1433
rc = IB_OK
13 0x00007f816fa28bb7 in modhtp_htp_response (connp=) at htp.c:670
tx = 0x7f8174721280
ib = 0x7f81746b0040
14 0x00007f81709d5853 in hook_run_all (hook=0x7f817471d0d0, data=0x7f81747137a0) at hooks.c:144
No locals.
15 0x00007f81709de24c in htp_connp_RES_IDLE (connp=0x7f81747137a0) at htp_response.c:725
rc = <value optimized out>
16 0x00007f81709ddd19 in htp_connp_res_data (connp=0x7f81747137a0, timestamp=0x5556, data=0x6 <Address 0x6 out of bounds>, len=18446744073709551615) at htp_response.c:872
rc = 0
17 0x00007f816fa2813b in modhtp_iface_data_out (pi=, qcdata=0x7f816eba2b90) at htp.c:933
sending the following HTTP/1.0 TRACE request produces the expected result
./ironbee_test.py --local-apache --one-shot="TRACE / HTTP/1.0\r\nHost: foo\r\n\r\n"
However sending a HTTP/1.1 TRACE request results in an abort.
./ironbee_test.py --local-apache --one-shot="TRACE / HTTP/1.1\r\nHost: foo\r\n\r\n" results in:
entry from error.log
apache2: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char ) &((av)->bins[((1) - 1) * 2])) - builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 \ (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed. [Tue Jun 14 16:52:20 2011] [debug] mod_ironbee.c(270): IronBee: Child exit pid=21844 [Tue Jun 14 16:52:20 2011] [debug] mod_ironbee.c(270): IronBee: Child exit pid=21843 [Tue Jun 14 16:52:20 2011] [debug] mod_ironbee.c(270): IronBee: Child exit pid=21926 [Tue Jun 14 16:52:20 2011] [info] removed PID file /home/coz/workspace2/waf-qa/server_root/lo
bt
gdb apache2 server_root/tmp/core GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/... Reading symbols from /usr/sbin/apache2...done. [New Thread 21846] [New Thread 21855] [New Thread 21858] [New Thread 21894] [New Thread 21842] [New Thread 21872] [New Thread 21853] [New Thread 21917] [New Thread 21848] [New Thread 21878] [New Thread 21861] [New Thread 21891] [New Thread 21867] [New Thread 21850] [New Thread 21864] [New Thread 21882] [New Thread 21921] [New Thread 21910] [New Thread 21869] [New Thread 21913] [New Thread 21875] [New Thread 21885] [New Thread 21905] [New Thread 21888] [New Thread 21896] [New Thread 21903] [New Thread 21900]
warning: Can't read pathname for load map: Input/output error. Reading symbols from /lib/libpcre.so.3...Reading symbols from /usr/lib/debug/lib/libpcre.so.3.12.1...done. done. Loaded symbols for /lib/libpcre.so.3 Reading symbols from /usr/lib/libaprutil-1.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libaprutil-1.so.0 Reading symbols from /usr/lib/libapr-1.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libapr-1.so.0 Reading symbols from /lib/libpthread.so.0...Reading symbols from /usr/lib/debug/lib/libpthread-2.11.1.so...done. done. Loaded symbols for /lib/libpthread.so.0 Reading symbols from /lib/libc.so.6...Reading symbols from /usr/lib/debug/lib/libc-2.11.1.so...done. done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/libuuid.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/libuuid.so.1 Reading symbols from /lib/librt.so.1...Reading symbols from /usr/lib/debug/lib/librt-2.11.1.so...done. done. Loaded symbols for /lib/librt.so.1 Reading symbols from /lib/libcrypt.so.1...Reading symbols from /usr/lib/debug/lib/libcrypt-2.11.1.so...done. done. Loaded symbols for /lib/libcrypt.so.1 Reading symbols from /lib/libdl.so.2...Reading symbols from /usr/lib/debug/lib/libdl-2.11.1.so...done. done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/libexpat.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/libexpat.so.1 Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.11.1.so...done. done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 Reading symbols from /lib/libnss_files.so.2...Reading symbols from /usr/lib/debug/lib/libnss_files-2.11.1.so...done. done. Loaded symbols for /lib/libnss_files.so.2 Reading symbols from /usr/lib/apache2/modules/mod_proxy.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/apache2/modules/mod_proxy.so Reading symbols from /usr/lib/apache2/modules/mod_proxy_http.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/apache2/modules/mod_proxy_http.so Reading symbols from /usr/lib/apache2/modules/mod_unique_id.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/apache2/modules/mod_unique_id.so Reading symbols from /usr/lib/libxml2.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libxml2.so Reading symbols from /lib/libz.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/libz.so.1 Reading symbols from /lib/libm.so.6...Reading symbols from /usr/lib/debug/lib/libm-2.11.1.so...done. done. Loaded symbols for /lib/libm.so.6 Reading symbols from /usr/local/lib/libhtp.so...done. Loaded symbols for /usr/local/lib/libhtp.so Reading symbols from /usr/local/ironbee/lib/mod_ironbee.so...done. Loaded symbols for /usr/local/ironbee/lib/mod_ironbee.so Reading symbols from /usr/lib/libdb-4.8.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libdb-4.8.so Reading symbols from /usr/local/ironbee/lib/libironbee.so.0...done. Loaded symbols for /usr/local/ironbee/lib/libironbee.so.0 Reading symbols from /usr/local/ironbee/lib/libibutil.so.0...done. Loaded symbols for /usr/local/ironbee/lib/libibutil.so.0 Reading symbols from /usr/local/ironbee/lib/ibmod_pcre.so...done. Loaded symbols for /usr/local/ironbee/lib/ibmod_pcre.so Reading symbols from /usr/local/ironbee/lib/ibmod_htp.so...done. Loaded symbols for /usr/local/ironbee/lib/ibmod_htp.so Reading symbols from /usr/local/ironbee/lib/ibmod_poc_sig.so...done. Loaded symbols for /usr/local/ironbee/lib/ibmod_poc_sig.so Reading symbols from /usr/local/ironbee/lib/ibmod_lua.so...done. Loaded symbols for /usr/local/ironbee/lib/ibmod_lua.so Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/libgcc_s.so.1 Core was generated by `apache2 -d /home/coz/workspace2/waf-qa/server_root -f /home/coz/workspace2/waf-'. Program terminated with signal 6, Aborted.
0 0x00007f8172499a75 in *__GI_raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. in ../nptl/sysdeps/unix/sysv/linux/raise.c (gdb) bt full
0 0x00007f8172499a75 in *__GI_raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
1 0x00007f817249d5c0 in *__GI_abort () at abort.c:92
2 0x00007f81724e1214 in __malloc_assert (av=0x7f81727e4e40, bytes=568) at malloc.c:352
No locals.
3 _int_malloc (av=0x7f81727e4e40, bytes=568) at malloc.c:4480
4 0x00007f81724e258e in *__GI___libc_malloc (bytes=568) at malloc.c:3660
5 0x00007f81724ce4cb in __fopen_internal (filename=0x7f817472b280 "/home/coz/workspace2/waf-qa/server_root/logs/audit/20110614/2152/4df7d814-1aa8-4588-8fff-555298765432.log", mode=0x5556 <Address 0x5556 out of bounds>, is32=6)
No locals.
6 0x00007f817025162e in core_audit_open (lpi=, log=0x7f8174723440) at core.c:345
7 0x00007f8170251730 in audit_api_write_log (lpi=0x7f81746c3060) at core.c:903
8 0x00007f817024c5c3 in ib_clog_auditlog_write (ctx=0x7f81746bc0a0) at logger.c:520
9 0x00007f8170253c25 in logevent_hook_postprocess (ib=0x7f81746b0040, tx=0x7f8174721e70, cbdata=) at core.c:2013
---Type to continue, or q to quit---
corecfg = 0x7f81746bc3e8
audit = 0x7f81746c3060
events = 0x7f816f5c5de8
tv = {tv_sec = 1308088340, tv_usec = 11237}
boundary = "6b8b4567-4df7d814-1aa8-4588-8fff-555298765432"
rc =
10 0x00007f81702491ae in ib_state_notify (ib=0x7f81746b0040, event=, param=0x7f8174721e70) at engine.c:713
11 0x00007f817024921a in ib_state_notify_tx (ib=0x5552, event=21846, tx=0x6) at engine.c:876
12 0x00007f817024933a in ib_state_notify_response_finished (ib=0x7f81746b0040, tx=0x7f8174721e70) at engine.c:1433
13 0x00007f816fa28bb7 in modhtp_htp_response (connp=) at htp.c:670
14 0x00007f81709d5853 in hook_run_all (hook=0x7f817471d0d0, data=0x7f81747137a0) at hooks.c:144
No locals.
15 0x00007f81709de24c in htp_connp_RES_IDLE (connp=0x7f81747137a0) at htp_response.c:725
16 0x00007f81709ddd19 in htp_connp_res_data (connp=0x7f81747137a0, timestamp=0x5556, data=0x6 <Address 0x6 out of bounds>, len=18446744073709551615) at htp_response.c:872
17 0x00007f816fa2813b in modhtp_iface_data_out (pi=, qcdata=0x7f816eba2b90) at htp.c:933
18 0x00007f81707cb807 in process_bucket (f=0x7f817470daf0, b=0x7f8174711b68) at mod_ironbee.c:225
19 0x00007f81707cb8ab in ironbee_output_filter (f=0x7f817470daf0, bb=0x7f817471ec20) at mod_ironbee.c:709
20 0x00007f8173306e14 in ap_http_chunk_filter (f=, b=0x7f817471ec20) at /build/buildd/apache2-2.2.14/modules/http/chunk_filter.c:189
21 0x00007f81732e7ae0 in ap_content_length_filter (f=0x7f817471e768, b=0x7f817471ec20) at /build/buildd/apache2-2.2.14/server/protocol.c:1335
22 0x00007f8173304560 in ap_process_request (r=0x7f817471d308) at /build/buildd/apache2-2.2.14/modules/http/http_request.c:292
23 0x00007f8173301498 in ap_process_http_connection (c=0x7f817470d370) at /build/buildd/apache2-2.2.14/modules/http/http_core.c:190
---Type to continue, or q to quit---
r = 0x7f817471d308
csd = 0x0
24 0x00007f81732faf38 in ap_run_process_connection (c=0x7f817470d370) at /build/buildd/apache2-2.2.14/server/connection.c:43
25 0x00007f8173309e82 in process_socket (thd=, dummy=) at /build/buildd/apache2-2.2.14/server/mpm/worker/worker.c:544
26 worker_thread (thd=, dummy=) at /build/buildd/apache2-2.2.14/server/mpm/worker/worker.c:894
27 0x00007f8172a2feb3 in ?? () from /usr/lib/libapr-1.so.0
No symbol table info available.
28 0x00007f81727ef9ca in start_thread (arg=) at pthread_create.c:300
29 0x00007f817254c70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
No locals.
30 0x0000000000000000 in ?? ()
No symbol table info available.