httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <>
Subject segfaults on CGI's with current CVS snapshot
Date Mon, 04 Aug 1997 02:42:10 GMT

I updated a Jul 31st snapshot of 1.3a2 on to one today, and
at least one CGI script stopped working (started giving a 500 Internal
Error), specifically the "manual-index.cgi" on the Apache tree.  The apache
error log had 

 [Sun Aug  3 19:15:54 1997] access to /export/pub/apache/manual-index.cgi 
 failed for, reason: Premature end of script headers

The default error log got

 [Sun Aug  3 19:15:54 1997] httpd: caught SIGSEGV, attempting to dump core in 

A backtrace on the core file showed

  (gdb) where
  #0  0x67fdd in kill ()
  #1  0x6753b in abort ()
  #2  0x3500 in just_die (sig=11) at http_main.c:1482
  #3  <signal handler called>
  #4  copy_array (p=0xdc034, arr=0xd9074) at alloc.c:526
  #5  0xb4b8 in sub_req_lookup_uri (new_file=0x9760c "/docs", r=0xd9074)
      at http_request.c:660
  #6  0x133fc in add_cgi_vars (r=0xd9074) at util_script.c:298
  #7  0x278b8 in cgi_child (child_stuff=0xefbfbb98) at mod_cgi.c:298

Looks like a bad situation in alloc.c... this was to
"" so it was apparently when 
apache was trying to convert "/docs" to PATH_TRANSLATED or something.

Does this trigger any ideas before I post it to the bug database?

I've back-revved the server on Hyperreal, but you can try it for yourself
on port 8080.


"Why not?" - TL  - -

View raw message