From: skaller <sk...@us...> - 2004-12-27 23:19:34
|
On Tue, 2004-12-28 at 09:42, Janne Hellsten wrote: > The following test case in the testing suite causes a segfault in > garbage collection: > > --cut-- > (* NOTE this is a copy of Skaller's trivial DynArray test. Apparently > he hit the nail on the head with the first try, Nope -- someone else reported this problem, I just coded it into a test. >open DynArray > > let test_triv () = > let a = make 0 in (* ZERO here causes a segfault later in GC??? *) > let b = copy a in > assert (length a == 0); > assert (length b == 0); > Gc.major () > --cut-- Hmm. If we had unit test level control in the test harness, we could add/not add Gc.major() after every test. > $ ./mktest --author=jh --module=DynArray > $ ./extlib_test Ah, you added --module :) -- John Skaller, mailto:sk...@us... voice: 061-2-9660-0850, snail: PO BOX 401 Glebe NSW 2037 Australia Checkout the Felix programming language http://felix.sf.net |