Received: by taz.hyperreal.com (8.6.12/8.6.5) id AAA15856; Wed, 14 Feb 1996 00:23:15 -0800 Received: from arachnet.algroup.co.uk by taz.hyperreal.com (8.6.12/8.6.5) with SMTP id AAA15835; Wed, 14 Feb 1996 00:22:48 -0800 Received: from heap.ben.algroup.co.uk by arachnet.algroup.co.uk id aa20882; 14 Feb 96 8:22 GMT Received: from gonzo.ben.algroup.co.uk by heap.ben.algroup.co.uk id aa22177; 14 Feb 96 7:57 GMT Subject: Re: vote update To: new-httpd@hyperreal.com Date: Wed, 14 Feb 1996 07:59:01 +0000 (GMT) From: Ben Laurie In-Reply-To: from "Alexei Kosut" at Feb 13, 96 11:11:16 pm X-Mailer: ELM [version 2.4 PL24 PGP2] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1970 Message-ID: <9602140759.aa09791@gonzo.ben.algroup.co.uk> Sender: owner-new-httpd@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com > > On Tue, 13 Feb 1996, David Robinson wrote: > > > The other change was to add #include > > However, I don't think that's it *grin*. BTW, I did find out something - > removing the -O2 from Configuration causes it to work (I think this is why > it had worked last time - it wasn't optimized). But that still means > something's wrong, so... > > > Hmm, this looks as though something is overwriting that stack; clearly > > 0x46464646 is not likely to be a real address, and url and proxyhost > > are clearly bad. > > Yes. > > > I suspect the line it was breaking on is > > cache = c->fp; > > > > I Suggest you try single stepping it with gdb from the start of http_handler > > until the stack gets trashed (watch the value of 'c') > > Almost. Here's part of a single-step through http_handler, keeping an eye > on the value of url: > > (gdb) step > 2581 for (i=0; i < len; i++) > (gdb) print url > $9 = 0x40022d60 "/" > (gdb) step > 2583 if (hdr[i].value[0] == '\0') continue; > (gdb) print url > $10 = 0x6800 " and an optional value to pass to CGI." What happened to line 2582? Perhaps an assembly listing would help? Cheers, Ben. > > Obviously, something bad happens in there. But for the life of me I have > no clue what. The string happens to be from mod_env.c, but even if you > remove that module, it just picks a string from somewhere else (not > surprising, actually). > > --/ Alexei Kosut /--------/ Lefler on IRC > ----------------------------/ > The viewpoints expressed above are entirely false, and in no way > represent Alexei Kosut nor any other person or entity. /-------------- > > > > -- Ben Laurie Phone: +44 (181) 994 6435 Freelance Consultant Fax: +44 (181) 994 6472 and Technical Director Email: ben@algroup.co.uk A.L. Digital Ltd, URL: http://www.algroup.co.uk London, England.