On Sun, Feb 26, 2006 at 11:04:56PM +1100, Brendan O'Dea wrote:
> forwarded 350369 perl5-porters@perl.org
> thanks
> 
> On Sun, Jan 29, 2006 at 09:40:23AM +0000, Neil Turton wrote:
> >Package: perl-base
> >Version: 5.8.7-10
> >
> >Perl shouldn't get a segmentation fault on valid or invalid input.  I
> >think the following code is valid, even if it is ghastly.  :)
> [snip: see http://bugs.debian.org/350369]
> 
> In short, the following segfaults:
> 
>   $ perl -e '*a=$a=*b; $a=42'
>   Memory fault 
> 
> I'm assuming that the problem is a circular assignment within the
> expression (since '$a=*b; *a=$a; $a=42' doesn't break).
> 
> The simple answer is "don't do that".  This would appear never to have
> worked (certainly as far back as 5.005 crashes).


It even segfaults on 5.000.



Abigail

Attachment: pgpwOMnqfz2EH.pgp
Description: PGP signature

Reply via email to