Ticket #2561 (new bug)

Opened 3 months ago

Last modified 2 months ago

Using "ITstring !FastString" in Lexer.x goes wrong (internal error: stg_ap_v_ret)

Reported by: igloo Assigned to:
Priority: normal Milestone: 6.10 branch
Component: Compiler Version: 6.8.3
Severity: normal Keywords:
Cc: Difficulty: Unknown
Test Case: Operating System: Unknown/Multiple
Architecture: Unknown/Multiple

Description

With this patch:

hunk ./compiler/parser/Lexer.x 535
+#if __GLASGOW_HASKELL__ >= 609
+  | ITstring     !FastString
+#else
hunk ./compiler/parser/Lexer.x 539
+#endif

something goes wrong. The first sign, when validating, is that timeout is broken:

timeout: internal error: stg_ap_v_ret
    (GHC version 6.9.20080902 for x86_64_unknown_linux)
    Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

If you use the python timeout program instead then you find a few tests fail, e.g.:

testsuite/tests/ghc-regress/codeGen/should_run$ '/home/ian/ghc/darcs/st2/ghc/stage2-inplace/ghc' -fforce-recomp -dcore-lint -dcmm-lint -Dx86_64_unknown_linux  -dno-debug-output -o cg052 cg052.hs -O -fasm -funbox-strict-fields
testsuite/tests/ghc-regress/codeGen/should_run$ ./cg052 
ok
cg052: internal error: stg_ap_v_ret
    (GHC version 6.9.20080902 for x86_64_unknown_linux)
    Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
zsh: abort      ./cg052

I'm not sure what's going on, but it seems to be repeatable.

Change History

09/30/08 08:37:38 changed by simonmar

  • architecture changed from Unknown to Unknown/Multiple.

09/30/08 08:51:58 changed by simonmar

  • os changed from Unknown to Unknown/Multiple.