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,261
    • Issues 5,261
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 567
    • Merge requests 567
  • 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
  • #295
Closed
Open
Issue created Jan 20, 2005 by nobody@trac-nobody

GHC panic

This concerns GHC HEAD (6.3) on 20 Jan 2005.

I'm afraid this is not going to be a very useful bug
report,
but I thought I'd file my observations anyway.

When compiling a file AFRPTestsReact.hs, GHC panics:

seshat-257% ghc -c -fglasgow-exts -package lang
-package concurrent -i../src AFRPTestsReact.hs
ghc-6.3: panic! (the `impossible' happened, GHC version
6.3):
        Ix{Int}.index: Index (257) out of range ((0,118))
 
Please report it as a compiler bug to
glasgow-haskell-bugs@haskell.org,
or http://sourceforge.net/projects/ghc/.

I start to work on creating a small test case that will
exhibit
the bug by making a copy of the file under a different
name.

But when I compile that file, with the exact same
command line arguments, just to routinely ensure that I
can recreate the bug before I start modifying things,
everything works fine!

I compile the old file again, and again GHC panics, despite
the files being identical , living in the same
directory, being
compiled with the same command line arguments and
from the very same prompt (same environment variables).

I try a few times, and GHC consistently behaves as
described: old file => panic, any copy of the file =>
compiles fine.

Eventually, I "touch" the old file. And then it
compiles just fine!

Possibly some problem with reading file attributes???

Sorry that I cannot provide more info (e.g.
the exact time and date of the file): I'm no
longer able to recreate the problem.

/Henrik

e-mail: nhn@cs.nott.ac.uk
Trac metadata
Trac field Value
Version 6.4
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution ResolvedNoReason
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
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