Ticket #2973 (closed merge: fixed)

Opened 4 years ago

Last modified 4 years ago

In ghci, loadObj fails after :cd for compiled module

Reported by: sanders_n Owned by: igloo
Priority: normal Milestone: 6.10.2
Component: Compiler Version: 6.10.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

I am using ghc 6.10.1 from MacPorts?, upgraded recently from 6.8.?.

To cause the bug, enter: mkdir bug && pushd bug && echo 'module Bug where number = 12' >Bug.hs && ghc -c Bug.hs && popd && ghci

Inside ghci, do

:cd bug
:l Bug
number

This produces:

GHCi, version 6.10.1: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
Prelude> :cd bug
Prelude> :l Bug
Ok, modules loaded: Bug.
Prelude Bug> number
ghc: panic! (the 'impossible' happened)
  (GHC version 6.10.1 for i386-apple-darwin):
	loadObj: failed

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

Change History

Changed 4 years ago by simonmar

  • owner set to simonmar
  • difficulty set to Unknown
  • milestone set to 6.10.2

Changed 4 years ago by simonmar

Fixed:

Tue Jan 27 04:16:48 PST 2009  Simon Marlow <marlowsd@gmail.com>
  * #2973: we should virtualise the CWD inside the GHC API, not in the client

Changed 4 years ago by simonmar

  • owner changed from simonmar to igloo
  • type changed from bug to merge

Changed 4 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

Merged

Note: See TracTickets for help on using tickets.