Opened 5 years ago

Closed 5 years ago

#4328 closed bug (fixed)

profiled ghc: Oops! Entered absent arg ww_s6mj{v} [lid] ghc-prim:GHC.Prim.Addr#{(w) tc 33}

Reported by: igloo Owned by:
Priority: normal Milestone:
Component: Compiler Version: 6.13
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description

Validating on amd64/Linux with mk/validate.mk containing:

GhcProfiled = YES
GhcLibWays += p

fails with:

"inplace/bin/ghc-stage2"   -H32m -O -Wall -Werror -H64m -O0 -DNEW_GHC_LAYOUT   -hide-all-packages -i -iutils/haddock/src -iutils/haddock/dist/build -iutils/haddock/dist/build/autogen -Iutils/haddock/dist/build -Iutils/haddock/dist/build/autogen    -optP-DIN_GHC_TREE -optP-include -optPutils/haddock/dist/build/autogen/cabal_macros.h -package Cabal-1.9.2 -package array-0.3.0.2 -package base-4.3.0.0 -package containers-0.4.0.0 -package directory-1.1.0.0 -package filepath-1.2.0.0 -package ghc-6.13.20100921 -package pretty-1.0.1.2 -package xhtml-3000.2.0.1  -funbox-strict-fields -O2 -Wall -fwarn-tabs -XForeignFunctionInterface -XCPP -XPatternGuards -XDeriveDataTypeable -XScopedTypeVariables -XMagicHash -no-user-package-conf -rtsopts     -odir utils/haddock/dist/build -hidir utils/haddock/dist/build -stubdir utils/haddock/dist/build -hisuf hi -osuf  o -hcsuf hc -c utils/haddock/dist/build/Haddock/Parse.hs -o utils/haddock/dist/build/Haddock/Parse.o
ghc-stage2: panic! (the 'impossible' happened)
  (GHC version 6.13.20100921 for x86_64-unknown-linux):
        Oops!  Entered absent arg ww_s6mj{v} [lid] ghc-prim:GHC.Prim.Addr#{(w) tc 33}

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

make[1]: *** [utils/haddock/dist/build/Haddock/Parse.o] Error 1
make: *** [all] Error 2

Change History (2)

comment:1 Changed 5 years ago by igloo

Most of the rebindable tests are failing the same way, e.g.:

$ '/home/ian/ghc/darcs/ghc/inplace/bin/ghc-stage2' -fforce-recomp -dcore-lint -dcmm-lint -dno-debug-output -no-user-package-conf -rtsopts  -o rebindable4 rebindable4.hs
[1 of 1] Compiling Main             ( rebindable4.hs, rebindable4.o )
ghc-stage2: panic! (the 'impossible' happened)
  (GHC version 7.1.20100921 for x86_64-unknown-linux):
        Oops!  Entered absent arg ww_s6mj{v} [lid] ghc-prim:GHC.Prim.Addr#{(w) tc 33}

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

comment:2 Changed 5 years ago by simonpj

  • Resolution set to fixed
  • Status changed from new to closed

Fixed by

Thu Sep 23 11:57:32 BST 2010  [email protected]
  * Rejig the absent-arg stuff for unlifted types
  
  This is what was giving the "absent entered" messages
  See Note [Absent errors] in WwLib.  We now return a 
  suitable literal for absent values of unlifted type.

    M ./compiler/basicTypes/Literal.lhs -2 +20
    M ./compiler/stranal/WwLib.lhs -17 +32
Note: See TracTickets for help on using tickets.