httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject core dump in mod_include
Date Tue, 21 Aug 2001 14:25:42 GMT
Here's a core dump that is easy to generate in the current CVS.
Just connect to the server and make the request "GET a HTTP/1.0".
The traceback is:

#0  strcmp (p1=0x0, p2=0x814ee34
"/usr/local/apache2a/error/include/top.html")
    at ../sysdeps/generic/strcmp.c:38
#1  0x8063838 in handle_include (ctx=0x817eed4, bb=0xbfffd7d4,
r=0x814b23c,
    f=0x814c9c4, head_ptr=0x817afb0, inserted_head=0xbfffd374)
    at mod_include.c:835
#2  0x8066267 in send_parsed_content (bb=0xbfffd7d4, r=0x814b23c,
f=0x814c9c4)
    at mod_include.c:2501
#3  0x8066847 in includes_filter (f=0x814c9c4, b=0x814d98c)
    at mod_include.c:2761
#4  0x809939f in ap_pass_brigade (next=0x814c9c4, bb=0x814d98c)
    at util_filter.c:242
#5  0x8085f91 in handle_map_file (r=0x814b23c) at mod_negotiation.c:2766
#6  0x8090692 in ap_run_handler (r=0x814b23c) at config.c:186
#7  0x8090af2 in ap_invoke_handler (r=0x814b23c) at config.c:344
#8  0x806d354 in process_request_internal (r=0x814b23c) at
http_request.c:378
#9  0x806d328 in process_request_internal (r=0x814a7f4) at
http_request.c:359
#10 0x806d42e in ap_process_request (r=0x814a7f4) at http_request.c:444
#11 0x80698f2 in ap_process_http_connection (c=0x81468a4) at
http_core.c:287
#12 0x8097f62 in ap_run_process_connection (c=0x81468a4) at
connection.c:82
#13 0x808f546 in child_main (child_num_arg=4) at prefork.c:829
#14 0x808f684 in make_child (s=0x80fa1bc, slot=4) at prefork.c:916
#15 0x808f6e7 in startup_children (number_to_start=5) at prefork.c:939
#16 0x808fa43 in ap_mpm_run (_pconf=0x80f8bec, plog=0x812ed9c,
s=0x80fa1bc)
    at prefork.c:1155
#17 0x8093f7e in main (argc=1, argv=0xbffffaf4) at main.c:427
#18 0x400b8b5c in __libc_start_main (main=0x8093ba8 <main>, argc=1,
    ubp_av=0xbffffaf4, init=0x805e624 <_init>, fini=0x80cd4fc <_fini>,
    rtld_fini=0x4000d634 <_dl_fini>, stack_end=0xbffffaec)
    at ../sysdeps/generic/libc-start.c:129

(gdb) up
(gdb) print *r
$2 = {pool = 0x814a7c4, connection = 0x81468a4, server = 0x80fa1bc,
  next = 0x0, prev = 0x814a7f4, main = 0x0,
  the_request = 0x814af84 "GET a HTTP/1.0", assbackwards = 0, proxyreq =
0,
  header_only = 0, protocol = 0x814afb4 "HTTP/1.0", proto_num = 1000,
  hostname = 0x0, request_time = 998403143714578, status_line = 0x0,
  status = 400, method = 0x814b234 "GET", method_number = 0, allowed = 1,
  allowed_xmethods = 0x0, allowed_methods = 0x814b864, sent_bodyct = 0,
  bytes_sent = 0, mtime = 998344420000000, chunked = 0, boundary = 0x0,
  range = 0x0, clength = 225, remaining = 0, read_length = 0, read_body =
2,
  read_chunked = 0, expecting_100 = 0, headers_in = 0x814a99c,
  headers_out = 0x814b5d4, err_headers_out = 0x814ad64,
  subprocess_env = 0x814b64c, notes = 0x814b824,
  content_type = 0x814c9b4 "text/html", handler = 0x8143a6c "type-map",
  content_encoding = 0x0, content_language = 0x0, content_languages = 0x0,
  vlist_validator = 0x814d8d4 "\"4021bb-50a-2c848100\"", user = 0x0,
  ap_auth_type = 0x0, no_cache = 1, no_local_copy = 1,
  unparsed_uri = 0x814b3e4 "/error/HTTP_BAD_REQUEST.html.var",
  uri = 0x814b40c "/error/HTTP_BAD_REQUEST.html.var",
  filename = 0x814b8ec
"/usr/local/apache2a/error/HTTP_BAD_REQUEST.html.var",
  path_info = 0x814b924 "", args = 0x0, finfo = {cntxt = 0x814a7c4,
    valid = 7598448, protection = 1636, filetype = APR_REG, user = 201,
    group = 501, inode = 4202939, device = 769, nlink = 1, size = 1290,
    csize = 0, atime = 998403108000000, mtime = 998344420000000,
    ctime = 998358974000000,
    fname = 0x814b8ec
"/usr/local/apache2a/error/HTTP_BAD_REQUEST.html.var",
    name = 0x0, filehand = 0x0}, parsed_uri = {scheme = 0x0, hostinfo =
0x0,
    user = 0x0, password = 0x0, hostname = 0x0, port_str = 0x0,
    path = 0x814b40c "/error/HTTP_BAD_REQUEST.html.var", query = 0x0,
    fragment = 0x0, hostent = 0x0, port = 0, is_initialized = 1,
    dns_looked_up = 0, dns_resolved = 0}, per_dir_config = 0x814bb94,
  request_config = 0x814b434, htaccess = 0x0, output_filters = 0x814c9c4,
  input_filters = 0x8146ab4, eos_sent = 1}

(gdb) info locals
tag = 0xbfffd388 "virtual"
tag_val = 0xbfffd391 "include/top.html"
tmp_buck = (apr_bucket *) 0x69
parsed_string = "include/top.html", '\000' <repeats 204 times>,
"\b·ÿ¿\200¶ÿ¿\000\000\000\000\230¶ÿ¿\204å\n\b\000\000\000\000\004\000\000\000x\000\000\000\200¶ÿ¿|´ÿ¿d~\016\b\002\000\000\000àØ\024\b\000\000\000\000\000\000\000\000\001",
'\000' <repeats 30 times>, " \001", '\000' <repeats 11 times>,
"\200¶ÿ¿\025\000\000\000Óç\024\béØ\024\b\000\000\000\000\000\000\000\000\b",
'\000' <repeats 55 times>,
"Í\224\000@\000\000\000\000\000\000\000\000\200µÿ¿", '\000' <repeats 32
times>, "Í\224\000@\000\000\000\000\000\000\000\000°µÿ¿", '\000' <repeats
36 times>, "\002", '\000' <repeats 18 times>...
rr = (request_rec *) 0x814e814
error_fmt = 0x0
founddupe = 0
p = (request_rec *) 0x814b23c
q = (request_rec *) 0x0
tag_plus = (apr_bucket_brigade *) 0x814b23c
rv = -33
e_wrt = 0
e_wrt = 0



Mime
View raw message