Simon Marlow wrote:
> 
> > Bug (1): A totally clean, top of the CVS tree does not work on NT 4.0.
> >
> > Behavior: returns with no result, any program.
> > Strange: Adding '+RTS -s' makes things work fine.
> > I think that there is not enough stack space on the C stack,
> > and the "change %esp register is failing us". The alloca
> > function is for this.
> 
> A strange bug indeed, but what brings you to this conclusion?  

Because 
(1) I hacked the *.S code that start STG execution to call
    printf after each instruction, and the allocate stack 
    space *instruction* caused the problem.
(2) I made the first invocation of this code call alloca (via a
    large array), then free the space, the calls the STG code,
    and thing work. 
(3) I suspect that GDB is preallocating more stack.

Andy Gill, NT Debugger for GHC team :-)

Reply via email to