-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
gc: add missing root for binding->ty field #46806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
Could we add a test for this? Edit: I'm not sure this works julia> x::Union{Int,Nothing} = 2
2
julia> GC.gc()
GC error (probable corruption) :
Allocations: 322489 (Pool: 322233; Big: 256); GC: 0
0
0x123bf4000: Root object: 0x10a984010 :: 0x119cf4420 (bits: 1)
of type Task
0x123bf4018: Root object: 0x10a9844c0 :: 0x119cf4420 (bits: 1)
of type Task
0x123bf4030: Root object: 0x10aa74010 :: 0x119cf4420 (bits: 1)
of type Task
0x123bf4048: Root object: 0x10aa7c010 :: 0x119cf4420 (bits: 1)
of type Task
0x123bf4060: Root object: 0x10a9841a0 :: 0x119cf4420 (bits: 1)
of type Task
0x123bf4078: Root object: 0x10aa78010 :: 0x119cf4420 (bits: 1)
of type Task
0x123bf4090: r-- Module (bindings) 0x119f7afe0 (bits 3) -- [0x14f9101d8, 0x14f910400)
[11046] signal (6): Abort trap: 6
in expression starting at REPL[2]:1
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 322489 (Pool: 322233; Big: 256); GC: 0
fish: Job 1, './julia' terminated by signal SIGABRT (Abort) |
vtjnash
reviewed
Sep 29, 2022
a05f99b
to
0a2f35f
Compare
This still fails for me. |
37 tasks
0a2f35f
to
75f4415
Compare
75f4415
to
335c004
Compare
Would be good if someone addressed #46806 (comment) to not leave it hanging. |
The test case didn't fail for me anymore. But maybe adding a test would be nice |
KristofferC
pushed a commit
that referenced
this pull request
Oct 27, 2022
Co-authored-by: Jameson Nash <vtjnash@gmail.com> (cherry picked from commit 45b96c4)
KristofferC
pushed a commit
that referenced
this pull request
Oct 28, 2022
Co-authored-by: Jameson Nash <vtjnash@gmail.com> (cherry picked from commit 45b96c4)
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.
Previously, we might observe this code segfault if the memory at
binding->ty
eventually was reused due to this missing GC root.NOTE: I opened this PR on Jameson's behalf; the branch name in #46804 broke cloning from windows, so I moved the commits to a new branch and deleted his branch.