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
--------




_______________________________________________
Forum mailing list
Forum@mail.gap-system.org
http://mail.gap-system.org/mailman/listinfo/forum

Reply via email to