[GHC] #8728: Segmentation fault in Cabal

#8728: Segmentation fault in Cabal -------------------------------------+---------------------------------- Reporter: heatsink | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: libraries (other) | Version: 7.8.1-rc1 Keywords: Cabal | Operating System: MacOS X Architecture: x86 | Type of failure: Runtime crash Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | -------------------------------------+---------------------------------- I get a segfault in the following program, compiled on OS X with the development version of GHC (last commit 50e4d40f88c3eee41384efacfd83f73305e2210d), run with the command `./Setup configure`. A `.cabal` file is not needed to produce the error. {{{ -- ghc --make Setup.hs import Distribution.Simple main = defaultMainWithHooks simpleUserHooks }}} I discovered the problem when installing `llvm-general-pure`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8728 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8728: Segmentation fault in Cabal --------------------------------------+----------------------------- Reporter: heatsink | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: libraries (other) | Version: 7.8.1-rc1 Resolution: | Keywords: Cabal Operating System: MacOS X | Architecture: x86 Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: --------------------------------------+----------------------------- Comment (by thoughtpolice): Can you provide the exact steps you did? Also, can you try the RC1 binaries? And what platform are you on, OS version, etc etc? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8728#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8728: Segmentation fault in Cabal --------------------------------------+----------------------------- Reporter: heatsink | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: libraries (other) | Version: 7.8.1-rc1 Resolution: | Keywords: Cabal Operating System: MacOS X | Architecture: x86 Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: --------------------------------------+----------------------------- Comment (by heatsink): I am using Mac OS 10.6.8. I can not find an RC1 binary for this OS. There are binaries for Mac OS 10.7 and 10.9. The problem appeared when I updated a preexisting repository to get the fix for #8180. Here are the steps as I remember them. I ran `./sync-all pull --rebase; make clean; configure --prefix=$HOME/env/ghc; make; make install`. GHC 7.4.1 and Haskell platform 2012.2.0.0 were used to bootstrap. I ran into the bug after installing some packages, but the bug seems to depend only on the libraries included with GHC. The bug is produced by adding the install path to `PATH`, writing the program to `Setup.hs`, compiling it with `ghc --make`, and running `./Setup configure`. My local changes to the RTS were `#ifdef`'d out during the test. I haven't tested a pristine copy of the sources. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8728#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8728: Segmentation fault in Cabal --------------------------------------+--------------------------- Reporter: heatsink | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.2 Component: libraries (other) | Version: Resolution: | Keywords: Cabal Operating System: MacOS X | Architecture: x86 Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: --------------------------------------+--------------------------- Changes (by thoughtpolice): * version: 7.8.1-rc1 => * milestone: => 7.8.2 Comment: I'm afraid it seems I can't reproduce this on my machines and unless a patch comes in, it's unlikely I'll be able to. I'm unfortunately going to have to punt this for 7.8.1. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8728#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8728: Segmentation fault in Cabal --------------------------------------+----------------------------- Reporter: heatsink | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.2 Component: libraries (other) | Version: 7.8.1-rc1 Resolution: | Keywords: Cabal Operating System: MacOS X | Architecture: x86 Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: --------------------------------------+----------------------------- Changes (by thoughtpolice): * version: => 7.8.1-rc1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8728#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8728: Segmentation fault in Cabal --------------------------------------+----------------------------- Reporter: heatsink | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.8.1 Component: libraries (other) | Version: 7.8.1-rc1 Resolution: fixed | Keywords: Cabal Operating System: MacOS X | Architecture: x86 Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: --------------------------------------+----------------------------- Changes (by thoughtpolice): * status: new => closed * resolution: => fixed * milestone: 7.8.3 => 7.8.1 Comment: This one was fixed with one of Simon's code generator changes for 7.8.1, actually. Yay! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8728#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC