libgap: Remove some GC hazards#35114
Merged
vbraun merged 25 commits intosagemath:developfrom Mar 26, 2023
Merged
Conversation
adjust doctests
also add a workaround for Semigroups (see comment in the code)
`make install` installs files in both paths
The 'packagemanager' package does not load without it
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #35114 +/- ##
===========================================
+ Coverage 88.57% 88.58% +0.01%
===========================================
Files 2140 2140
Lines 397273 396964 -309
===========================================
- Hits 351891 351660 -231
+ Misses 45382 45304 -78
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
|
Documentation preview for this PR is ready! 🎉 |
Contributor
Author
|
Rebased to match #35093. The CI test failure (log below) seems unrelated: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📚 Description
Trac branch
u/gh-collares/gap-gcfrom #34701, now migrated to GitHub. Currently based atop #35093; will rebase once that is merged.The rest of the description below is copied from #34701:
A refactor in #27946 introduced "unprotected" (not surrounded by
GAP_Enter/GAP_Leave)GAP_ValueGlobalVariablecalls. I believe this might be a GC hazard, because after updating to GAP 4.12.1 I started seeing aarch64 crashes on NixOS infrastructure such as:I also see cases where
capture_stdoutthrows errors such assage.libs.gap.util.GAPError: Error, Length: <list> must be a list (not the integer 255)and then crashes. Both types of errors are fixed by this ticket.Note that I am nesting
GAP_Enter/GAP_Leavecalls because I didn't remove the preexisting calls insidecapture_stdout. That's because I feared removing the innermost calls might create a new footgun (and I believe nestedGAP_Enter/GAP_Leavecalls are explicitly supported), but removing them should cause no problem. Removing them might even be preferable for performance reasons, I don't know.Fixes #34701
📝 Checklist
⌛ Dependencies