[GAP Forum] Segmentation Fault

Justin Walker justin.walker at comcast.net
Wed Apr 14 04:11:34 BST 2010


Dear Forum,

I was fiddling with lists and tried the following, which resulted in a  
segmentation fault:

gap> l:=ListWithIdenticalEntries(6,[1,2,3]);;
gap> l[1][1]:=l[3];;
gap> l;
[ [ ~[1], 2, 3 ], [ ~[2], 2, 3 ], [ ~[3], 2, 3 ], [ ~[4], 2, 3 ],  
[ ~[5], 2, 3 ],
   [ ~[6], 2, 3 ] ]
gap> MakeImmutable(l);

Boom!

I gather that the result of the second assignment is to tie the list  
into knots.  The following call then goes recursive and eventually  
blows the stack (true?).

I thought it worth reporting, in case it's fixable.

Regards,

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds
--------
If you're not confused,
You're not paying attention
--------






More information about the Forum mailing list