Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the B-C CPAN distribution.

Report information
The Basics
Id: 53536
Status: resolved
Priority: 0/
Queue: B-C

People
Owner: RURBAN [...] cpan.org
Requestors: rurban [...] x-ray.at
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: (no value)



Subject: B::CC cannot sort
This moved from [PERL #2900] here. The simple pp_sort bug for B::CC was fixed in B-C-1.04_27, B::CC 1.02_03. It never worked. * CC.pm (1.02_03): fixed endless loop in optimized sort. The sortcv cmp needed a return NULL (test 19). More pp_sort bugs are handled in tests 18 and 25 and I'm working on it. # 25 - simple sort print sort { print $i++," "; $b <=> $a } 1..4 => 0 1 2 3 4321 # 18 - custom key sort 18 my $h = { a=>3, b=>1 }; print sort {$h->{$a} <=> $h->{$b}} keys %$h => ba # 19 - fool the sort optimizer by my $p. This pp_sort works ok now on CC print sort { my $p; $b <=> $a } 1,4,3 => 431 -- Reini Urban
Show quoted text
> This moved from [PERL #2900] here.
http://rt.perl.org/rt3/Ticket/Display.html?id=2900 Original report: 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 Under B::C, produces correct results, then exits correctly. Under B::CC, produces no results, but goes into recursive doom in the sort, eventually SEGVing for lack of memory in stack death. --tom --------------- Show quoted text
> Under B::Bytecode, produces correct results, then SEGVs
Now working in 5.8.6. Show quoted text
> Under B::C, produces correct results, then exits correctly.
Still working in 5.8.6. Show quoted text
> 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. -------------------
From: rurban [...] x-ray.at
On Sat Jan 09 08:27:31 2010, RURBAN wrote: Show quoted text
> > This moved from [PERL #2900] here.
> http://rt.perl.org/rt3/Ticket/Display.html?id=2900
Fixed the remaining B::CC problem in B-C-1.30 (cc_queue sort ccpp, test 18) (PS: I'm not allowed to modify this ticket, please someone resolve it)
Fixed the remaining B::CC problem in B-C-1.30 (cc_queue sort ccpp, test 18) -- Reini Urban