Navigation Menu

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

Pass address of iterators #6578

Merged
merged 1 commit into from Nov 24, 2014

Conversation

wmtan
Copy link
Contributor

@wmtan wmtan commented Nov 24, 2014

Bitten again by the non type safe interface of ROOT.
A ROOT6 function called next() taking two void* arguments is used by a proxy to iterate over an STL collection. The arguments should be the addresses of the begin and end iterators.
However, the ROOT6 specific conditions code was passing in the values of the iterators, rather than the addresses of the iterators.
This pull request fixes this problem, avoiding segfaults in several unit tests in CondCore packages. Four of the fixed tests actually now will pass, but most will fail later due to other problems.
Please merge this pull request as soon as convenient.

davidlt added a commit that referenced this pull request Nov 24, 2014
@davidlt davidlt merged commit 4a0dd43 into cms-sw:CMSSW_7_3_ROOT6_X Nov 24, 2014
@wmtan wmtan deleted the PassAddressOfIterators branch November 25, 2014 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants