#2081: GHC reports internal error: stg_ap_v_ret
-------------------------+--------------------------------------------------
 Reporter:  thorkilnaur  |          Owner:             
     Type:  bug          |         Status:  new        
 Priority:  normal       |      Milestone:  6.10 branch
Component:  Compiler     |        Version:  6.9        
 Severity:  normal       |     Resolution:             
 Keywords:               |     Difficulty:  Unknown    
 Testcase:               |   Architecture:  Multiple   
       Os:  Multiple     |  
-------------------------+--------------------------------------------------
Comment (by thorkilnaur):

 I am no longer able to produce the error message {{{internal error:
 stg_ap_p_ret}}} using the method originally described (compiling a program
 with GHC HEAD while spending resources in a separate process). I have
 looked a bit more into the timeout case: As I read what happens,
 timeout.hs is compiled using the stage1 inplace compiler. And:
 {{{
 $ uname -a
 Darwin thorkil-naurs-mac-mini.local 9.4.0 Darwin Kernel Version 9.4.0: Mon
 Jun  9 19:36:17 PDT 2008; root:xnu-1228.5.20~1/RELEASE_PPC Power Macintosh
 $ /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx-2/tnaur-ppc-osx-
 head-2/build/ghc/stage1-inplace/ghc -fforce-recomp --make timeout.hs
 [1 of 1] Compiling Main             ( timeout.hs, timeout.o )
 Linking timeout ...
 $ ./timeout 200 'echo Something'
 Something
 $ /Users/thorkilnaur/tn/buildbot/ghc/tnaur-ppc-osx-2/tnaur-ppc-osx-
 head-2/build/ghc/stage1-inplace/ghc -fforce-recomp --make timeout.hs -O2
 [1 of 1] Compiling Main             ( timeout.hs, timeout.o )
 Linking timeout ...
 $ ./timeout 200 'echo Something'
 timeout: internal error: stg_ap_p_ret
     (GHC version 6.11.20080927 for powerpc_apple_darwin)
     Please report this as a GHC bug:
 http://www.haskell.org/ghc/reportabug
 Something
 Abort trap
 $
 }}}
 So {{{-O2}}} makes a difference.

 Best regards
 Thorkil

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2081#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to