Skip to content

[cppyy] fix potential double deletion of memory in CPPMethod#7695

Merged
linev merged 1 commit intoroot-project:masterfrom
linev:fix_cppyy
Apr 16, 2021
Merged

[cppyy] fix potential double deletion of memory in CPPMethod#7695
linev merged 1 commit intoroot-project:masterfrom
linev:fix_cppyy

Conversation

@linev
Copy link
Copy Markdown
Member

@linev linev commented Mar 25, 2021

After use of assign operator some fields can be destroyed twice

Fixes #7692

Indirectly discovered via DeepCode

After use of asign operator some fields can be destroyed twice
@phsft-bot
Copy link
Copy Markdown

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-fedora30/cxx14, ROOT-fedora31/noimt, ROOT-ubuntu16/nortcxxmod, mac1014/python3, mac11.0/cxx17, windows10/cxx14
How to customize builds

@linev linev linked an issue Mar 25, 2021 that may be closed by this pull request
@linev linev changed the title [cppyy] fix potential double-memory leak in CPPMethod [cppyy] fix potential double deletion of memory in CPPMethod Mar 25, 2021
@linev
Copy link
Copy Markdown
Member Author

linev commented Mar 25, 2021

Same problem exists in pyroot_lagcy/src/TMethodHolder.cxx,
seems to be same problem was inherited into new code

@phsft-bot
Copy link
Copy Markdown

Build failed on mac11.0/cxx17.
Running on macphsft23.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

Copy link
Copy Markdown
Contributor

@etejedor etejedor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@linev linev merged commit 27a9e57 into root-project:master Apr 16, 2021
@linev linev deleted the fix_cppyy branch April 16, 2021 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Potential double-deletion in CPyCppyy::CPPMethod::Destroy_

3 participants