Richard Clarke wrote:
Stas,


Doesn't seem like an apreq problem. It happens in the modperl function.
Any

chance you can rebuild mod_perl with debug mode enabled (PERL_DEBUG=1), so
we

can see the arguments and file/linenumbers? See:
http://perl.apache.org/docs/1.0/guide/debug.html#PERL_DEBUG_1_Build_Option



Program received signal SIGBUS, Bus error.
0x80b445b in ap_unescape_url (url=0x8162e89 "") at util.c:1609
1609        url[x] = '\0';
(gdb) bt
#0  0x80b445b in ap_unescape_url (url=0x8162e89 "") at util.c:1609
#1  0x8085c20 in XS_Apache_unescape_url (cv=0x8227b0c) at Apache.c:931
much better ;)

[...]
Its worth noting that the same function runs fine in a contenthandler, just
not in the transhandler.
Since you don't show what the real code that fails, I can only offer to plug the hole in ap_unescape_url on the mod_perl side. I'll report the bug to the httpd-dev list.

Index: src/modules/perl/Apache.xs
===================================================================
RCS file: /home/cvs/modperl/src/modules/perl/Apache.xs,v
retrieving revision 1.125
diff -u -r1.125 Apache.xs
--- src/modules/perl/Apache.xs 6 Jul 2001 20:33:35 -0000 1.125
+++ src/modules/perl/Apache.xs 19 Feb 2003 05:04:04 -0000
@@ -659,7 +659,9 @@
char *string

CODE:
- unescape_url(string);
+ /* ap_unescape_url segfaults when "" is passed */
+ if (string && string[0] != '\0')
+ unescape_url(string);
RETVAL = string;

OUTPUT:


__________________________________________________________________
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