Simon Marlow wrote:
> 
> > > 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.
> 
> You mean this one:
> 
>         subl $RESERVED_C_STACK_BYTES + 4*SIZEOF_LONG,%esp
> 
> subracting from %esp caused the program to exit?  Surely not!

Specifically, anything after the subl <large number>,%esp
did not happen. Perhaps causing an uncaught page fault?
(I dont think that the subl immediately forces the exit,
I presume though, that any attempt to reference through
%esp is causing the problem)

Are you setting anything strange just before getting
to this point, like turning off handlers, etc?

Andy

Reply via email to