#0  0x00000058 in ?? ()
#1  0xb7693f8e in getsfunc_fcgid_BRIGADE (buf=0xbf8ee65c "", len=8191,
    arg=0x840e5f8) at fcgid_bridge.c:176
#2  0x0807f660 in ap_scan_script_header_err_core (r=0x8403728,
    buffer=0xbf8ee65c "", getsfunc=0xb7693f00 <getsfunc_fcgid_BRIGADE>,
    getsfunc_data=0x840e5f8)
    at /pub/tmp/sugi/apache2/apache2-2.2.3/server/util_script.c:433
#3  0xb7694e0c in bridge_request (r=0x8403728,
    argv0=0x8405098 "/home/sugi/www/sugi/tdiary/index.fcgi", wrapper_conf=0x0)
    at fcgid_bridge.c:352
#4  0xb7698405 in fcgid_handler (r=0x8403728) at mod_fcgid.c:179
#5  0x08078cfb in ap_run_handler (r=0x8403728)
    at /pub/tmp/sugi/apache2/apache2-2.2.3/server/config.c:158
#6  0x08079434 in ap_invoke_handler (r=0x8403728)
    at /pub/tmp/sugi/apache2/apache2-2.2.3/server/config.c:372

(gdb) p getsfunc_fcgid_BRIGADE::arg
$1 = (void *) 0x840e488
(gdb) p (apr_bucket_brigade *) getsfunc_fcgid_BRIGADE::arg
$2 = (struct apr_bucket_brigade *) 0x840e488
(gdb) p *(apr_bucket_brigade *) getsfunc_fcgid_BRIGADE::arg
$3 = {p = 0x84036f0, list = {next = 0x8401e40, prev = 0x8401e40},
  bucket_alloc = 0x84016e8}
(gdb) b 165
Breakpoint 3 at 0xb76c9f44: file fcgid_bridge.c, line 165.
(gdb) c
Continuing.

Breakpoint 3, getsfunc_fcgid_BRIGADE (buf=0xbf979eec "", len=8191,
    arg=0x840e488) at fcgid_bridge.c:169
169             while ((dst < dst_end) && !done && !APR_BUCKET_IS_EOS(e)) {
(gdb) p bb
No symbol "bb" in current context.
(gdb) p e
$4 = (apr_bucket *) 0x8401e40
(gdb) dump_bucket e
 bucket=FCGID_HEADER(0x08401e40) length=-1     data=0x0840e448
     contents=[**unknown**]          rc=n/a
(gdb) dump_table e
(gdb) dump_bucket e
 bucket=FCGID_HEADER(0x08401e40) length=-1     data=0x0840e448
     contents=[**unknown**]          rc=n/a
(gdb) p e
$5 = (apr_bucket *) 0x8401e40
(gdb) p *e
$6 = {link = {next = 0x840e48c, prev = 0x840e48c}, type = 0xb76d4240,
  length = 4294967295, start = -1, data = 0x840e448,
  free = 0x805f5ac <apr_bucket_free@plt>, list = 0x84016e8}
(gdb) p *e->type
$7 = {name = 0xb76d3c98 "FCGID_HEADER", num_func = 5,
  is_metadata = APR_BUCKET_DATA,
  destroy = 0x805edfc <apr_bucket_destroy_noop@plt>,
  read = 0xb76d1840 <fcgid_header_bucket_read>,
  setaside = 0x805ee0c <apr_bucket_setaside_notimpl@plt>,
  split = 0x806073c <apr_bucket_split_notimpl@plt>,
  copy = 0x806099c <apr_bucket_copy_notimpl@plt>}
(gdb) p e->type
$8 = (const apr_bucket_type_t *) 0xb76d4240


run -X -d /home/sugi/apache2 -f /home/sugi/apache2/apache2.conf
b ap_run_handler
b apr_bucket_read
