You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Randy Terbush <ra...@zyzzyva.com> on 1997/04/15 03:03:18 UTC

Re: [STATUS] Sun Apr 13 19:08:09 PDT 1997

> >   * SEGV under FreeBSD with lingering_close [and proxy?]
> >         <33...@topsail.org>
> >         Chuck says: Roy's latest timeout patches have stopped the lingering
> >         close notifications, but the core dumps continue. The dumped image
> >         is so trashed that it can't be backtraced. I believe the reason we
> >         haven't seen more reports is that FreeBSD and perhaps Linux are
> >         disabling core dumps by default as a security measure.
> > 
> Randy, are you still seeing these? I've gotten no core dumps in about a
> week of heavy testing since all of Roy's patches went in, and I fixed
> some other things in the proxy.

No I am not seeing them. However, I _am_ seeing the following:
pid 9556 (httpd), uid 50002: exited on signal 6
pid 9597 (httpd), uid 50002: exited on signal 6
pid 8616 (httpd), uid 50002: exited on signal 6
pid 9816 (httpd), uid 50002: exited on signal 6
pid 9644 (httpd), uid 50002: exited on signal 6
pid 9645 (httpd), uid 50002: exited on signal 6
pid 21720 (httpd), uid 50000: exited on signal 4
pid 16767 (httpd), uid 501: exited on signal 6
pid 7406 (httpd), uid 501: exited on signal 6
pid 22712 (httpd), uid 501: exited on signal 6
pid 8163 (httpd), uid 50054: exited on signal 6
pid 8165 (httpd), uid 50054: exited on signal 6
pid 8164 (httpd), uid 50054: exited on signal 6

Bus errors. Lots of em. I also spent some time this past weekend 
trying to get a coredump out of FreeBSD. I have verified that 
RLIMIT_CORE is of sufficient size. Despite the fact that Ken's 
patch now helps find where we might be putting the core, and the 
directory is world writeable, no core...

I'll be looking at this more through the week.




Re: [STATUS] Sun Apr 13 19:08:09 PDT 1997

Posted by Marc Slemko <ma...@worldgate.com>.
On Mon, 14 Apr 1997, Randy Terbush wrote:

> Bus errors. Lots of em. I also spent some time this past weekend 
> trying to get a coredump out of FreeBSD. I have verified that 
> RLIMIT_CORE is of sufficient size. Despite the fact that Ken's 
> patch now helps find where we might be putting the core, and the 
> directory is world writeable, no core...
> 
> I'll be looking at this more through the week.

You did read my message the other week in response to Chuck's attempts,
right?

Included below:

>> I'm trying to get the (&&^$%$#ing thing to dump core. I'm beginning to
>> wonder if that's one of the security improvements in 2.1.7. 8^(
>
>Yes.  In sys/kern/kern_sig.c there is:
>
>        if (p->p_flag & P_SUGID)
>                return (EFAULT);
>
>P_SUGID is set when a process does a setuid() and is only reset on exec. 
>(sortof; there were a few bugs with this... but that is the intent).  The
>easiest way I can think of to get a core dump is to just temporarily
>remove the above two lines; it creates a relatively minor security hole,
>but... 



Re: [STATUS] Sun Apr 13 19:08:09 PDT 1997

Posted by Marc Slemko <ma...@worldgate.com>.
On Mon, 14 Apr 1997, Chuck Murcko wrote:

> Plus, we've got 2 PRs about core dumps now. One from FreeBSD 2.2, and
> one from Linux.

