You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jonathan Vanasco <mo...@2xlp.com> on 2006/07/24 23:16:18 UTC

Stacked Handlers / Different Handlers and ApacheRequest

I've got an issue, and I need help:

	$r is automagically available in a handler
	I often need use of Apache2::Request in my handler
	and sometimes i need to do this:
		Apache2::RequestUtil->request($r);

i've learned to day that doing any of that in multiple handlers is a  
no-no, either stacked or  as a  different request phase items

took forever for me to bugshoot...

but calling either of these:
		Apache2::RequestUtil->request($r);
	my 	$apr= Apache2::Request->new( $r , DISABLE_UPLOADS=>1 ,  
POST_MAX=>10_000 );

in a  handler , after either have  been called, will cause either in  
the apache log:
	 a segfault
	[Mon Jul 24 17:09:06 2006] [notice] child pid 1391 exit signal Bus  
error (10) #which i think is a segfault too
	
with this written to the error log
	[Mon Jul 24 16:43:18 2006] [error] [client 127.0.0.1] Conflicting  
information


Is doing a setup and setting a pnote my only option?

i'm doing 2 handlers so i can do some cookie checking/redirection for  
a beta  site-- i don't want to hardcode too much stuff like that in,  
as I'll be deleting one of the handlers shortly


// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - -
| RoadSound.com - Tools For Bands, Stuff For Fans
| Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - -