Bug 2329744
| Summary: | [s390x] ghc9.12/ghc9.14 performance (release) builds segfaults at runtime | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jens Petersen <petersen> |
| Component: | ghc9.14 | Assignee: | Jens Petersen <petersen> |
| Status: | ASSIGNED --- | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | petersen |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | s390x | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Jens Petersen
2024-12-01 15:23:07 UTC
Reported upstream in https://gitlab.haskell.org/ghc/ghc/-/issues/25536 For now I worked around it by building s390x with quick flavour which does not segfault. https://gitlab.haskell.org/ghc/ghc/-/issues/25541 has more details This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle. Changing version to 42. ghc-9.14 alpha2 still failing (now that it is buildable again): + rm -rf testghc + mkdir testghc + echo 'main = putStrLn "Foo"' + /builddir/build/BUILD/ghc9.14-9.14.0.20250908-build/BUILDROOT/usr/lib64/ghc-9.14.0.20250908/bin/ghc testghc/foo.hs -o testghc/foo [1 of 2] Compiling Main ( testghc/foo.hs, testghc/foo.o ) /var/tmp/rpm-tmp.5LPTer: line 56: 140327 Segmentation fault (core dumped) $GHC testghc/foo.hs -o testghc/foo error: Bad exit status from /var/tmp/rpm-tmp.5LPTer (%check) So for 9.14.1 on s390x: haddock builds with quick flavour, but seems I probably already knew this but hadn't re-enabled it. Performance ghc segfaults for -O2: + mkdir testghc + echo 'main = putStrLn "Foo"' + /builddir/build/BUILD/ghc9.14-9.14.1-build/BUILDROOT/usr/lib64/ghc-9.14.1/bin/ghc testghc/foo.hs -o testghc/foo [1 of 2] Compiling Main ( testghc/foo.hs, testghc/foo.o ) [2 of 2] Linking testghc/foo ++ testghc/foo + '[' Foo = Foo ']' + rm testghc/foo testghc/foo.hi testghc/foo.hs testghc/foo.o + echo 'main = putStrLn "Foo"' + /builddir/build/BUILD/ghc9.14-9.14.1-build/BUILDROOT/usr/lib64/ghc-9.14.1/bin/ghc testghc/foo.hs -o testghc/foo -O2 [1 of 2] Compiling Main ( testghc/foo.hs, testghc/foo.o ) /var/tmp/rpm-tmp.Eck17e: line 60: 141584 Illegal instruction (core dumped) $GHC testghc/foo.hs -o testghc/foo -O2 |