Opened 21 months ago

Last modified 17 months ago

#7133 new bug

GHCi: strange behaviour after CTRL-C, followed by 'hPutChar: resource vanished (Broken Pipe)' when quitting

Reported by: DuncanMortimer Owned by: tibbe
Priority: normal Milestone: 7.8.3
Component: GHCi Version: 7.4.1
Keywords: Cc:
Operating System: MacOS X Architecture: Unknown/Multiple
Type of failure: Other Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

Example: (launching GHCi from Terminal.app)

GHCi, version 7.4.1: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> 1
1
Prelude> [1..]
^CPrelude> 1
^CPrelude> 10
^CPrelude> 1+2
^CPrelude> :q
<stdout>: hPutChar: resource vanished (Broken pipe)

This behaviour does not occur when I run GHCi from within Aquamacs (some output elided):

GHCi, version 7.4.1: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> 1
1
Prelude> [1..]
[1,2,3,4,5, ... 475,476,47  ^C ^C7,478,479,480, ... 539,540,541Interrupted.
Prelude> 1
1
Prelude> :q
Leaving GHCi.

Process haskell finished

I'm using the Haskell Platform for Mac OSX, 2012.2.0.0 32 bit, running on OSX 10.6.8.

Change History (2)

comment:1 Changed 19 months ago by igloo

  • Difficulty set to Unknown
  • Milestone set to 7.8.1
  • Owner set to igloo

Thanks for the report. I'll see if I can reproduce it.

comment:2 Changed 17 months ago by tibbe

  • Owner changed from igloo to tibbe
Note: See TracTickets for help on using tickets.