Joe Orton wrote:
On Thu, May 20, 2004 at 02:41:43AM -0700, Stas Bekman wrote:

Stas Bekman wrote:

Doing just:

apr_brigade_create(p, ba);

and leaving here segfaults:

[...]


With what 'p' and 'ba'?

r->pool r->connection->bucket_alloc

> Can you post the complete test case?

Well, it's coming from mod_perl. Is there something similar to mod_example.c that I can throw the C code in to give you a reproducible case? I guess I could use mod_example for that :)

If you have mod_perl 2 around just write this simple handler:

  use APR::Brigade ();
  use Apache::Connection ();
  use Apache::RequestRec ();
  sub handler {
    my $r = shift;
    my $bb = APR::Brigade->new($r->pool, $r->connection->bucket_alloc);
    0;
  }

it translates to:

  apr_brigade_create(r->pool, r->connection->bucket_alloc)

I think the segfault happens, when r->pool's cleanup is run.

--
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Reply via email to