Re: [GHC] #15005: GHC fails with “StgCmmEnv: variable not found” when trying to compile order-maintenance-0.2.1.0

GHC ghc-devs at haskell.org
Thu Apr 5 21:36:24 UTC 2018


#15005: GHC fails with “StgCmmEnv: variable not found” when trying to compile
order-maintenance-0.2.1.0
-------------------------------------+-------------------------------------
        Reporter:  jeltsch           |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.4.3
       Component:  Compiler          |              Version:  8.4.2-rc1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  crash or panic                     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by sjakobi):

 I cannot reproduce the panic with ghc-HEAD (`c2f90c84e`) or ghc
 v8.5.20180306 from hvr's PPA.

 It is interesting (but possibly unrelated) that the testsuite for `order-
 maintenance` fails when built with ghc-HEAD. With ghc-8.2.2 it passes.


 {{{
 ~/tmp/order-maintenance-0.2.1.0 $ cabal new-test -w ~/src/ghc/inplace/bin
 /ghc-stage2 -O1 --allow-newer
 Build profile: -w ghc-8.5.20180402 -O1
 In order, the following will be built (use -v for more details):
  - order-maintenance-0.2.1.0 (test:tests) (first run)
 Preprocessing test suite 'tests' for order-maintenance-0.2.1.0..
 Building test suite 'tests' for order-maintenance-0.2.1.0..
 [1 of 1] Compiling Main             ( /home/simon/tmp/order-
 maintenance-0.2.1.0/dist-newstyle/build/x86_64-linux/ghc-8.5.20180402
 /order-maintenance-0.2.1.0/t/tests/build/testsStub/testsStub-
 tmp/testsStub.hs, /home/simon/tmp/order-maintenance-0.2.1.0/dist-
 newstyle/build/x86_64-linux/ghc-8.5.20180402/order-
 maintenance-0.2.1.0/t/tests/build/testsStub/testsStub-tmp/Main.o )
 Linking /home/simon/tmp/order-maintenance-0.2.1.0/dist-
 newstyle/build/x86_64-linux/ghc-8.5.20180402/order-
 maintenance-0.2.1.0/t/tests/build/testsStub/testsStub ...
 Running 1 test suites...
 Test suite tests: RUNNING...
 Test case Dumb vs. Dietz and Sleator O(log n) amortized time: Fail "(after
 14
 tests and 5 shrinks):Exception: Map.!: given key is not an element in the
 map
 CallStack (from HasCallStack): error, called at
 libraries/containers/Data/Map/Internal.hs:610:17 in
 containers-0.5.11.0:Data.Map.InternalnewMinimum -> x_1, newAfter x_1 ->
 x_2,
 newMinimum -> x_3, newBefore x_2 -> x_4, newAfter x_4 -> x_5, delete x_1,
 newBefore x_1 -> x_7"
 Test suite tests: FAIL
 ...
 }}}

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15005#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list