httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Stoddard" <b...@wstoddard.com>
Subject Re: core_output_filter seg fault
Date Mon, 28 Jan 2002 03:19:02 GMT


> On Sun, 27 Jan 2002, Bill Stoddard wrote:
>
> > I am getting a seg fault attempting to write bogus buffers to the network.
> > apr_brigade_write() appears to be the culprit.
>
> Well, I guess I don't have too much trouble believing that.
>
> > I send an MMAP bucket into the apr_brigade_write
>
> ...but I can't parse this sentence.  You don't pass any buckets to
> apr_brigade_write().  Do you mean the brigade you pass to
> apr_brigade_write has an MMAP bucket in it?
> Or that you're passing to
> apr_brigade_write the contents of an MMAP that is also contained an MMAP
> bucket somewhere?
>
> > and it creates a transient bucket to point at the contents of the MMAP
> > bucket and hangs this transient on the ctx->b brigade.
> > apr_brigade_destroy() whacks the MMAP pointed to by the transient
> > bucket in ctx->b, resulting in a segfault when we try to write the
> > bogus buffer to the network.
>
> This makes it sound like the latter.  Correct?

Yep, and I just discovered the 'fix'; I was using two different values of
AP_MIN_BYTES_TO_WRITE (8192 and 9000). Was working on a module that was ported from
2.0.28.... Man, the CORE filters are nasty...

Bill


Mime
View raw message