$ sudo gdb /usr/local/apache2/bin/httpd GNU gdb 4.18 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-freebsd"... (gdb) run -X Starting program: /usr/local/apache2/bin/httpd -X Program received signal SIGSEGV, Segmentation fault. 0x281af677 in strncmp () from /usr/lib/libc.so.4 (gdb) where #0 0x281af677 in strncmp () from /usr/lib/libc.so.4 #1 0x8156424 in ?? () #2 0x809df4c in ap_run_fixups (r=0x816f050) at request.c:114 #3 0x809e7e1 in ap_process_request_internal (r=0x816f050) at request.c:286 #4 0x807acbe in ap_process_request (r=0x816f050) at http_request.c:286 #5 0x8076a56 in ap_process_http_connection (c=0x816b128) at http_core.c:293 #6 0x8094078 in ap_run_process_connection (c=0x816b128) at connection.c:85 #7 0x809431c in ap_process_connection (c=0x816b128, csd=0x816b050) at connection.c:211 #8 0x808997a in child_main (child_num_arg=0) at prefork.c:696 #9 0x8089a38 in make_child (s=0x80cf298, slot=0) at prefork.c:736 #10 0x8089b2a in startup_children (number_to_start=5) at prefork.c:808 #11 0x8089e10 in ap_mpm_run (_pconf=0x80cc018, plog=0x810e018, s=0x80cf298) at prefork.c:1024 #12 0x808f2ca in main (argc=2, argv=0xbfbffadc) at main.c:660 #13 0x8062bf9 in _start () (gdb) up 2 #2 0x809df4c in ap_run_fixups (r=0x816f050) at request.c:114 114 (request_rec *r), (r), OK, DECLINED) (gdb) p r $1 = (request_rec *) 0x816f050 (gdb) p *r $2 = {pool = 0x816f018, connection = 0x816b128, server = 0x80cf298, next = 0x0, prev = 0x0, main = 0x0, the_request = 0x816fd30 "GET http://172.16.0.1:8080/mdemjuuakziw HTTP/1.1", assbackwards = 0, proxyreq = 1, header_only = 0, protocol = 0x816fe18 "HTTP/1.1", proto_num = 1001, hostname = 0x8170298 "172.16.0.1", request_time = 1057687541551586, status_line = 0x0, status = 200, method = 0x816fd80 "GET", method_number = 0, allowed = 0, allowed_xmethods = 0x0, allowed_methods = 0x816f1e8, sent_bodyct = 0, bytes_sent = 0, mtime = 1026151532000000, chunked = 0, range = 0x0, clength = 0, remaining = 0, read_length = 0, read_body = 0, read_chunked = 0, expecting_100 = 0, headers_in = 0x816f218, headers_out = 0x816f6a8, err_headers_out = 0x8175018, subprocess_env = 0x816f460, notes = 0x816f9a8, content_type = 0x0, handler = 0x80a9687 "proxy-server", content_encoding = 0x0, content_languages = 0x0, vlist_validator = 0x0, user = 0x0, ap_auth_type = 0x0, no_cache = 0, no_local_copy = 0, unparsed_uri = 0x816fdb0 "http://172.16.0.1:8080/mdemjuuakziw", uri = 0x816fdb0 "http://172.16.0.1:8080/mdemjuuakziw", filename = 0x0, canonical_filename = 0x0, path_info = 0x0, args = 0x0, finfo = {pool = 0x0, valid = 0, protection = 0, filetype = APR_NOFILE, user = 0, group = 0, inode = 0, device = 0, nlink = 0, size = 0, csize = 0, atime = 0, mtime = 0, ctime = 0, fname = 0x0, name = 0x0, filehand = 0x0}, parsed_uri = {scheme = 0x816fdd8 "http", hostinfo = 0x816fde0 "172.16.0.1:8080", user = 0x0, password = 0x0, hostname = 0x816fdf0 "172.16.0.1", port_str = 0x816fe00 "8080", path = 0x816fe08 "/mdemjuuakziw", query = 0x0, fragment = 0x0, hostent = 0x0, port = 8080, is_initialized = 1, dns_looked_up = 0, dns_resolved = 0}, used_path_info = 2, per_dir_config = 0x8112ca8, request_config = 0x816fb00, htaccess = 0x0, output_filters = 0x8175158, input_filters = 0x816fca8, proto_output_filters = 0x816fcc0, proto_input_filters = 0x816fca8, eos_sent = 0} (gdb) up 2 #4 0x807acbe in ap_process_request (r=0x816f050) at http_request.c:286 286 access_status = ap_process_request_internal(r); (gdb) up #5 0x8076a56 in ap_process_http_connection (c=0x816b128) at http_core.c:293 293 ap_process_request(r); (gdb) p c $3 = (conn_rec *) 0x816b128 (gdb) p *c $4 = {pool = 0x816b018, base_server = 0x80cf298, vhost_lookup_data = 0x0, local_addr = 0x816b088, remote_addr = 0x816b0d0, remote_ip = 0x816b458 "172.16.0.1", remote_host = 0x0, remote_logname = 0x0, aborted = 0, keepalive = AP_CONN_UNKNOWN, double_reverse = 0, keepalives = 0, local_ip = 0x816b448 "172.16.0.7", local_host = 0x0, id = 0, conn_config = 0x816b180, notes = 0x816b2f0, input_filters = 0x816b478, output_filters = 0x816b490, sbh = 0x8169118, bucket_alloc = 0x816d018}