[GHC] #8094: Intermittent segfault when using ghc-7.6.3 -e on OSX 10.6.8
GHC
ghc-devs at haskell.org
Fri Jul 26 12:30:49 CEST 2013
#8094: Intermittent segfault when using ghc-7.6.3 -e on OSX 10.6.8
----------------------------------+----------------------------------
Reporter: rampion | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.6.3
Resolution: | Keywords:
Operating System: MacOS X | Architecture: x86_64 (amd64)
Type of failure: Runtime crash | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
----------------------------------+----------------------------------
Comment (by rampion):
The ghc-7.6.3 rebuilt from source doesn't seem to display the segfaulting
behaviour:
{{{
% cd ~/ghc-7.6.3-installed/bin
% ./ghc -e 0
0
% ./ghc -e 0
0
% ./ghc -e 0
0
}}}
So I'm happy. I ran `make test` on the install:
{{{
% cd ~/ghc-7.6.3-source
% make test
...
OVERALL SUMMARY for test run started at Fri Jul 26 03:41:47 EDT 2013
3403 total tests, which gave rise to
14437 test cases, of which
0 caused framework failures
11363 were skipped
2982 expected passes
47 had missing libraries
35 expected failures
0 unexpected passes
10 unexpected failures
Unexpected failures:
ffi/should_run fptr02 [bad exit code] (normal)
ghci/linking ghcilink003 [bad exit code] (normal)
ghci/linking ghcilink006 [bad exit code] (normal)
perf/compiler T4801 [stat too good] (normal)
perf/compiler T5642 [stat too good] (normal)
perf/compiler T6048 [stat not good enough] (optasm)
perf/compiler T783 [stat not good enough] (normal)
perf/haddock haddock.Cabal [stat not good enough] (normal)
perf/haddock haddock.base [stat not good enough] (normal)
perf/haddock haddock.compiler [stat not good enough] (normal)
}}}
So not perfect, but I'm not familiar enough with the test suite to say
whether it's good enough.
There still seem to be some weird linking issues, because when I moved my
source directory to an alternate location, I got similar shared object
warnings in gdb:
{{{
% mv ~/ghc-7.6.3-source ~/they-will-never-look-for-me-here
% cd ~/ghc-7.6.3-installed/lib/ghc-7.6.3/
% gdb ./ghc
GNU gdb 6.3.50-20050815 (Apple version gdb-1515) (Sat Jan 15 08:33:48 UTC
2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for
shared libraries .... done
warning: Could not find object file
"/Users/rampion/ghc-7.6.3-source/rts/dist/build/libHSrts_thr.a(prep_cif.o)"
- no debug information available for "../src/prep_cif.c".
warning: Could not find object file
"/Users/rampion/ghc-7.6.3-source/rts/dist/build/libHSrts_thr.a(types.o)" -
no debug information available for "../src/types.c".
warning: Could not find object file
"/Users/rampion/ghc-7.6.3-source/rts/dist/build/libHSrts_thr.a(ffi64.o)" -
no debug information available for "../src/x86/ffi64.c".
warning: Could not find object file
"/Users/rampion/ghc-7.6.3-source/rts/dist/build/libHSrts_thr.a(darwin64.o)"
- no debug information available for
"/var/folders/E2/E2IvfJ2xE4C08q9IjJeZfE+++TI/-Tmp-//ccugdkbo.s".
(gdb)
}}}
But this turns out to be not an indicator of whether the segfaulting
behaviour will occur, as `~/ghc-7.6.3-installed/bin/ghc -e 0` still works
fine consistently.
Thanks! I'd be happy to package this build up for other Snow Leopard
users, if you think that's appropriate.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8094#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list