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

stack-use-after-scope in treetreeplayertestUnit #10013

Closed
hahnjo opened this issue Mar 2, 2022 · 0 comments · Fixed by #10031
Closed

stack-use-after-scope in treetreeplayertestUnit #10013

hahnjo opened this issue Mar 2, 2022 · 0 comments · Fixed by #10031

Comments

@hahnjo
Copy link
Member

hahnjo commented Mar 2, 2022

After #10005 is merged, the test gtest-tree-treeplayer-test-treetreeplayertestUnit will fail due to a stack-use-after-scope:

434: READ of size 4 at 0x7f17de5323ac thread T0
434:     #0 0x7f17e571e7e6 in TObject::TestBit(unsigned int) const /home/jhahnfel/ROOT/src/core/base/inc/TObject.h:187:72
434:     #1 0x7f17e571e7e6 in TTree::~TTree() /home/jhahnfel/ROOT/src/tree/tree/src/TTree.cxx:1011:23
434:     #2 0x5a626a in TTreeReaderBasic_EntryListAndEntryRange_Test::TestBody() /home/jhahnfel/ROOT/src/tree/treeplayer/test/basic.cxx:407:1

[...]

434: Address 0x7f17de5323ac is located in stack of thread T0 at offset 940 in frame
434:     #0 0x5a4b3f in TTreeReaderBasic_EntryListAndEntryRange_Test::TestBody() /home/jhahnfel/ROOT/src/tree/treeplayer/test/basic.cxx:385

Note: There may be other problems in the test after this issue is fixed. Please check locally with an instrumented build that the test passes afterwards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants