SIGSEGV in yieldCapability ()

Hi. What would be the reason for Program received signal SIGSEGV, Segmentation fault. 0x00000000006071de in yieldCapability () (gdb) where #0 0x00000000006071de in yieldCapability () #1 0x000000000060bc6b in schedule () #2 0x0000000000609294 in real_main () #3 0x000000000060938d in hs_main () #4 0x00007ffff6b07eff in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6 #5 0x000000000040a589 in _start () this happens in a program compiled with ghc-7.0.3 (and also, with ghc-6.12.3), running with +RTS -N on i7-920, ubuntu 11 (kernel 2.6.38-8) Could this simply mean "heap exhausted"? Thanks - J.W.

On Sun, May 22, 2011 at 9:31 AM, Johannes Waldmann
Hi. What would be the reason for
Program received signal SIGSEGV, Segmentation fault.
Looks like a bad bug, we shouldn't expect segmentation faults on the runtime system. I think you should file a bug report with a test case on GHC. Cheers =), -- Felipe.

I think you should file a bug report with a test case on GHC.
I am willing to work on this, but I thought I'd go fishing for some advice first. My program uses: forkIO, STM, and FFI. I think that "heap exhausted" sometimes gets reported as "evacuate: strange closure", (cf. http://hackage.haskell.org/trac/ghc/ticket/5085 ) and yieldCapability() might be another instance. Thanks - J.W.

On Sun, May 22, 2011 at 15:03, Johannes Waldmann
I think you should file a bug report with a test case on GHC.
I am willing to work on this, but I thought I'd go fishing for some advice first. My program uses: forkIO, STM, and FFI.
I've seen something like this, using only forkIO, so I'd start looking there. I was trying to create a reduced test case, but haven't reported a bug yet.
I think that "heap exhausted" sometimes gets reported as "evacuate: strange closure", (cf. http://hackage.haskell.org/trac/ghc/ticket/5085 ) and yieldCapability() might be another instance.
Thank you, we just had this message, and I had no idea what it was. Erik

On 23/05/2011 09:55, Erik Hesselink wrote:
On Sun, May 22, 2011 at 15:03, Johannes Waldmann
wrote: I think you should file a bug report with a test case on GHC.
I am willing to work on this, but I thought I'd go fishing for some advice first. My program uses: forkIO, STM, and FFI.
I've seen something like this, using only forkIO, so I'd start looking there. I was trying to create a reduced test case, but haven't reported a bug yet.
I think that "heap exhausted" sometimes gets reported as "evacuate: strange closure", (cf. http://hackage.haskell.org/trac/ghc/ticket/5085 ) and yieldCapability() might be another instance.
Thank you, we just had this message, and I had no idea what it was.
Please report all crashes like this as bugs: http://hackage.haskell.org/trac/ghc/wiki/ReportABug In particular, the RTS should never trigger a crash in a heap exhausted situation - if some documentation somewhere gives the wrong impression about that, please let me know. I will need a reproducible test case to track down the bug, though. Cheers, Simon
participants (4)
-
Erik Hesselink
-
Felipe Almeida Lessa
-
Johannes Waldmann
-
Simon Marlow