[GHC] #11978: running a profiled build of shake test suite with rts args +RTS -hb -N10 triggers SIGSEGV
GHC
ghc-devs at haskell.org
Tue Apr 26 05:16:11 UTC 2016
#11978: running a profiled build of shake test suite with rts args +RTS -hb -N10
triggers SIGSEGV
---------------------------------+----------------------------------------
Reporter: carter | Owner:
Type: bug | Status: new
Priority: highest | Milestone:
Component: Compiler | Version: 8.0.1
Resolution: | Keywords:
Operating System: MacOS X | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: #4820 | Differential Rev(s):
Wiki Page: |
---------------------------------+----------------------------------------
Comment (by erikd):
Recreated @carter's original test running `shake`'s test suite. With my
proposed fix applied, I still get a segfault.
Running under `gdb` provides the following backtrace:
{{{
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffbb7fe700 (LWP 9743)]
overwritingClosure (p=0x20010d8e0) at
includes/rts/storage/ClosureMacros.h:535
535 ((StgThunk *)(p))->payload[i] = 0;
(gdb) bt
#0 overwritingClosure (p=0x20010d8e0) at
includes/rts/storage/ClosureMacros.h:535
#1 doneWithMsgThrowTo (m=0x20010d8e0) at rts/Messages.h:25
#2 executeMessage (cap=cap at entry=0x1496740, m=0x20010d8e0) at
rts/Messages.c:104
#3 0x0000000000f47834 in scheduleProcessInbox (pcap=<optimized out>) at
rts/Schedule.c:1005
#4 scheduleFindWork (pcap=<optimized out>) at rts/Schedule.c:616
#5 schedule (initialCapability=<optimized out>,
task=task at entry=0x7fff88000910)
at rts/Schedule.c:274
#6 0x0000000000f490dc in scheduleWorker (cap=<optimized out>,
task=0x7fff88000910)
at rts/Schedule.c:2382
#7 0x00007ffff75b6454 in start_thread (arg=0x7fffbb7fe700) at
pthread_create.c:334
#8 0x00007ffff6d72eed in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:109
(gdb) print i
$1 = 910560
(gdb) print p
$2 = (StgClosure *) 0x20010d8e0
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11978#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list