segfault in RTS - can anyone help me tracking this bug down?

Ömer Sinan Ağacan omeragacan at gmail.com
Fri May 30 11:37:25 UTC 2014


Hi all,

Here's an update. While playing with some parameters I managed to
produce a case where compilation still fails, but this time with an
assertion error instead of a segfault:

... snipped ...
[112 of 202] Compiling System.Posix.Types ( System/Posix/Types.hs,
dist/build/System/Posix/Types.js_p_o )
ghcjs: internal error: ASSERTION FAILED: file rts/sm/Scav.c, line 1400

    (GHC version 7.8.2 for x86_64_unknown_linux)
    Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

Program received signal SIGABRT, Aborted.
0x00007ffff687f849 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff687f849 in raise () from /lib64/libc.so.6
#1  0x00007ffff6880cd8 in abort () from /lib64/libc.so.6
#2  0x0000000004238a27 in rtsFatalInternalErrorFn (s=0x4554e60
"ASSERTION FAILED: file %s, line %u\n",
    ap=0x7fffffffbe58) at rts/RtsMessages.c:170
#3  0x000000000423865f in barf (s=0x4554e60 "ASSERTION FAILED: file
%s, line %u\n") at rts/RtsMessages.c:42
#4  0x00000000042386c2 in _assertFail (filename=0x4559fbd
"rts/sm/Scav.c", linenum=1400) at rts/RtsMessages.c:57
#5  0x00000000042565e9 in scavenge_mutable_list1 (bd=0x7fffe7402dc0,
gen=0x4d15d88) at rts/sm/Scav.c:1400
#6  0x0000000004256873 in scavenge_capability_mut_Lists1
(cap=0x4cf49c0 <MainCapability>) at rts/sm/Scav.c:1493
#7  0x000000000424d9c6 in GarbageCollect (collect_gen=0,
do_heap_census=rtsFalse, gc_type=2,
    cap=0x4cf49c0 <MainCapability>) at rts/sm/GC.c:342
#8  0x000000000423c303 in scheduleDoGC (pcap=0x7fffffffc188,
task=0x4d28ba0, force_major=rtsFalse)
    at rts/Schedule.c:1650
#9  0x000000000423ac44 in schedule (initialCapability=0x4cf49c0
<MainCapability>, task=0x4d28ba0)
    at rts/Schedule.c:553
#10 0x000000000423d296 in scheduleWaitThread (tso=0x7ffff6708d60,
ret=0x0, pcap=0x7fffffffc2b0) at rts/Schedule.c:2346
#11 0x0000000004235814 in rts_evalLazyIO (cap=0x7fffffffc2b0,
p=0x4776850, ret=0x0) at rts/RtsAPI.c:500
#12 0x00000000042384c6 in real_main () at rts/RtsMain.c:63
#13 0x00000000042385b9 in hs_main (argc=238, argv=0x7fffffffc438,
main_closure=0x4776850, rts_config=...)
    at rts/RtsMain.c:114
#14 0x0000000000408ea7 in main ()

I'm not sure if that helps but I just wanted to share in case it
helps. I'm currently trying to come up with a single file that causes
this problem.

---
Ömer Sinan Ağacan
http://osa1.net


2014-05-29 18:50 GMT+03:00 Luite Stegeman <stegeman at gmail.com>:
>
>
>
> On Thu, May 29, 2014 at 5:41 PM, Simon Marlow <marlowsd at gmail.com> wrote:
>>
>> Yeah, vagrant would be fine.
>>
>> Do you have any FFI or other strange things in GHCJS that might
>> conceivably cause this?
>
>
> Not in GHCJS itself as far as I know, but its dependency list is rather
> long, unfortunately.
>
> luite
>


More information about the ghc-devs mailing list