Joe Schaefer wrote:
Stas Bekman <[EMAIL PROTECTED]> writes:


Joe Schaefer wrote:

Stas Bekman <[EMAIL PROTECTED]> writes:
[...]


Heh, I tried that (removing $b->remove), and t/compat/request_body.t
then segfaults right there, all by itself.

:-( Did you remember to replace it with $bb->cleanup?

I can't. Remember it crashes on win32: http://marc.theaimsgroup.com/?l=apache-modperl-dev&m=108967266419527&w=2


Random guess- from WrapXS/APR/Brigade/Brigade.xs
==================================================
MODULE = APR::Brigade    PACKAGE = APR::Brigade   PREFIX = apr_brigade_

apr_status_t
apr_brigade_cleanup(data)
    void * data

==================================================
I think mp2 is using the wrong typemap here (void *), which may be causing the $bb->cleanup segfaults on Win32.

Ah, what's wrong about it? the declaration is:

APU_DECLARE(apr_status_t) apr_brigade_cleanup(void *data);

What's the backtrace look like?

I think the same as posted at the head of this thread. I'll check that again.


HTTP_IN will segfault if you pass it a non-empty brigade:

  http://marc.theaimsgroup.com/?l=apache-httpd-dev&m=105513549120399&w=2


It does assert. I didn't have a chance to test it until now:

[Thu Aug 19 16:54:26 2004] [crit] [Thu Aug 19 16:54:26 2004] file http_protocol.c, line 976, assertion "readbytes > 0" failed

and the assertion causing the segfault. Not too smart.

#0  0xffffe410 in ?? ()
#1  0xbfffe83c in ?? ()
#2  0x00000006 in ?? ()
#3  0x00001711 in ?? ()
#4  0x40332925 in raise () from /lib/tls/libc.so.6
#5  0x40334309 in abort () from /lib/tls/libc.so.6
#6  0x080dfd1b in ap_log_assert (szExp=0x8111473 "readbytes > 0",
    szFile=0x8111330 "http_protocol.c", nLine=976) at log.c:711
#7  0x080a6662 in ap_http_filter (f=0x9516f20, b=0x94d93e0,
    mode=AP_MODE_READBYTES, block=APR_BLOCK_READ, readbytes=-18379)
    at http_protocol.c:976
#8  0x080eafc1 in ap_get_brigade (next=0x9516f20, bb=0x94d93e0,
    mode=AP_MODE_READBYTES, block=APR_BLOCK_READ, readbytes=8192)
    at util_filter.c:474
#9  0x080f44b4 in net_time_filter (f=0x9516a80, b=0x94d93e0,
    mode=AP_MODE_READBYTES, block=APR_BLOCK_READ, readbytes=8192)
    at core.c:3649
#10 0x080eafc1 in ap_get_brigade (next=0x9516a80, bb=0x94d93e0,
    mode=AP_MODE_READBYTES, block=APR_BLOCK_READ, readbytes=8192)
    at util_filter.c:474



--
__________________________________________________________________
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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to