-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fix use-after-free bugs in debuginfo #45016
Conversation
@@ -181,212 +438,11 @@ static void create_PRUNTIME_FUNCTION(uint8_t *Code, size_t Size, StringRef fnnam | |||
} | |||
#endif | |||
|
|||
struct revcomp { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We now use std::greater<size_t>
instead of revcomp
@pchintalapudi Does this fix #44562? |
I'm hoping for that, but I want to get results for macos before confirming that. |
Once you have the builders and testers passing, we can check the Buildkite CI logs for both the macOS x86_64 tester and the macOS Apple Silicon tester, and see if there are still any segfaults in the logs. |
Looks like the Windows builders are failing with: |
I'll tackle that and the analyzegc failures once the mac tester finishes, just to see if it works. |
You'll find the macOS x86_64 tester in the The macOS Apple Silicon tester is in the |
Macos tests look successful for 07eb7bf |
macOS x86_64 also looks segfault free on f0b06f8: https://buildkite.com/julialang/julia-master/builds/11193#aa5af690-dc6a-4023-a4f6-0e1115f2397c |
Looks like Mac+aarch64 is also clean: https://buildkite.com/julialang/julia-master/builds/11193#7749e3f8-a7fd-4f3f-bed1-30a0496e6540 |
This seems a good approach. Thanks! |
@vtjnash Do you have suggestions on how to fix the analyzegc failures? I tried to mark |
|
Now that the analyzegc check is passing, I think we can merge this into master if tests pass and no segfaults are observed on macos? |
@DilumAluthge do we need to rerun the windows testers? I haven't seen these kinds of errors before. |
Let me try rebooting the Windows VMs. |
@vtjnash If CI passes, is this good to merge from your point of view? |
yep, seemed to be good to go |
Doesn't this need a backport? Otherwise we'll still have #44562 on 1.8. (cc @KristofferC) |
It would be great to get this backported. |
Co-authored-by: Dilum Aluthge <[email protected]>
Co-authored-by: Dilum Aluthge <[email protected]>
Fixes #44562
Fixes #44947
This is achieved by making the debug info global variables a part of the JIT engine, which should leak their memory with our JIT rather than being destroyed on process exit.
We also do the following as part of the move: