internal error: scavenge_stack: weird activation record found onstack: 0

Jason Dagit dagit at codersbase.com
Wed Sep 14 13:35:22 EDT 2005


Interesting.  I was able to reproduce it on debian using x86.  I also  
noticed that it seemed to be related to the exception handling.  If I  
catch all exceptions at the highest level (that is add one more level  
of exception catching) then the crashing goes away.

Thanks,
Jason

On Sep 14, 2005, at 8:30 AM, Simon Marlow wrote:

> I can't repeat this on i386-unknown-linux or x86_64-unknown-linux,  
> with
> GHC 6.4 or 6.4.1.
>
> Wolfgang, does it happen for you?
>
> Cheers,
>     Simon
>
> On 21 August 2005 21:24, Jason Dagit wrote:
>
>
>> Hello,
>>
>> I have discovered that when using forkOS and exitWith that I get the
>> following error:
>> hud: internal error: scavenge_stack: weird activation record found on
>> stack: 0
>>      Please report this as a bug to glasgow-haskell-bugs at haskell.org,
>>      or http://www.sourceforge.net/projects/ghc/
>>
>> I'm using OSX 10.4, and ghc 6.4 from darwinports.
>>
>> Thanks,
>> Jason
>>
>> I have attached a relatively simple program that demonstrates the
>> crash, here are steps to reproduce the crash:
>> $ make
>> ghc -threaded --make Hud.hs -o hud
>> Chasing modules from: Hud.hs
>> Compiling Main             ( Hud.hs, Hud.o )
>> Linking ...
>> ghc -threaded --make Connector.hs -o connector
>> Chasing modules from: Connector.hs
>> Compiling Main             ( Connector.hs, Connector.o )
>> Linking ...
>> [01:20 PM][dagit at lychee~/local-data/hud]
>> $ hud 2000 &
>> [1] 10441
>> [01:20 PM][dagit at lychee~/local-data/hud]
>> $ telnet localhost 2000
>> Trying ::1...
>> telnet: connect to address ::1: Connection refused
>> Trying 127.0.0.1...
>> Connected to localhost.
>> Escape character is '^]'.
>> Accepted on: {handle: <socket: 7>}
>> changing buffering on: {handle: <socket: 7>}
>> Connection from localhost on: ThreadId 4
>> quit
>> QuitEvent
>> Connection closed by foreign host.
>> [01:20 PM][dagit at lychee~/local-data/hud]
>> $ hud: exit: ExitSuccess
>>
>>
>> [01:20 PM][dagit at lychee~/local-data/hud]
>> $ telnet localhost 2000
>> Trying ::1...
>> telnet: connect to address ::1: Connection refused
>> Trying 127.0.0.1...
>> Connected to localhost.
>> Escape character is '^]'.
>> Accepted on: {handle: <socket: 7>}
>> changing buffering on: {handle: <socket: 7>}
>> Connection from localhost on: ThreadId 5
>> hud: internal error: scavenge_stack: weird activation record found on
>> stack: 0
>>      Please report this as a bug to glasgow-haskell-bugs at haskell.org,
>>      or http://www.sourceforge.net/projects/ghc/
>> Connection closed by foreign host.
>> [1]+  Exit 254                hud 2000
>>
>
>




More information about the Glasgow-haskell-bugs mailing list