| CARVIEW |
Select Language
HTTP/2 301
server: nginx
date: Fri, 16 Jan 2026 11:59:29 GMT
content-type: text/html
content-length: 115
location: https://gitlab.haskell.org/ghc/ghc/-/issues/19417
cache-control: no-cache
nel: {"max_age": 0}
x-gitlab-meta: {"correlation_id":"01KF3ASGYF90ZR3V2T36QM9KJY","version":"1"}
x-request-id: 01KF3ASGYF90ZR3V2T36QM9KJY
x-runtime: 0.032840
HTTP/2 200
server: nginx
date: Fri, 16 Jan 2026 11:59:30 GMT
content-type: text/html; charset=utf-8
content-length: 60233
cache-control: max-age=0, private, must-revalidate
content-security-policy:
etag: W/"0d3f6a3420af0ab09415f865dd9836c3"
nel: {"max_age": 0}
permissions-policy: interest-cohort=()
referrer-policy: strict-origin-when-cross-origin
set-cookie: _gitlab_session=ad1e2228d3c388bc311524119dfeea23; path=/; secure; HttpOnly; SameSite=None
vary: Accept
x-content-type-options: nosniff
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-gitlab-meta: {"correlation_id":"01KF3ASH88424G05E4NCBTNQ1W","version":"1"}
x-permitted-cross-domain-policies: none
x-request-id: 01KF3ASH88424G05E4NCBTNQ1W
x-runtime: 0.438063
x-ua-compatible: IE=edge
x-xss-protection: 1; mode=block
Segfault in GC in GHC 8.10.{3,4} (#19417) · Issues · Glasgow Haskell Compiler / GHC · GitLab
Skip to content
Segfault in GC in GHC 8.10.{3,4}
Summary
A bunch of segfaults:
ghc:w[92225]: segfault at 40df5c48 ip 000000000040b245 sp 00007fe3d97fca90 error 4 in ghc[400000+3715000]
ghc:w[94312]: segfault at 45131c48 ip 000000000040b245 sp 00007f68a2bfda90 error 4 in ghc[400000+3715000]
ghc:w[31098]: segfault at 40106938 ip 000000000040b3b5 sp 00007fc1557fca90 error 4 in ghc[400000+36df000]
ghc:w[42775]: segfault at 408eb9e0 ip 000000000040b3b5 sp 00007f8536bfda90 error 4 in ghc[400000+36df000]
ghc:w[44907]: segfault at 414699e0 ip 000000000040b3b5 sp 00007f01c7ffea90 error 4 in ghc[400000+36df000]
ghc:w[49393]: segfault at 40743808 ip 000000000040b3b5 sp 00007ff38bffea90 error 4 in ghc[400000+36df000]
ghc:w[62845]: segfault at 43c089e0 ip 000000000040b3b5 sp 00007f18aebfda90 error 4 in ghc[400000+36df000]
$ addr2line -e .../lib/ghc-8.10.4/bin/ghc 000000000040b3b5
.../rts/sm/Evac.c:686
$ addr2line -e .../lib/ghc-8.10.4/bin/ghc 000000000040b245
.../rts/sm/Evac.c:445
On 8.10.3 we've also saw it happen in rts/sm/Evac.c:839
Steps to reproduce
Building ghcide 0.7.3.0 (library):
runhaskell Setup configure \
# ... package db flags
--enable-debug-info \
--disable-library-stripping \
--disable-library-for-ghci \
--ghc-option=-j \
--enable-shared \
--enable-library-profiling \
runhaskell Setup build \
--verbose=2 \
--ghc-option=-Wno-deprecated-flags \
--ghc-option=-haddock \
'--ghc-options=+RTS -A128M -n4m -RTS'
The build command fails while building the main library. It does not happen every time. If I remove cabal's --enable-shared (implying GHC's -dynamic-too) it does not happen.
Environment
- GHC version used: 8.10.3 and 8.10.4. GHC is built with
DYNAMIC_GHC_PROGRAMS=NOandGhcStage2HcOpts+=-eventlog.
Optional:
- Operating System: redhat linux
- System Architecture: x86_64
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information