Welcome to the CHICKEN Scheme pasting service

breadline segfault added by mario-goulart on Sat Feb 4 23:12:57 2023

$ cat bl.scm 
(import scheme)
(import (chicken io)
        (chicken process signal))
(import breadline)

(on-exit reset-terminal!)

(set-signal-handler! signal/int
                     (lambda _
                       (cleanup-after-signal!)
                       (reset-after-signal!)))

(read-line)


$ csc -O0 -d3 bl.scm 

# Execute bl and press C-c on read-line.

$ ./bl
^C
Error: segmentation violation

        Call history:

        bl.scm:4: chicken.load#load-extension     
        bl.scm:6: chicken.base#on-exit    
        bl.scm:8: chicken.process.signal#set-signal-handler!      
        bl.scm:13: chicken.io#read-line   
        bl.scm:10: breadline#cleanup-after-signal!        
        bl.scm:11: breadline#reset-after-signal!                <--

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which one-argument R5RS procedure returns 2 when given `'(1 2 3)' as input?
Visually impaired? Let me spell it for you (wav file) download WAV