Ticket #2561 (closed bug: fixed)

Opened 5 years ago

Last modified 4 years ago

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

Reported by: igloo Owned by:
Priority: normal Milestone: 6.12 branch
Component: Compiler Version: 6.8.3
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

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

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple

Changed 4 years ago by igloo

  • milestone changed from 6.10 branch to 6.12 branch

Changed 4 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

I can't reproduce this in the HEAD.

Note: See TracTickets for help on using tickets.