Skip to content

CallerCc[123] fail in ghci-ext-prof way with -debug RTS

Currently the CallerCc1, CallerCc2, and CallerCc3 tests fail with an assertion when run in the ghci-ext-prof way when iserv is built with the -debug RTS:

$ _build/stage1/bin/ghc --interactive -prof -fexternal-interpreter testsuite/tests/profiling/should_run/caller-cc/Main.hs
GHCi, version 9.3.20220307: https://www.haskell.org/ghc/  :? for help
ghc-iserv-prof: internal error: ASSERTION FAILED: file rts/CheckUnload.c, line 345

Stack trace:
                 0x2213934    set_initial_registers (rts/Libdw.c:294.57)
            0x7ff706298b08    dwfl_thread_getframes (/nix/store/z5mr2iqwvh8lpngrnxnqdvxw1dpw7ap7-elfutils-0.186/lib/libdw-0.186.so)
            0x7ff70629863b    get_one_thread_cb (/nix/store/z5mr2iqwvh8lpngrnxnqdvxw1dpw7ap7-elfutils-0.186/lib/libdw-0.186.so)
            0x7ff706298972    dwfl_getthreads (/nix/store/z5mr2iqwvh8lpngrnxnqdvxw1dpw7ap7-elfutils-0.186/lib/libdw-0.186.so)
            0x7ff706298eb7    dwfl_getthread_frames (/nix/store/z5mr2iqwvh8lpngrnxnqdvxw1dpw7ap7-elfutils-0.186/lib/libdw-0.186.so)
                 0x221381e    libdwGetBacktrace (rts/Libdw.c:263.15)
                 0x21bfc92    rtsFatalInternalErrorFn (rts/RtsMessages.c:175.30)
                 0x21bf851    barf (rts/RtsMessages.c:49.4)
                 0x21bf8b4    errorBelch (rts/RtsMessages.c:68.5)
                 0x220fcbd    findSectionIdx (rts/CheckUnload.c:347.5)
                 0x220fdfa    findOC (rts/CheckUnload.c:373.74)
                 0x220ffbc    markObjectCode (rts/CheckUnload.c:430.5)
                 0x21e3cd9    markCAFs (rts/sm/GCAux.c:156.9)
                 0x21e0ab4    GarbageCollect (rts/sm/GC.c:522.3)
                 0x21c5ce7    scheduleDoGC (rts/Schedule.c:1861.5)
                 0x21c5238    schedule (rts/Schedule.c:215.7)
                 0x21c672c    scheduleWaitThread (rts/Schedule.c:2627.5)
                 0x221849f    rts_evalLazyIO (rts/RtsAPI.c:567.5)
                 0x21bf6fd    hs_main (rts/RtsMain.c:73.9)
                  0xbb1583    (null) (/home/ben/ghc/ghc-compare-1/_build/stage1/lib/bin/ghc-iserv-prof)
            0x7ff706318790    __libc_start_main (/nix/store/4s21k8k7p1mfik0b33r2spq5hq7774k1-glibc-2.33-108/lib/libc-2.33.so)
                  0xbb30ba    _start (../sysdeps/x86_64/start.S:122.0)

    (GHC version 9.3.20220307 for x86_64_unknown_linux)
    Please report this as a GHC bug:  https://www.haskell.org/ghc/reportabug
ghc: ghc-iserv terminated (-6)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information