[Haskell-cafe] Getting a segmentation fault when starting/stopping the RTS, from C, several times.
Felipe Almeida Lessa
felipe.lessa at gmail.com
Mon Jul 16 02:37:44 CEST 2012
Em 15/07/2012 18:38, "Albert Y. C. Lai" <trebla at vex.net> escreveu:
> On 12-07-10 11:35 PM, Brandon Allbery wrote:
>> Quoth the Fine Manual (18.104.22.168. Using your own main()
>> There can be multiple calls to |hs_init()|, but each one should be
>> matched by one (and only one) call to |hs_exit()|^[14
>> So this should theoretically work.
> Except that  says: the outermost hs_exit() de-initialises, and
afterwards, cannot reliably re-initialise in current implementations.
> So the currently working use-case is just:
> Prog ::= nop | hs_init(); Prog; hs_exit()
Would that be:
Prog ::= nop | hs_init(); Prog'; hs_exit();
Prog' ::= nop | hs_init(); Prog'; hs_exit(); | Prog' Prog'
Felipe – enviado do meu Galaxy Tab.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe