I'm getting seg faults within "print" of ModPerl::Registry script while using an output filter handler. The output filter is run during the script's "print" statement when the printed string is > ~8kb. Debugging shows the seg fault occurs AFTER the output filter handler has completed successfully, but BEFORE the print statement completes. GDB backtrace is below. Perl modules CGI.pm and LWP::UserAgent seem to be causal in generating the seg fault.
Here is the somewhat complicated recipe that produces the seg fault reliably.
1. ModPerl::Registry script using CGI.pm header() and a print statement that includes a comma separated (list) of strings > 8kb.
2. An output filter handler that uses LWP::UserAgent to make an HTTP request.
Caveats:
- Only occurs in an Apache child that hasn't already loaded these modules (CGI, LWP::UserAgent) and dependents.
- Occurs in single process mode (-X) on both static and dynamically linked builds.Example script/filter and system details are below. I can provide more info if needed. I'm currently testing other module versions. Can anyone suggest a fix or workaround?
Thanks!
Ed Eddington
Sr. Software Engr - Web Development
Priority Health - Grand Rapids, MI
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.