Ticket #5723 (new bug)

Opened 5 months ago

Last modified 3 months ago

GHCi (7.4.0.20111219) sometimes segfaults when reading .ghci

Reported by: konn Owned by: pumpkin
Priority: high Milestone: 7.4.2
Component: GHCi Version: 7.3
Keywords: GHCi, SEGV Cc: anton.nik@…
Operating System: MacOS X Architecture: x86_64 (amd64)
Type of failure: GHCi crash Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

If ~/.ghci is set to load some module when startup, GHCi sometimes raises SEGV. "Sometimes" means that ghci sometimes launched successfully and sometimes not. So please try it more than three times.

Below is the minimal .ghci file to reproduce the problem:

:m Prelude

I use virthualenv package to use GHC-7.4.1RC. I installed it as below:

$ wget http://www.haskell.org/ghc/dist/7.4.1-rc1/ghc-7.4.0.20111219-x86_64-apple-darwin.tar.bz2
$ virthualenv --ghc=/***/***/install/ghc-7.4.0.20111219-x86_64-apple-darwin.tar.bz2

Used virthualenv package is built on GHC 7.0.4.

Change History

Changed 5 months ago by igloo

  • owner set to igloo
  • difficulty set to Unknown
  • priority changed from normal to high
  • milestone set to 7.4.1

I can't reproduce this on amd64/Linux validate builds. I'll try on the OS X 64 RC.

Changed 5 months ago by igloo

Changed 5 months ago by igloo

  • priority changed from high to highest

Changed 5 months ago by igloo

I can't reproduce it by installing ghc-7.4.0.20111219-x86_64-apple-darwin.tar.bz2 either. Tried both with and without .ghci.

Changed 5 months ago by igloo

I can't reproduce it by installing with virthualenv either.

Changed 5 months ago by simonmar

  • owner changed from igloo to simonmar

I managed to repro it here with the RC1 tarball. Looking into it further...

Changed 4 months ago by igloo

  • priority changed from highest to high

The plan is to just document the installer as requiring OS X >= 10.7 and XCode >= 4.1.

Ideally we'd also have the installer warn if it finds it is being used on an older version.

Changed 4 months ago by simonmar

  • owner changed from simonmar to igloo

Changed 4 months ago by igloo

  • owner changed from igloo to pumpkin

pumpkin, here's another installer enhancement that would be useful: The ability to make the installer warn if you have XCode < some_version, or OS X < some_version. Thanks!

Changed 4 months ago by igloo

  • milestone changed from 7.4.1 to 7.4.2

Changed 3 months ago by lelf

  • cc anton.nik@… added
Note: See TracTickets for help on using tickets.