[racket] ill-formed code (unexpected graph structure) with custom #lang

From: Dmitry Pavlov (dpavlov at ipa.nw.ru)
Date: Sat Feb 7 16:56:20 EST 2015


Racket seems to have an issue with programs compiled by raco make:

$ racket test.slon

$ raco make test.slon
$ racket test.slon
compiled/test_slon.zo: : read (compiled): ill-formed code (unexpected 
graph structure)

$ rm compiled/test_slon.zo
$ racket test.slon

"slon" is a custom language implemented in Racket. I am not sure if it 
matters. Anyway, as soon as I delete compiled/test_slon.zo, it starts to 
work, even with the "slon/compiled" and "slon/lang/compiled" directories 
left intact.

The test_slon.zo file is 3 KB, the program does nearly nothing, and I 
have no idea what causes the error. Here is the compiled file (encoded 
in base64):


I am having this trouble in Racket, and had it with prior 
versions (but not all of them -- some time ago everything worked as 
expected, but I forgot which version that was).

Is there anything I can do to help to track down the bug?

Best regards,


Posted on the users mailing list.