;; bug.scm (import srfi-18) (define (proc) (error "coucou")) (define th (thread-start! proc)) ;; Run with `csi -:x bug.scm` Error: segmentation violation Call history: (define (proc) (error "coucou")) (##core#begin (##core#ensure-toplevel-definition proc) (##core#set! proc (##core#lambda () (error "c... (##core#ensure-toplevel-definition proc) (##core#undefined) (##core#set! proc (##core#lambda () (error "coucou"))) (##core#lambda () (error "coucou")) [proc] (##core#begin (error "coucou")) [proc] (error "coucou") (define th (thread-start! proc)) (##core#begin (##core#ensure-toplevel-definition th) (##core#set! th (thread-start! proc))) (##core#ensure-toplevel-definition th) (##core#undefined) (##core#set! th (thread-start! proc)) (thread-start! proc) (thread-start! proc) <--