httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Shevchenko <i...@sbslinko.com>
Subject Re: parser-related sigsegv
Date Thu, 01 Jan 1970 00:00:00 GMT
Message-ID: 876680

> Igor Shevchenko <ig_apr@carcass.ath.cx> writes:
> 
> > Hi all,
> >
> > I'm getting apache coredumps with apache 2.0.54 + mod_perl2 rc5 +
> > apreq2 from multi-env-unstable (latest update).
> 
> Thanks, that branch should be trunk now.
> 
> > The form itself is rather big, and it starts with (case #1):
> 
> [...]
> 
> > Here's the backtrace for core dump for the case #1:
> >
> > #0  apreq_parse_multipart (parser=0x8f74108, t=0x8f74188,
> > bb=0x8f74128) at apreq_param.h:53
> > #1  0xb7fe676c in apreq_filter_prefetch (f=0x8f73ed0,
> > readbytes=150421704) at  apreq_parser.h:126
> > #2  0xb7fe5291 in apache2_body (req=0x8f740c8, t=0x0) at handle.c:169
> > #3  0xb7fdf21e in apreq_params (req=0x8f73eb0, p=0x8f63d28) at 
> > apreq_module.h:166
> 
> Definitely an apreq bug, but it's hard for me to tell what the bug is
> from this trace.  Can anyone with a debugging build reproduce it?

I've nailed it down to the following:

<form method=post action="/path/to/script.pl" enctype="multipart/form-data">
<input type=hidden name="" value="">
<input type=submit name="op_submit value="Go">
</form>


script.pl will die on: "$FORM = $apr->param;"

Looks like apreq doesn't like params with empty names in a "POST" form. "GET" works.

This is httpd-apreq-2 trunk as of 21 apr.

--
Best Regards,
Igor Shevchenko


Mime
View raw message