Subject: | CGI::Carp works incorrectly if we have an exception in a package of one of parents |
Debian bugreport: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=580356
Today I've found an unpleasant bug in CGI::Carp.
In attache You can find test script showing the problem.
If we have more than one packages in parent list, and one of them
throws an exception from BEGIN section, CGI::Carp can't detect $@
error-text properly.
If You start test.pl You will see the following error-text:
...
[Wed May 5 15:33:31 2010] test.pl: Died at
/usr/share/perl/5.10/base.pm line 93.
[Wed May 5 15:33:31 2010] test.pl: BEGIN failed--compilation
aborted at Package1.pm line 5.
Compilation failed in require at test.pl line 11.
If You comment text 'use CGI::Carp' You can see the following text:
123 at Package3.pm line 12.
Compilation failed in require at (eval 3) line 3.
...propagated at /usr/share/perl/5.10/base.pm line 93.
BEGIN failed--compilation aborted at Package1.pm line 5.
Compilation failed in require at test.pl line 11.
This bug appears only if we have more than one packages in parent-list.
Subject: | eval.tgz |
Message body not shown because it is not plain text.