develooper Front page | perl.perl5.porters | Postings from July 2005

[perl #2900] B::CC cannot sort

From:
Michael G Schwern via RT
Date:
July 23, 2005 01:25
Subject:
[perl #2900] B::CC cannot sort
Message ID:
rt-3.0.11-2900-118185.6.22984557950353@perl.org
> [tchrist@chthon.perl.com - Thu Mar 30 11:30:55 2000]:
> 
> This simple program:
> 
>     for $k (sort { length $ENV{$b} <=> length $ENV{$a} } keys %ENV) {
> 	print "$k=$ENV{$k}\n";
>     } 
> 
> Under B::Bytecode, produces correct results, then SEGVs

Now working in 5.8.6.

> Under B::C, produces correct results, then exits correctly.

Still working in 5.8.6.

> Under B::CC, produces no results, but goes into recursive 
>     doom in the sort, eventually SEGVing for lack of memory
>     in stack death.

$ perlcc -O foo
/sw/bin/perlcc: foo did not compile, which can't happen:
Can't locate object method "_save_common_middle" via package "B::FAKEOP"
at /sw/lib/perl5-core/5.8.6/darwin-thread-multi-2level/B/C.pm line 389.
 CHECK failed--call queue aborted.

Same for bleadperl.



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About