problem with futures?

2005-12-21 Thread Andy Wingo
Hi, With current CVS on PPC (because I still haven't investigated enough to figure what's wrong on x86-64), (define (nsum n) (apply + (let ((x 1)) (par-map (lambda (y) (set! x (1+ x)) (+ y x)) (make-list n 0) I get this: guile> (nsum 100) $1 = 5150 guile

more futures

2005-12-21 Thread Andy Wingo
Semi-replying to my own mail, On Wed, 2005-12-21 at 17:10 -0500, Andy Wingo wrote: > From then on out I can't call nsum any more. Perhaps threads assigned to > futures are not being gc'd properly. If I run (gc) it's fine. I caught the error at threads.c:scm_spawn_thread; pthread_create is returni