Closed ekaitz-zarraga closed 3 months ago
@ashinn I bisected the problem using this script:
make CC=gcc -j9
LD_LIBRARY_PATH=. ./chibi-scheme tools/chibi-doc chibi.string
And found the first commit with the problem is: 18d0adf13ba2a854f73fd0febf90e51ca86e13c0
Does the (if (null? ls)
make any sense? shouldn't it be list?
(define (map1 proc ls res)
(if (pair? ls)
(map1 proc (cdr ls) (cons (proc (car ls)) res))
(if (null? ls) ;; !!!
(reverse res)
(error "map: improper list" ls))))
That commit is correct, and just uncovered the "bug" where the chibi-doc code was mapping over improper lists, relying on the forgiving handling of this by the original map implementation.
Note this only applies to the text rendering, and chibi-doc --html (as is used to generate the online manual and verified before every release) is unaffected.
Hi, I can't use chibi-doc in 0.11, while 0.10 worked ok.