forwarded 503832 dsima...@sql-ledger.org severity 503832 important thanks Hello,
I put Dieter Simader in copy so that he can give us his opinion on this bug. Dieter, the full history of the bug is at http://bugs.debian.org/503832 It looks like yet another problem that appeared with the switch to perl 5.10. Richard found a work-around/fix for this bug. Can you check it out and integrate a proper fix in sql-ledger upstream ? Cheers, On Fri, 03 Apr 2009, Richard Mawson wrote: > I also get this problem on sql-ledger 2.8.16-1 on lenny. > > The problem seems to be the Form object gets corrupted. > > Form.pl:984 attempts to to access elements of $self->{runningnumber}, an > arrayref, which in my case contains this: > > 'runningnumber' => [ > 1, > 'invoice.tex', > undef, > undef > ] > > I believe it should contain the numbers 1,2,3,4 going by how this is > constructed, and in fact changing the code > from: > > $str = (defined $i) ? $self->{$var}[$i] : $self->{$var}; > > to: > > if ($var eq 'runningnumber') { > $str = $i+1; > } else { > if (ref $self->{$var} ne "ARRAY") { > $str = $self->{$var}; > } else { > $str = $self->{$var}[$i]; > } > } > > works around the corruption in this case. > I've not worked out how this structure gets corrupted, so could potentially > be corrupting other structures that have not surfaced yet. > > This makes sql-ledger pretty useless on lenny without my workaround. Is this > being addressed? > Is there anything else I can provide to help resolve the issue? I need a patch that I can trust. The best way is to get upstream to provide a fix. I put Dieter in copy now so that we have a chance to have this fixed. Cheers, -- Raphaël Hertzog Contribuez à Debian et gagnez un cahier de l'admin Debian Lenny : http://www.ouaza.com/wp/2009/03/02/contribuer-a-debian-gagner-un-livre/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org