Bug 2248097
| Summary: | [s390x] "cabal update" segfaults | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jens Petersen <petersen> |
| Component: | cabal-install | Assignee: | Jens Petersen <petersen> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 40 | CC: | petersen, stefansf |
| Target Milestone: | --- | Keywords: | Regression, Reopened |
| Target Release: | --- | Flags: | petersen:
mirror+
|
| Hardware: | s390x | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | cabal-install-3.8.1.0-7.fc40 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-11-13 10:22:30 UTC | 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
2023-11-06 05:54:44 UTC
Also just confirmed same segfault happening in Koji s390x rawhide (though of course cabal-install cannot normally be used there due to no network). Segfault doesn't happen with F37 s390x though. (Just for completeness: same thing with latest cabal-3.10.2.0 just released: https://copr.fedorainfracloud.org/coprs/petersen/cabal-install/build/6601582/ ) But I confirmed in Koji that "cabal update" also segfaults (epel9 also does not segfault of course) I managed to reproduce in a s390x fedora:39 container:
strace output
newfstatat(AT_FDCWD, "/usr/bin/ghc-pkg", {st_mode=S_IFREG|0755, st_size=352, ...}, 0) = 0
getpid() = 279
openat(AT_FDCWD, "/dist-newstyle/cache/compiler279-0.tmp", O_RDWR|O_CREAT|O_EXCL|O_NOCTTY|O_NONBLOCK, 0666) = 11
newfstatat(11, "", {st_mode=S_IFREG|0644, st_size=0, ...}, AT_EMPTY_PATH) = 0
ioctl(11, TCGETS, 0x3ffc88f5988) = -1 ENOTTY (Inappropriate ioctl for device)
sched_getaffinity(0, 128, [0 1]) = 8
rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x3fbe4400000000} ---
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault (core dumped)
cabal-install-3.10.1.0-1.fc39.s390x also dumps core inside fedora:39 (gdb) bt #0 0x000000008000e008 in evacuate1 () #1 0x0000000083f3c9b6 in scavenge_loop1 () #2 0x0000000083f31cbc in scavenge_until_all_done () #3 0x0000000083f334fa in GarbageCollect () #4 0x0000000083f1dce2 in scheduleDoGC () #5 0x0000000083f1ee90 in schedule () #6 0x0000000083f1f6de in scheduleWaitThread () #7 0x0000000083f19610 in hs_main () #8 0x000000008003226e in main () Reverting F39 to https://kojipkgs.fedoraproject.org//packages/cabal-install/3.6.2.0/3.fc39/s390x/cabal-install-3.6.2.0-3.fc39.s390x.rpm stops `cabal update` from segfaulting and after that (~/.cabal/packages/ created) current cabal-install-3.8.1.0 no longer segfaults. Crash is also reproduced with fedora-toolbox:39 toolbox (provided there is no existing ~/.cabal/) (In reply to Jens Petersen from comment #6) > Reverting F39 to > https://kojipkgs.fedoraproject.org//packages/cabal-install/3.6.2.0/3.fc39/s390x/cabal-install-3.6.2.0-3.fc39.s390x.rpm > stops `cabal update` from segfaulting Perhaps more interestingly downgrading from Koji cabal-install-3.8.1.0-1.fc39.s390x to https://download.copr.fedorainfracloud.org/results/petersen/cabal-install-3.8/fedora-39-s390x/04784966-cabal-install/cabal-install-3.8.1.0-1.fc38.s390x.rpm also stops the segfault. https://kojipkgs.fedoraproject.org//packages/cabal-install/3.8.1.0/1.fc39/s390x/cabal-install-3.8.1.0-1.fc39.s390x.rpm also segfaults FEDORA-2023-d1dd535dda has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-d1dd535dda FEDORA-2023-d1dd535dda has been pushed to the Fedora 38 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-d1dd535dda` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-d1dd535dda See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2023-d1dd535dda has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report. Could you also release new packages for F39 including a rebuild of cabal? Thank you Seems I didn't push the f39 build into the updates system, ugh FEDORA-2024-88c617181a has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-88c617181a FEDORA-2024-88c617181a has been pushed to the Fedora 39 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-88c617181a` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-88c617181a See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2024-88c617181a (cabal-install-3.8.1.0-5.fc39 and ghc-9.4.5-137.fc39) has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report. I gave cabal a try and it still fails. Is it possible that cabal-install was still compiled with the broken GHC? $ rpm -q cabal-install cabal-install-3.8.1.0-5.fc39.s390x $ cabal update Config file path source is default config file. Config file not found: /root/.cabal/config Writing default configuration to /root/.cabal/config Segmentation fault (core dumped) Hm, it was built with ghc-compiler-9.4.5-137.fc39.s390x, which is supposed to have the fixed... https://koji.fedoraproject.org/koji/taskinfo?taskID=112716128 Just double-checking: so "/usr/bin/cabal update" segfaults for you, right? I need to check more carefully then I guess. Is it because I need to rebuild all the deps too? ;-( I seem to remember something like that: need to check my notes in gitlab. (In reply to Jens Petersen from comment #19) > Hm, it was built with ghc-compiler-9.4.5-137.fc39.s390x, > which is supposed to have the fixed... > > https://koji.fedoraproject.org/koji/taskinfo?taskID=112716128 > > Just double-checking: so "/usr/bin/cabal update" segfaults for you, right? Yes, I have tested it in a fresh container, i.e., no old/potentially broken $HOME/.cabal lingering around are whatever. As I feared: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/11662#note_536725 > (Just rebuilding the Fedora cabal-install package was insufficient alas.) Sigh I wonder if the mass-rebuild was even enough to fix this for deps in F40. Okay I rebuilt cabal-install for Rawhide and next F40, which should fix the problem there. I can confirm that cabal is working for me on rawhide and next (40). However, it is still segfaulting on 39 for me. Okay, thank you. Yeah, I didn't have time yet sorry - there has been quite a lot of fall out for the F40, and also some pending pandoc CVEs. So I need more time - but let me know if you consider this is a priority, and I can try to bump it up my to-do list. Fine for me. Just wanted to confirm that F40/Rawhide packages are good. Once F39 packages are rebuild I will give them a try, too. This message is a reminder that Fedora Linux 39 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 39 on 2024-11-26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '39'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 39 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed. Sorry, I was not able to find time to fix this for F39. I was a little surprised to see some segfault happening still in F40, though it could be unrelated perhaps See https://copr.fedorainfracloud.org/coprs/petersen/cabal-install/build/8428383/ https://download.copr.fedorainfracloud.org/results/petersen/cabal-install/fedora-40-s390x/08428383-cabal-install/ + cd cabal-install-3.14.1.0 + cabal update -w ghc-9.6 Config file path source is default config file. Config file not found: /builddir/.config/cabal/config Writing default configuration to /builddir/.config/cabal/config /var/tmp/rpm-tmp.vvK7K9: line 48: 19178 Segmentation fault (core dumped) cabal update -w ghc-9.6 (F41 built fine) |