Crash in garbage collector

Simon Marlow marlowsd at
Mon Nov 17 08:00:27 EST 2008

Colin Paul Adams wrote:
>>>>>> "Ian" == Ian Lynagh <igloo at> writes:
>     Ian> If you were lucky it would abort with an assertion
>     Ian> failure. Anyway, gdb should now have debugging symbols to
>     Ian> work with.
> It already did (I passed the -g option to gcc). 
> I guess I will need to install the GHC source to get file
> listings. That sounds like hard work. I think I'll wait for 6.10.1 .

If you're calling a Haskell library from C, the problem might be that you 
forgot hs_add_root(), or that your hs_add_root() isn't pointing to the 
right module (it should point to the module that transitively imports all 
the other modules in your library).  You can use multiple hs_add_root() 
calls if necessary.


More information about the Glasgow-haskell-users mailing list