gerbil
gerbil copied to clipboard
string-join segmentation fault: 11
Calling (string-join strs char)
with a non-string in strs leads to a segmentation fault rather than an error. This is easy to replicate in interpreted or compiled code:
;;; The following will lead to a segfault
(string-join '("gerbil" #f) " ")
;;; or
(string-join '("gerbil" 1) " ")
Other values can lead to segfaults and/or an unresponsive REPL:
(string-join '("gerbil" '()) " ")
;;; or
(string-join '("gerbil" (void)) " ")
Tested on Mac OS 10.15.6
what version are you using? this should be fixed in master.
Apologies, rookie omission. I'm running Gerbil v0.16 on Gambit v4.9.3 (installed from Homebrew).
no problem!