[Pkg-gnu-smalltalk-devel] Bug#558013: Segfault when seting n-th bit of number, with large n

jaf at gmx.it jaf at gmx.it
Tue Sep 7 22:15:34 UTC 2010


Hi,

Following the discussion at:

http://lists.gnu.org/archive/html/help-smalltalk/2009-01/msg00115.html

Derek Zhou and Paolo Bonzini made some improvements to the
garbage collection algorithm with these three commits to
libgst/oop.c:

http://git.savannah.gnu.org/cgit/smalltalk.git/commit/?id=8d8618
http://git.savannah.gnu.org/cgit/smalltalk.git/commit/?id=abf820
http://git.savannah.gnu.org/cgit/smalltalk.git/commit/?id=6b7cf5

By testing the snapshots immediately before and after these
changes I've verified that the behaviour of the original
example (0 bitAt: 1000000 put: 1) changes from segfaulting
to printing the correct answer.

The first version of the gnu-smalltalk Debian package to
incorporate these changes is 3.2-1, which also behaves
correctly on that example.

I don't know if the underlying bug, i.e. failing to handle
memory exhaustion gracefully, has been fixed.

Thanks.





More information about the Pkg-gnu-smalltalk-devel mailing list