Description of problem: CGI::Carp::Warn experiences deep recursion when hit, followed by a segmentation fault. This can make developing any web applications using CGI::Carp::Warn difficult, as any trivial warning will cause pages of log output followed by a crash. See https://rt.perl.org/rt3/Ticket/Display.html?id=36521 for details and possible patches. Version-Release number of selected component (if applicable): perl-5.8.6-15 How reproducible: Always Steps to Reproduce: Execute script: #!/usr/bin/perl use CGI::Carp qw(fatalsToBrowser); use diagnostics; warn "foo"; Results: Deeply nested warning message followed by segfault.
Oh dear! Yes, this appears to be an issue with perl-5.8.6-* in FC-4, and with the latest perl-5.8.7 in FC-5/Rawhide. investigating ...
This only happens in FC-4 and FC-5 with the 'use diagnostics;' - without this, the command completes ok: $ perl -e 'use CGI::Carp; CGI::Carp::warn("foo");' [Tue Nov 8 18:25:03 2005] -e: foo at -e line 1. The 'use CGI::Carp; use diagnostics; CGI::Carp::warn("foo");' works fine with RHEL-3's perl-5.8.0-90.2 and RHEL-4's perl-5.8.5-17.RHEL4 .
This is upstream perl bug: '#36521: Deep recursion on subroutine "CGI::Carp::warn"' ( http://rt.perl.org/rt3/Ticket/Display.html?id=36521 ) The upstream patch #25160 has been applied to perl-5.8.6-16 (FC-4) and perl-5.8.7-0.7 (FC5) in CVS, and will be released to FC-4 updates and Rawhide shortly .
assigning to rnorwood