ghc-9.2.6 segfaults in initCapability()
Summary
(gdb) bt
#0 0x00007fe955f81bbf in initCapability (cap=0xe569d0, i=2) at rts/Capability.c:275
#1 0x00007fe955f820ac in moreCapabilities (from=1, to=to@entry=8) at rts/Capability.c:444
#2 0x00007fe955f97476 in setNumCapabilities (new_n_capabilities=8) at rts/Schedule.c:2308
#3 0x00007fe959a7f283 in ?? () from /usr/lib64/ghc-9.2.6/bin/../ghc-9.2.6/libHSghc-9.2.6-ghc9.2.6.so
#4 0x00000042104158b0 in ?? ()
#5 0x0000000000000000 in ?? ()
70999283 looks sus, 9.2.5 behaves well. @bgamari
Steps to reproduce
Gentoo's build system does it like that:
/usr/bin/ghc -hide-all-packages -package Cabal -package base -package binary -package bytestring -package containers -package deepseq -package directory -package exceptions -package filepath -package haskeline -package mtl -package parsec -package pretty -package process -package stm -package template-haskell -package terminfo -package text -package time -package transformers -package unix -package xhtml --make /var/tmp/portage/dev-haskell/text-1.2.5.0/work/text-1.2.5.0/Setup.lhs -j9 +RTS -A256M -qb0 -RTS -threaded -dynamic -o setup
Environment
- GHC version used: 9.2.6
Optional:
- Operating System: Gentoo GNU/Linux
- System Architecture: amd64
Edited by L29Ah