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

Fixed reference counting for exception objects in Py.With#1062

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 1 commit intopythonnet:masterfromlosttech:bugs/1050
Feb 26, 2020

Conversation

lostmsu
Copy link
Member

@lostmsulostmsu commentedFeb 26, 2020
edited
Loading

What does this implement/fix? Explain your changes.

PyObjects constructed for__exit__ method referenced existing Python objects without increasing refcount appropriately, which could lead to double-free.

Does this close any currently open issues?

Not sure, but this issue might have been one of the possible causes for#1050

PyObject(s) constructed for __exit__ method referenced existing Python objects without increasing refcount appropriately, which could lead to double-free.
@codecov-io
Copy link

codecov-io commentedFeb 26, 2020
edited
Loading

Codecov Report

Merging#1062 intomaster willincrease coverage by0.33%.
The diff coverage isn/a.

Impacted file tree graph

@@            Coverage Diff             @@##           master    #1062      +/-   ##==========================================+ Coverage   86.42%   86.75%   +0.33%==========================================  Files           1        1                Lines         302      302              ==========================================+ Hits          261      262       +1+ Misses         41       40       -1
FlagCoverage Δ
#setup_linux65.56% <ø> (+0.66%)⬆️
#setup_windows71.52% <ø> (ø)⬆️
Impacted FilesCoverage Δ
setup.py86.75% <0%> (+0.33%)⬆️

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update22735f8...caaa798. Read thecomment docs.

@alexhelms
Copy link
Contributor

I just wanted to comment on here to tell you that I ran into this issue and this PR was the root cause. We had some python exceptions being fired within aPy.With and it was causing memory exceptions and blowing up.

Thanks!

AlexCatarino pushed a commit to QuantConnect/pythonnet that referenced this pull requestJun 29, 2020
…1062)PyObject(s) constructed for __exit__ method referenced existing Python objects without increasing refcount appropriately, which could lead to double-free.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@filmorfilmorfilmor approved these changes

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

Successfully merging this pull request may close these issues.

4 participants
@lostmsu@codecov-io@alexhelms@filmor

[8]ページ先頭

©2009-2025 Movatter.jp