At 01:38 AM 7/5/2007 -0400, Perrin Harkins wrote:
Well, the root of your problem is that you're using ePerl. I haven't seen that one in a long time, and I doubt it gets any support releases these days. I also doubt anyone on the list at this point has ever used it. It's just too old. Time to look at some newer tools, if you want to use something that the community can help you with.
With due respect, Perrin, I disagree with the (common, unfortunately) belief that a lack of an active release cycle indicates that a package is somehow unsuitable. Sometimes, that just means that it's done.
That said, removing ePerl from the equation is trivial: [http://heavy.boygenius.com/temp/TestShippingHandler.pm.txt] [http://heavy.boygenius.com/hello/world]If I comment out the line '$rate_request->submit() or die $rate_request->user_error();', I get the hello world output as expected. If I do not comment out that line, I get no output, and my logs say this:
[Thu Jul 5 15:38:06 2007] [notice] Apache/1.3.37 (Unix) PHP/4.4.7 mod_perl/1.30 configured -- resuming normal operations
[Thu Jul 5 15:38:06 2007] [notice] Accept mutex: sysvsem (Default: sysvsem)[Thu Jul 5 15:38:13 2007] [notice] child pid 1013 exit signal Segmentation fault (11) [Thu Jul 5 15:38:14 2007] [notice] child pid 1014 exit signal Segmentation fault (11) [Thu Jul 5 15:38:15 2007] [notice] child pid 1015 exit signal Segmentation fault (11) [Thu Jul 5 15:38:17 2007] [notice] child pid 1017 exit signal Segmentation fault (11) [Thu Jul 5 15:38:18 2007] [notice] child pid 1018 exit signal Segmentation fault (11) [Thu Jul 5 15:38:20 2007] [notice] child pid 1019 exit signal Segmentation fault (11) [Thu Jul 5 15:38:21 2007] [notice] child pid 1020 exit signal Segmentation fault (11) [Thu Jul 5 15:38:22 2007] [notice] child pid 1021 exit signal Segmentation fault (11) [Thu Jul 5 15:38:24 2007] [notice] child pid 1022 exit signal Segmentation fault (11) [Thu Jul 5 15:38:25 2007] [notice] child pid 1044 exit signal Segmentation fault (11) [Thu Jul 5 15:38:27 2007] [notice] child pid 1046 exit signal Segmentation fault (11) [Thu Jul 5 15:38:28 2007] [notice] child pid 1047 exit signal Segmentation fault (11) [Thu Jul 5 15:38:30 2007] [notice] child pid 1050 exit signal Segmentation fault (11) [Thu Jul 5 15:38:31 2007] [notice] child pid 1051 exit signal Segmentation fault (11) [Thu Jul 5 15:38:32 2007] [notice] child pid 1052 exit signal Segmentation fault (11) [Thu Jul 5 15:38:34 2007] [notice] child pid 1053 exit signal Segmentation fault (11) [Thu Jul 5 15:38:35 2007] [notice] child pid 1065 exit signal Segmentation fault (11) [Thu Jul 5 15:38:36 2007] [notice] child pid 1009 exit signal Segmentation fault (11) [Thu Jul 5 15:38:38 2007] [notice] child pid 1069 exit signal Segmentation fault (11) [Thu Jul 5 15:38:39 2007] [notice] child pid 1070 exit signal Segmentation fault (11)
Until the browser finally stops.
I don't remember much about how ePerl works, but it's clear you aren't sending any headers or generating valid HTML. That may not be the problem though.
ePerl handles the headers without needing to specify them, and the little bit of HMTL at the bottom of the script should be plenty.
Why don't you try taking things out of this until it works? The last thing you take out is the culprit.
I tried that already, using a different script: [http://heavy.boygenius.com/temp/test2.cgi] [http://heavy.boygenius.com/temp/test2_cgi.txt] [http://heavy.boygenius.com/temp/test2.phtml] [http://heavy.boygenius.com/temp/test2_phtml.txt]If I comment out '$rate_request->submit() or die $rate_request->user_error();', it returns an empty page immediately.
My interpretation of the problem is that it seems to occur when Business::Shipping goes out over the wire from inside a mod_perl environment. However, that's probably wrong, because grabbing external pages from inside mod_perl seems to work just fine in other cases:
[http://heavy.boygenius.com/temp/test_pagegrab.phtml] [http://heavy.boygenius.com/temp/test_pagegrab_phtml.txt] Thusly, I'm stumped. thanks again, Todd
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.