Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,249
    • Issues 5,249
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 580
    • Merge requests 580
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #906
Closed
Open
Issue created Sep 21, 2006 by avatar@hot.ee@trac-avatar

"the `impossible' happened: Maybe.fromJust: Nothing" when using {-# SOURCE #-}

It is possible to use the {-# SOURCE #-} directive to make ghc crash. Attached is a program that does it with ghc 6.4.2. Here is a run of my compiler:

avatar@avatar:~/Docs/sandbox/haskell/hs-boot> make
ghc --make Main.hs
Chasing modules from: Main.hs
Compiling C                ( ./C.hs, ./C.o )
Compiling A                ( ./A.hs, ./A.o )
Compiling A[boot]          ( ./A.hs-boot, ./A.o-boot )
Compiling B                ( ./B.hs, ./B.o )
Compiling Main             ( Main.hs, Main.o )
Linking ...
ghc-6.4.2: panic! (the `impossible' happened, GHC version 6.4.2):
        Maybe.fromJust: Nothing

The bang seems to happen in

./compiler/main/DriverPipeline.hs:320:      linkables = map (fromJust.hm_linkable) home_mod_infos

though I'm not 100% sure.

Cheers,

Misha

Trac metadata
Trac field Value
Version 6.4.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC avatar@hot.ee
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking