The attached program show two bugs of TinyScheme.
Executing the infinite loop that calls (count-test),
the output should be:
instead with TinyScheme the program print 0, then
continuosly the number 1.
Executing the infinite loop that calls (segfault-test),
a segmentation fault happens (usually after few
seconds, sometimes it don't crash so try different
runs). Using (gc-verbose #t) is possible to see a
strange behaviour of GC: while in the first (do) (the
one that print "a") the GC is stable (recovering the
same amount of cells at each invokation), but when the
program enter in the second (do) (the one that print
"b") the GC become instable (the number of recovered
cells decrease continuosly) and after few seconds it crash.
The same program works correctly using both Guile and