httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Re: Core dump with 1.2b9-dev, gdb trace
Date Sat, 12 Apr 1997 19:23:45 GMT
Brian Behlendorf wrote:
> 
> 
> This with a version current as of April 8th, 1am.  Looks like the call to
> get_remote_host returned something Apache didn't like - I am using bind 8.1 and
> its resolver library.  
> 
> Program terminated with signal 6, Abort trap.
> #0  0x60c89 in kill ()
> (gdb) where
> #0  0x60c89 in kill ()
> #1  0x601e7 in abort ()
> #2  0x2f90 in just_die ()
> #3  <signal handler called>
> #4  0x384b6 in __res_send (buf=0xefbf975c "69.164.137.207.in-addr.arpa",
>     buflen=1, ans=0xc <Address 0xc out of bounds>, anssiz=-272657572)
>     at res_send.c:589

This out-of-bounds address is supplied by the library routine, not by Apache.
I'd have expected a static buffer, in which case it is hard to see how Apache
stomped it. But it may be that it does something cleverer. Do you have the
source of ho_byaddr in dns_ho.c?

Note that buflen and anssiz appear to be garbage as well as ans.

> #5  0x3fb15 in ho_byaddr (this=0x7e280, addr=0xb603c, len=4, af=2)
>     at dns_ho.c:287
> #6  0x39940 in ho_byaddr (this=0x7e400, addr=0xb603c, len=4, af=2)
>     at gen_ho.c:168
> #7  0x35ebe in gethostbyaddr (addr=0xb603c "O\211$E", len=4, af=2)
>     at gethostent.c:118
> #8  0x4ebf in get_remote_host ()
> #9  0x22a5 in timeout ()
> #10 <signal handler called>
> #11 0x6153d in write ()
> #12 0xd398 in send_fd_length ()
> #13 0xd2b4 in send_fd ()
> #14 0x7614 in default_handler ()
> #15 0x7a55 in invoke_handler ()
> #16 0xa419 in process_request_internal ()
> #17 0xa44a in process_request ()
> #18 0x3b7c in child_main ()
> #19 0x3cb6 in make_child ()
> #20 0x44ee in standalone_main ()
> #21 0x47dc in main ()
> 
> It appears to be a pretty transient failure, as I have hits from 207.137.164.69
> at the right time and place, save for a single
> 
>   www.apache.org|207.137.164.69|-|-|200|1997/04/11-16:48:02|-|-|-|-|-|-
> 
> Anyways, just FYI.  I know we don't check the return of many system calls and
> that this is a larger problem.
> 
> 	Brian
> 
> --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
> brian@organic.com  www.apache.org  hyperreal.com  http://www.organic.com/JOBS
> 

-- 
Ben Laurie                Phone: +44 (181) 994 6435  Email: ben@algroup.co.uk
Freelance Consultant and  Fax:   +44 (181) 994 6472
Technical Director        URL: http://www.algroup.co.uk/Apache-SSL
A.L. Digital Ltd,         Apache Group member (http://www.apache.org)
London, England.          Apache-SSL author

Mime
View raw message