Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
ocamldebug hangs or crashes on printing lazy values with custom printer #7914
Original bug ID: 7914
#6684 was about printing a lazy value in ocamldebug with the generic printer.
Fatal error: exception End_of_file
or hangs (presumably on an input_value trying to fetch the lazy value, though not fully sure on the diagnostic).
The same actually happens when printing functions with a custom printer (though the need is probably less common).
I feel a bit powerless to help more.
Steps to reproduce
printf "let n = lazy (1+1) in n" > a.ml