Admin message

Due to a large amount of spam we do not allow new users to create repositories, they are "external" users. If you are a new user and want to create a repository, for example for forking GHC, open a new issue on ghc/ghc using the "get-verified" issue template

ghci: internal error: ASSERTION FAILED: file rts/Interpreter.c, line 773
It's a ghc-HEAD on amd64 ./configure --enable-unregisterised. One of faulty tests is a: ``` ghc-unreg/testsuite/tests/ghci/should_run $ '/home/slyfox/dev/git/ghc-unreg/inplace/bin/ghc-stage2' -fforce-recomp -dcore-lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts -optc-fno-builtin -fno-warn-tabs -fno-ghci-history ghcirun002.hs --interactive -v0 -ignore-dot-ghci +RTS -I0.1 -RTS *Main> main (<interactive>: internal error: ASSERTION FAILED: file rts/Interpreter.c, line 773 (GHC version 7.9.20141020 for x86_64_unknown_linux) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug Aborted ``` The assertion failure is triggered by stack overflow check when handling ... stack overflow! ``` // Stack check if (Sp - INTERP_STACK_CHECK_THRESH < SpLim) { Sp -= 2; Sp[1] = (W_)obj; Sp[0] = (W_)&stg_apply_interp_info; // placeholder, really /* 773 */ RETURN_TO_SCHEDULER(ThreadInterpret, StackOverflow); } /* ... RETURN_TO_SCHEDULER decl: */ #define RETURN_TO_SCHEDULER(todo,retcode) \ /* this triggers assert */ SAVE_STACK_POINTERS; \ cap->r.rCurrentTSO->what_next = (todo); \ threadPaused(cap,cap->r.rCurrentTSO); \ cap->r.rRet = (retcode); \ return cap; /* ... SAVE_STACK_POINTERS decl: */ #define SAVE_STACK_POINTERS \ ASSERT(Sp > SpLim); \ cap->r.rCurrentTSO->stackobj->sp = Sp ``` In our case **Sp == SpLim**. That means we have written one word out-of-stack-bounds, right? <details><summary>Trac metadata</summary> | Trac field | Value | | ---------------------- | ------------- | | Version | 7.9 | | Type | Bug | | TypeOfFailure | OtherFailure | | Priority | normal | | Resolution | Unresolved | | Component | GHCi | | Test case | | | Differential revisions | | | BlockedBy | | | Related | | | Blocking | | | CC | hvr, simonmar | | Operating system | | | Architecture | | </details> <!-- {"blocked_by":[],"summary":"ghci: internal error: ASSERTION FAILED: file rts/Interpreter.c, line 773","status":"New","operating_system":"","component":"GHCi","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"7.9","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":["hvr","simonmar"],"type":"Bug","description":"It's a ghc-HEAD on amd64 ./configure --enable-unregisterised.\r\n\r\nOne of faulty tests is a:\r\n{{{\r\nghc-unreg/testsuite/tests/ghci/should_run $ '/home/slyfox/dev/git/ghc-unreg/inplace/bin/ghc-stage2' -fforce-recomp -dcore-lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts -optc-fno-builtin -fno-warn-tabs -fno-ghci-history ghcirun002.hs --interactive -v0 -ignore-dot-ghci +RTS -I0.1 -RTS\r\n\r\n*Main> main\r\n\r\n(<interactive>: internal error: ASSERTION FAILED: file rts/Interpreter.c, line 773\r\n\r\n (GHC version 7.9.20141020 for x86_64_unknown_linux)\r\n Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug\r\nAborted\r\n}}}\r\n\r\nThe assertion failure is triggered by stack overflow check\r\nwhen handling ... stack overflow!\r\n{{{\r\n // Stack check\r\n if (Sp - INTERP_STACK_CHECK_THRESH < SpLim) {\r\n Sp -= 2;\r\n Sp[1] = (W_)obj;\r\n Sp[0] = (W_)&stg_apply_interp_info; // placeholder, really\r\n/* 773 */ RETURN_TO_SCHEDULER(ThreadInterpret, StackOverflow);\r\n }\r\n\r\n/* ... RETURN_TO_SCHEDULER decl: */\r\n#define RETURN_TO_SCHEDULER(todo,retcode) \\\r\n/* this triggers assert */ SAVE_STACK_POINTERS; \\\r\n cap->r.rCurrentTSO->what_next = (todo); \\\r\n threadPaused(cap,cap->r.rCurrentTSO); \\\r\n cap->r.rRet = (retcode); \\\r\n return cap;\r\n\r\n/* ... SAVE_STACK_POINTERS decl: */\r\n#define SAVE_STACK_POINTERS \\\r\n ASSERT(Sp > SpLim); \\\r\n cap->r.rCurrentTSO->stackobj->sp = Sp\r\n}}}\r\n\r\nIn our case '''Sp == SpLim'''. That means\r\nwe have written one word out-of-stack-bounds, right?","type_of_failure":"OtherFailure","blocking":[]} -->
issue