Opened 3 years ago

Closed 3 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 Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

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: http://www.haskell.org/ghc/  :? 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:  http://www.haskell.org/ghc/reportabug

Minimum file necessary to reproduce attached.

Attachments (1)

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

Download all attachments as: .zip

Change History (6)

Changed 3 years ago by dpmulligan

minimum file necessary to reproduce bug

comment:1 Changed 3 years ago by simonmar

  • Milestone set to 7.4.1
  • Owner set to simonmar
  • Priority changed from normal to high

Thanks, I'll take a look.

comment:2 Changed 3 years ago by igloo

  • Description modified (diff)

comment:3 Changed 3 years ago by igloo

Also reproducible for me with 7.3.20111006 on amd64/Linux.

comment:4 Changed 3 years ago by marlowsd@…

commit 660568cac9b342aaeb4e7dcc694d730828671362

Author: Simon Marlow <marlowsd@gmail.com>
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 3 years ago by simonmar

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.