[GHC] #8116: Segfault/panic of 32bit GHCi on Mac
GHC
ghc-devs at haskell.org
Tue Aug 13 12:43:32 CEST 2013
#8116: Segfault/panic of 32bit GHCi on Mac
----------------------------------+------------------------------------
Reporter: kazu-yamamoto | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.6.3
Resolution: | Keywords:
Operating System: MacOS X | Architecture: Unknown/Multiple
Type of failure: GHCi crash | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
----------------------------------+------------------------------------
Comment (by shelarcy):
Second bug is caused by DYNAMIC_GHC_PROGRAMS on Mac OS X platform. I
reproduced that on 64 bit GHCi, if DYNAMIC_GHC_PROGRAMS = Yes when
building GHC HEAD.
{{{
$ ghc --info [("Project name","The Glorious Glasgow Haskell Compilation
System")
(snip)
,("Project version","7.7.20130810")
,("Booter version","7.6.3")
,("Stage","2")
,("Build platform","x86_64-apple-darwin")
,("Host platform","x86_64-apple-darwin")
,("Target platform","x86_64-apple-darwin")
(snip)
,("Support dynamic-too","YES")
,("Dynamic by default","NO")
,("GHC Dynamic","YES")
,("Leading underscore","YES")
,("Debug on","False")
,("LibDir","/Library/Frameworks/GHC.framework/Versions/7.7.20130810-x86_64/usr/lib/ghc-7.7.20130810")
,("Global Package
DB","/Library/Frameworks/GHC.framework/Versions/7.7.20130810-x86_64/usr/lib/ghc-7.7.20130810/package.conf.d")
]
}}}
{{{
Prelude Data.Complex> ((-2) :+ 0)**(1.5 :+ 0)
ghc: panic! (the 'impossible' happened)
(GHC version 7.7.20130810 for x86_64-apple-darwin):
Loading temp shared object failed:
dlopen(/var/folders/zs/bsr11y_x3d76ssg4bl_kx7nm0000gn/T/ghc74358_0/ghc74358_0.dylib,
9): Library not loaded: /Users/shelarcy/Desktop/ghc/libraries/base/dist-
install/build/libHSbase-4.7.0.0-ghc7.7.20130810.dylib
Referenced from:
/var/folders/zs/bsr11y_x3d76ssg4bl_kx7nm0000gn/T/ghc74358_0/ghc74358_0.dylib
Reason: image not found
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
}}}
If DYNAMIC_GHC_PROGRAMS = NO when building GHC, 64 bit GHCi work fine.
build.mk
{{{
DYNAMIC_GHC_PROGRAMS = NO
}}}
{{{
$ ghc --info
[("Project name","The Glorious Glasgow Haskell Compilation System")
(snip)
,("Project version","7.7.20130810")
,("Booter version","7.6.3")
,("Stage","2")
,("Build platform","x86_64-apple-darwin")
,("Host platform","x86_64-apple-darwin")
,("Target platform","x86_64-apple-darwin")
(snip)
,("Support dynamic-too","YES")
,("Dynamic by default","NO")
,("GHC Dynamic","NO")
,("Leading underscore","YES")
,("Debug on","False")
,("LibDir","/Library/Frameworks/GHC.framework/Versions/7.7.20130810-x86_64/usr/lib/ghc-7.7.20130810")
,("Global Package
DB","/Library/Frameworks/GHC.framework/Versions/7.7.20130810-x86_64/usr/lib/ghc-7.7.20130810/package.conf.d")
]
}}}
{{{
Prelude Data.Complex> ((-2) :+ 0)**(1.5 :+ 0)
(-5.195736337412959e-16) :+ (-2.82842712474619)
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8116#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list