Closed p5pRT closed 21 years ago
If you use CGI::Carp (2.61)\, which redefines how error messages are handled\, and then try to use a nonexistant package\, perl 5.6.0 gets a segmentation fault while trying to complain.
% perl -e 'use CGI::Carp; use NO::SUCH::THING;' Segmentation Fault
% dbx ... signal SEGV (no mapping at the fault address) in Perl_sv_setsv at 0xcc3ac 0x000cc3ac: Perl_sv_setsv+0x186c: ld [%o0 + 0x8]\, %g2 (dbx) where =>[1] Perl_sv_setsv(0x4840004\, 0x17e130\, 0x1a82d4\, 0x5\, 0xff\, 0x4)\, at 0xcc3ac [2] Perl_pp_sassign(0x165000\, 0x165000\, 0x199a3c\, 0x199a38\, 0x17e130\, 0x1a82d4)\, at 0xb98ec [3] Perl_runops_standard(0x1650a8\, 0x0\, 0x165000\, 0x0\, 0x0\, 0xffbef465)\, at 0xb92a4 [4] perl_call_sv(0x165000\, 0x164800\, 0x165000\, 0x165000\, 0x165000\, 0x0)\, at 0x2b3c8 [5] Perl_vcroak(0x165000\, 0x164c00\, 0x165000\, 0x165000\, 0x164c00\, 0x165000)\, at 0xa8588 [6] Perl_croak(0x1408a4\, 0x19c218\, 0x20980000\, 0x1000\, 0x7000000\, 0x6d)\, at 0xa8778 [7] Perl_call_list(0x166130\, 0x173c68\, 0x173cf8\, 0x173c68\, 0x0\, 0x4)\, at 0x2eb74 [8] Perl_newATTRSUB(0x165000\, 0x1\, 0x16cd90\, 0x16cd90\, 0x173c38\, 0x173cf8)\, at 0x7dea4 [9] Perl_utilize(0x195170\, 0x0\, 0x189720\, 0x0\, 0x18a4c0\, 0x188340)\, at 0x69d44 [10] Perl_yyparse(0x165360\, 0x4\, 0x1653b8\, 0x4b0\, 0x258\, 0x174008)\, at 0x4fa28 [11] S_parse_body(0x160000\, 0x164c00\, 0x165000\, 0x0\, 0x166070\, 0x1)\, at 0x2a5e8 [12] perl_parse(0x0\, 0x275cc\, 0x2\, 0xffbef9dc\, 0x0\, 0x2)\, at 0x296e8 [13] main(0x2\, 0x164448\, 0xffbef9dc\, 0x158c00\, 0x0\, 0x0)\, at 0x27578 (dbx)
As of the perl 5.8/5.9 development track\, this bug has been resolved. Thanks for the report!
- R.
perl -e 'use CGI::Carp; use NO::SUCH::THING;' [Sun Sep 1 16:30:27 2002] -e: Can't locate NO/SUCH/THING.pm in @INC (@INC contains: lib . /home/rs/perl/lib/5.9.0/i686-linux-thread-multi-64all-ld / home/rs/perl/lib/5.9.0 /home/rs/perl/lib/site_perl/5.9.0/i686-linux-thread-multi- 64all-ld /home/rs/perl/lib/site_perl/5.9.0 /home/rs/perl/lib/site_perl .) at -e line 1. [Sun Sep 1 16:30:27 2002] -e: BEGIN failed--compilation aborted at -e line 1.
@floatingatoll - Status changed from 'open' to 'resolved'
Migrated from rt.perl.org#2891 (status was 'resolved')
Searchable as RT2891$