If you are thinking of the recent Linux one (PR#391) I wouldn't pay overly
much attention to it since it is about 1.0.0 code...


Re: [STATUS] Sun Apr 13 19:08:09 PDT 1997

Posted by Chuck Murcko <ch...@topsail.org>.
Just ran some stress tests. I *am* still getting some SIGSEGVs, at a
very low rate, about the rate Rob's seeing with his. The core dumps I'm
getting are still untraceable, though.

I wonder if my gdb is whacked?

Plus, we've got 2 PRs about core dumps now. One from FreeBSD 2.2, and
one from Linux.

Marc posted a patch to allow core dumps on FreeBSD. Did you guys see
that?

Even at 1/5000, it's a problem if you're running millions of hits/day.

I think it's time to fire this up single threaded in the debugger and
beat it to death. Crude, but effective.

Rob Hartill wrote:
> 
> On Mon, 14 Apr 1997, Randy Terbush wrote:
> 
> > > Randy, are you still seeing these? I've gotten no core dumps in about a
> > > week of heavy testing since all of Roy's patches went in, and I fixed
> > > some other things in the proxy.
> >
> > No I am not seeing them. However, I _am_ seeing the following:
> > pid 9556 (httpd), uid 50002: exited on signal 6
> > pid 9597 (httpd), uid 50002: exited on signal 6
> > pid 8616 (httpd), uid 50002: exited on signal 6
> > pid 9816 (httpd), uid 50002: exited on signal 6
> > pid 9644 (httpd), uid 50002: exited on signal 6
> > pid 9645 (httpd), uid 50002: exited on signal 6
> > pid 21720 (httpd), uid 50000: exited on signal 4
> > pid 16767 (httpd), uid 501: exited on signal 6
> > pid 7406 (httpd), uid 501: exited on signal 6
> > pid 22712 (httpd), uid 501: exited on signal 6
> > pid 8163 (httpd), uid 50054: exited on signal 6
> > pid 8165 (httpd), uid 50054: exited on signal 6
> > pid 8164 (httpd), uid 50054: exited on signal 6
> >
> > Bus errors. Lots of em. I also spent some time this past weekend
> > trying to get a coredump out of FreeBSD. I have verified that
> > RLIMIT_CORE is of sufficient size. Despite the fact that Ken's
> > patch now helps find where we might be putting the core, and the
> > directory is world writeable, no core...
> >
> > I'll be looking at this more through the week.
> 
> I have "lots" of these too under FreeBSD 2.2
> No sign of any core files here either. I thought mine might
> be due to non-standard stuff I run.
> 
> Instead (or in addition to) saying *where* the core was meant to
> get dumped, I'd have more success in tracking this down if the
> offending URL was logged.. unless it turns out to be URL independent
> and triggered by something else (e.g. User-Agent).
> 
> Of course I could hack my own httpd to log the info I need, and
> maybe I will  :-). My SIGSEGV/hit ratio is ~ 1/5000 so it's not a
> major problem so far.
> 
> --
> Rob Hartill                              Internet Movie Database (Ltd)
> http://us.imdb.com/tour   .. a site for sore eyes.

-- 
chuck
Chuck Murcko
The Topsail Group, West Chester PA USA
chuck@topsail.org

Re: [STATUS] Sun Apr 13 19:08:09 PDT 1997

Posted by Rob Hartill <ro...@imdb.com>.
On Mon, 14 Apr 1997, Randy Terbush wrote:

> > Randy, are you still seeing these? I've gotten no core dumps in about a
> > week of heavy testing since all of Roy's patches went in, and I fixed
> > some other things in the proxy.
> 
> No I am not seeing them. However, I _am_ seeing the following:
> pid 9556 (httpd), uid 50002: exited on signal 6
> pid 9597 (httpd), uid 50002: exited on signal 6
> pid 8616 (httpd), uid 50002: exited on signal 6
> pid 9816 (httpd), uid 50002: exited on signal 6
> pid 9644 (httpd), uid 50002: exited on signal 6
> pid 9645 (httpd), uid 50002: exited on signal 6
> pid 21720 (httpd), uid 50000: exited on signal 4
> pid 16767 (httpd), uid 501: exited on signal 6
> pid 7406 (httpd), uid 501: exited on signal 6
> pid 22712 (httpd), uid 501: exited on signal 6
> pid 8163 (httpd), uid 50054: exited on signal 6
> pid 8165 (httpd), uid 50054: exited on signal 6
> pid 8164 (httpd), uid 50054: exited on signal 6
> 
> Bus errors. Lots of em. I also spent some time this past weekend 
> trying to get a coredump out of FreeBSD. I have verified that 
> RLIMIT_CORE is of sufficient size. Despite the fact that Ken's 
> patch now helps find where we might be putting the core, and the 
> directory is world writeable, no core...
> 
> I'll be looking at this more through the week.

I have "lots" of these too under FreeBSD 2.2
No sign of any core files here either. I thought mine might
be due to non-standard stuff I run.

Instead (or in addition to) saying *where* the core was meant to
get dumped, I'd have more success in tracking this down if the
offending URL was logged.. unless it turns out to be URL independent
and triggered by something else (e.g. User-Agent).

Of course I could hack my own httpd to log the info I need, and
maybe I will  :-). My SIGSEGV/hit ratio is ~ 1/5000 so it's not a
major problem so far.


--
Rob Hartill                              Internet Movie Database (Ltd)
http://us.imdb.com/tour   .. a site for sore eyes.