Skip to content
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

ensure C++ does not free the DebugRegistry while we are using it #49139

Merged
merged 1 commit into from
Mar 24, 2023

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Mar 24, 2023

The C++ destructor design tend to cause lifetime problems at exit, so we use new to implicitly leak the object. Seen to possibly cause problems with printing a backtrace after the worker was killed in https://buildkite.com/julialang/julia-master/builds/22082#018701b4-6c16-4559-afdd-e33ece5a6a00. Addresses a regressions caused by 428d242, noted by @pchintalapudi.

The C++ destructor design tend to cause lifetime problems at exit, so we
use `new` to implicitly leak the object.
@vtjnash vtjnash added regression Regression in behavior compared to a previous version backport 1.9 Change should be backported to release-1.9 labels Mar 24, 2023
@pchintalapudi pchintalapudi added the merge me PR is reviewed. Merge when all tests are passing label Mar 24, 2023
@pchintalapudi pchintalapudi merged commit a922b59 into master Mar 24, 2023
@pchintalapudi pchintalapudi deleted the jn/DebugRegistry-nofree branch March 24, 2023 21:24
@pchintalapudi pchintalapudi removed the merge me PR is reviewed. Merge when all tests are passing label Mar 24, 2023
@KristofferC KristofferC mentioned this pull request Mar 30, 2023
52 tasks
@KristofferC
Copy link
Member

Is this applicable to 1.9?

@KristofferC KristofferC mentioned this pull request Apr 9, 2023
26 tasks
@vchuravy
Copy link
Member

Is this applicable to 1.9?

No. In 1.9 this is owned by jl_ExecutionEngine

@vchuravy vchuravy removed the backport 1.9 Change should be backported to release-1.9 label Apr 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression Regression in behavior compared to a previous version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants