Ticket #1750 (closed merge: fixed)

Opened 6 years ago

Last modified 4 years ago

ghc-pkg stack overflow when mutually dependent packages installed

Reported by: greenrd Owned by: igloo
Priority: normal Milestone: 6.8.3
Component: Compiler Version: 6.7
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Easy (less than 1 hour)
Test Case: Blocked By:
Blocking: Related Tickets:

Description

I erroneously added mutual dependencies between two packages I was working on. When I installed them both, both Cabal and ghc-pkg started behaving strangely:

- Setup.hs configure would run, but very slowly
- Setup.hs build would stack overflow
- ghc-pkg list would stack overflow

I realised that there was a mutual dependency, and manually edited package.conf to unregister one of them. This fixed the problem.

Change History

Changed 6 years ago by igloo

  • milestone set to 6.8 branch

Thanks for the report! We should take a look at what is going on.

Changed 6 years ago by simonmar

  • difficulty changed from Unknown to Easy (1 hr)
  • os changed from Linux to Multiple
  • component changed from None to Compiler
  • architecture changed from x86_64 (amd64) to Multiple
  • milestone changed from 6.8 branch to 6.8.3

See also #1882. It looks like GHC itself croaks when there are cyclic dependencies in the package database too.

Changed 5 years ago by simonmar

  • owner set to simonmar

Changed 5 years ago by simonmar

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

Fixed, to merge:

Wed Jan 23 16:06:35 GMT 2008  Simon Marlow <simonmar@microsoft.com>
  * FIX #1750: throw out mutually recursive groups of packages

Wed Jan 23 16:07:03 GMT 2008  Simon Marlow <simonmar@microsoft.com>
  * FIX #1750: in isBrokenPackage, don't loop if the deps are recursive

Wed Jan 23 16:31:45 GMT 2008  Simon Marlow <simonmar@microsoft.com>
  * Show CmdLineError exceptions as "<command line>: ..."

Changed 5 years ago by igloo

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

All 3 merged.

Changed 5 years ago by simonmar

  • architecture changed from Multiple to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Multiple to Unknown/Multiple

Changed 4 years ago by simonmar

  • difficulty changed from Easy (1 hr) to Easy (less than 1 hour)
Note: See TracTickets for help on using tickets.