Opened 8 years ago

Closed 8 years ago

#5425 closed bug (fixed)

Panic: the impossible happened charType '\955'

Reported by: dpmulligan Owned by: simonmar
Priority: high Milestone: 7.4.1
Component: Compiler Version: 7.0.3
Keywords: Cc:
Operating System: Linux Architecture: x86
Type of failure: GHCi crash Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description (last modified by igloo)

GHCi 7.0.3 panic on loading file with multiline strings and Unicode characters:

dpm@dpm-laptop:~/Projects/PL/pl/pl2$ ghci Debug/GHCCrash.hs 
GHCi, version 7.0.3:  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
ghc: panic! (the 'impossible' happened)
  (GHC version 7.0.3 for i386-unknown-linux):
	charType: '\955'

Please report this as a GHC bug:

Minimum file necessary to reproduce attached.

Attachments (1)

GHCCrash.hs (124 bytes) - added by dpmulligan 8 years ago.
minimum file necessary to reproduce bug

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by dpmulligan

Attachment: GHCCrash.hs added

minimum file necessary to reproduce bug

comment:1 Changed 8 years ago by simonmar

Milestone: 7.4.1
Owner: set to simonmar
Priority: normalhigh

Thanks, I'll take a look.

comment:2 Changed 8 years ago by igloo

Description: modified (diff)

comment:3 Changed 8 years ago by igloo

Also reproducible for me with 7.3.20111006 on amd64/Linux.

comment:4 Changed 8 years ago by marlowsd@…

commit 660568cac9b342aaeb4e7dcc694d730828671362

Author: Simon Marlow <>
Date:   Mon Oct 10 10:40:00 2011 +0100

    fix panic in string-gap lexing (#5425)

 compiler/parser/Lexer.x |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

comment:5 Changed 8 years ago by simonmar

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.