-
Notifications
You must be signed in to change notification settings - Fork 4.6k
[FWCore] Fix segmentation fault in testRefInROOT::testGoodChain when using TChain #49103
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
[FWCore] Fix segmentation fault in testRefInROOT::testGoodChain when using TChain #49103
Conversation
Added a call to eventChain.LoadTree(0) before setting branch addresses.
|
cms-bot internal usage |
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-49103/46338 |
|
Please test |
|
A new Pull Request was created by @akritkbehera for master. It involves the following packages:
@Dr15Jones, @makortel, @smuzaffar can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
|
-1 Failed Tests: ClangBuild Clang BuildI found compilation warning while trying to compile with clang. Command used: See details on the summary page. |
|
REMINDER @ftenchini, @sextonkennedy, @mandrenguyen: This PR was tested with cms-sw/cmsdist#10111, please check if they should be merged together |
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-49103/46354 |
|
Pull request #49103 was updated. @Dr15Jones, @cmsbuild, @makortel, @smuzaffar can you please check and sign again. |
|
Please test |
|
+1 Size: This PR adds an extra 24KB to repository Comparison SummarySummary:
|
|
+core |
|
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @mandrenguyen, @ftenchini, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2) |
|
+1 |
PR description:
This PR fixes a segmentation fault in testRefInROOT::testGoodChain caused by calling SetBranchAddress() before the TChain had loaded its first tree.
TChain::SetBranchAddress() requires fTree to be initialized (fTreeNumber >= 0), which wasn’t the case — resulting in null TBranch* pointers and a crash at runtime.