GHCi can crash when tabbing a filename
The following sequence of actions:
- Type
:: I
into GHCI - Press the tab key
- Hold backspace to erase the resulting text
- Repeat steps 2 and 3
May result in the following appearing in the console:
Prelude Data.Map> :: ImageExpo.config ghc.exe: panic! (the 'impossible' happened)
(GHC version 7.6.3 for i386-unknown-mingw32):
Prelude.chr: bad argument: (-947713851)
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
followed by the system prompt.
Afterwards I have realised that ::
was actually interpreted as a GHCi command rather than the type designation syntax. Tabbing yields all files in the current directory, but actually performing the command yields unknown command '::'
There is only one file that starts with I
in my current directory.
Did not manage to reproduce
Trac metadata
Trac field | Value |
---|---|
Version | 7.6.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | GHCi |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture | x86 |