Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

On shutdown from Python release all slot holders#1712

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
filmor merged 3 commits intopythonnet:masterfromlosttech:bugs/ShutdownSegFault
Apr 8, 2022

Conversation

lostmsu
Copy link
Member

What does this implement/fix? Explain your changes.

Before this fix slots of reflected types were not released to Python defaults leaving Python referencing managed code after managed runtime has already shut down.

In the original bug, the runtime in question is Mono aftermono_jit_cleanup

Does this close any currently open issues?

#1683

@lostmsulostmsu requested a review fromfilmorMarch 4, 2022 18:13
@lostmsu
Copy link
MemberAuthor

This is the old slots holder magic created by Amos. I think it is better, that skipping critical finalizers.

This should makepythonnet/clr-loader#26 irrelevant.

@lostmsu
Copy link
MemberAuthor

Looks like this does not work. I am going to investigate further.

…anager is terminated and Python is shutting down
@lostmsu
Copy link
MemberAuthor

@filmor yeet!

@lostmsulostmsu added this to the3.0.0 milestoneApr 7, 2022
@filmor
Copy link
Member

Nice :)

Does it still work if you pull in39db9f4?

@lostmsu
Copy link
MemberAuthor

@filmor looks like it

@filmorfilmor merged commit1cf616d intopythonnet:masterApr 8, 2022
@lostmsulostmsu deleted the bugs/ShutdownSegFault branchApril 8, 2022 16:56
lostmsu added a commit to losttech/pythonnet that referenced this pull requestMay 2, 2022
…SegFault"This reverts commit1cf616d, reversingchanges made to0e57cdd.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@filmorfilmorAwaiting requested review from filmor

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
3.0.0
Development

Successfully merging this pull request may close these issues.

2 participants
@lostmsu@filmor

[8]ページ先頭

©2009-2025 Movatter.jp