[bitc-dev] string output broken

Swaroop Sridhar swaroop.sridhar at gmail.com
Sat Jun 24 17:50:02 EDT 2006


Tom Bachmann wrote:
> One of the commits seems to have broken string output (or something
> related; or I do compile it the wrong way). I broke it down to this
> minimal basic example:
> 
> (bitc-version "0.10")
> (provide main bitc.main)
> (import stdio bitc.stdio)
> 
> (define (main.main argv:(vector string))
>     (stdio.write-string stdio.stdout "hello\n")
>   (the int32 0))
> 
> Bitcc compiles it cleanly, but it segfaults at runtime.

Thanks for noting this problem. This is a (known) issue in closure 
conversion, and we are working on fixing it. There is a use before 
allocation/initialization problem in the case of closures built for 
mutually recursive functions defined in a letrec. This is also the cause 
for some unit tests to currently segfault (at run time).

Swaroop.



More information about the bitc-dev mailing list