[LLVMdev] Possible bug in TCO?

Jon Harrop jon at ffconsultancy.com
Sun Nov 29 09:31:48 PST 2009


On Sunday 29 November 2009 10:19:40 Albert Graef wrote:
> Jon Harrop wrote:
> > I've come up with the following minimal repro that segfaults on my
> > machine:
>
> Jon, were you able to resolve this?

Nope. I just worked around the problem because HLVM was segfaulting on a 
single stdlib function call (just removing "tail" fixed the segfault which 
was trying to read 0x1 according to ValGrind) so I inlined it and now I have 
no segfaults. I kept the full repro as a .ll though.

Arnold showed that my minimal repro was buggy: I'd confused calling 
conventions.

-- 
Dr Jon Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?e



More information about the llvm-dev mailing list