Building on android - compiled program segfaults

Ian Lynagh ian at well-typed.com
Fri Jan 11 14:31:48 CET 2013


On Fri, Jan 11, 2013 at 12:36:22PM +0100, Nathan Hüsken wrote:
> 
> And now I am clueless. So I tried the good old printf debugging in the
> rts. Using this, I see that it gets before the call to
> scheduleWaitThread in the function rts_evalLazyIO (in RtsAPI.c).
> 
> But when I put a printf in the beginning of scheduleWaitThread (in
> Schedule.c) it is not shown.
> 
> What else can I do to find out more?

Sounds like it would be useful to set a breakpoint on rts_evalLazyIO,
disassemble, then "si" through the call to scheduleWaitThread to see
what's happening. "info register someregistername" will tell you what's
in someregistername.


Thanks
Ian




More information about the ghc-devs mailing list