It is a possibility that the compiler crashes because Blackhole feeds it with invalid input. If I remember correctly the compiler crashes for instance when it is given s-expressions that don't have Gambit's internal source location annotations. This makes perfect sense and is consistent with the rest of the system; Gambit doesn't guarantee safety when messing around with the internals (in this case a REPL and compilation hook).

If you're using the master branch, you could add (pp ret) after the comment "Useful when debugging" in build.scm. This makes black hole print out all the code that it gives to Gambit.

-- 
Per Eckerdal

On Thursday, 2 June 2011 at 14:55, Marc Feeley wrote:


On 2011-06-02, at 3:06 AM, Benjohn Barnes wrote:

Hi,

I installed and tried to compile with Blackhole on OS X yesterday, but got a bus error during the compile. I'm at a loss as to how to proceed with this. If anyone would like further details, I'll be happy to provide them, but I'm not sure what to provide.

Thank you,
Benjohn

Could you please give a little more context for your crash:

1) operating system version (uname -a)
2) version of Gambit (gsc -v)
3) version of your C compiler (gcc -v if you are using gcc)
4) a transcript of the commands that lead to the crash
5) the content of the file whose compilation lead to the crash

Marc

_______________________________________________
Gambit-list mailing list
Gambit-list@iro.umontreal.ca
https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list