Opened 5 years ago

Closed 5 years ago

#2887 closed bug (fixed)

Segfault while configuring Cabal 1.6.0.1 on OS X 10.5

Reported by: ozy Owned by:
Priority: normal Milestone:
Component: Compiler Version: 6.10.1
Keywords: Cc:
Operating System: MacOS X Architecture: powerpc
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

An unknown issue prevents Cabal from being built successfully on PPC Macs. I've tried compiling GHC from source with no change in the behavior. The following output is from Cabal's included Setup program, run inside GDB:

(gdb) run configure --user +RTS -DSs
Starting program: [...]/Cabal-1.6.0.1/Setup configure --user +RTS -DSs
Reading symbols for shared libraries +++. done
new task (taskCount: 1)
task exiting
new task (taskCount: 1)
created thread 1, stack size = f1 words
new bound thread (1)
### NEW SCHEDULER LOOP (task: 0x7005a0, cap: 0x3e7d98)
-->> running thread 1 ThreadRunGHC ...
--<< thread 1 (ThreadRunGHC) stopped, StackOverflow
increasing stack size from 241 words to 1009.
-->> running thread 1 ThreadRunGHC ...
thread 1 did a safe foreign call
thread 1: re-entering RTS
--<< thread 1 (ThreadRunGHC) stopped, yielding
-->> running thread 1 ThreadRunGHC ...
--<< thread 1 (ThreadRunGHC) stopped, yielding
-->> running thread 1 ThreadRunGHC ...
--<< thread 1 (ThreadRunGHC) stopped, yielding
-->> running thread 1 ThreadRunGHC ...
--<< thread 1 (ThreadRunGHC) stopped, yielding
-->> running thread 1 ThreadRunGHC ...
thread 1 did a safe foreign call
thread 1: re-entering RTS
--<< thread 1 (ThreadRunGHC) stopped, yielding
-->> running thread 1 ThreadRunGHC ...
--<< thread 1 (ThreadRunGHC) stopped: HeapOverflow
all threads:
threads on capability 0:
	thread    1 @ 0x97d000 is not blocked
other threads:
Setup: internal error: ASSERTION FAILED: file Sanity.c, line 241

    (GHC version 6.10.1 for powerpc_apple_darwin)
    Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

Program received signal SIGABRT, Aborted.
0x94e29af0 in __kill ()

Change History (5)

comment:1 Changed 5 years ago by maeder

I have no problem. Cabal-1.6.0.1 is part of the http://www.haskell.org/ghc/dist/6.10.1/maeder/ghc-6.10.1-powerpc-apple-darwin.tar.bz2
(that also runs on PPC Leopard)

"+RTS -DSs" is not supported by the Setup file created with "ghc --make Setup.hs" (compiling 50 modules).

comment:2 Changed 5 years ago by ozy

On the recommendation of the one person I've encountered who experienced this problem, I upgraded my compiler toolchain (Apple Xcode 3.0 to 3.1), which resolved the problem. Is there some channel through which to advise against compiling GHC with certain compiler or linker versions?

comment:3 Changed 5 years ago by simonmar

  • Difficulty set to Unknown

Please put the information in here: Building/Prerequisites in the MacOS X section, and move any relevant parts from Building/MacOSX while you're at it. I'd like to get all the information about "what things are needed for building GHC" in one place.

comment:4 Changed 5 years ago by maeder

Right, ghc on PPC Leopard is unusable without Xcode 3.1. This should be made clear on the download page. (I had linking problems or seg-faults with Xcode 3.0 as described in #1958)

comment:5 Changed 5 years ago by igloo

  • Resolution set to fixed
  • Status changed from new to closed

I've updated the download page to say that Xcode 3.1 is required, and updated Building/MacOSX.

I haven't merged the Building wiki pages, but that's orthogonal to this ticket, so I'm closing it.

Note: See TracTickets for help on using tickets.