[gambit-list] Segmentation fault from simple (infinite) loop

Marc Feeley feeley at iro.umontreal.ca
Mon Feb 11 11:27:38 EST 2008


On 9-Feb-08, at 6:12 PM, Ryan Mulligan wrote:

> rmulliga at rtmlap ~/gambc-v4_2_1> bin/gsi-script
> Gambit v4.2.1

There's a known bug in the handling of named optional parameters when  
combined with a rest parameter.  Both print and println use them.  The  
bug corrupts the heap (when a GC happens during the handling of the  
parameters) and this causes the GC or the main program to crash.

It's on my TODO...

For now, just add this to your ~/.gambcini:

(define (print . stuff) (for-each display stuff))
(define (println . stuff) (for-each display stuff) (newline))

Marc




More information about the Gambit-list mailing list