Skip to content

[v624] Properly handle v5 file with missing information.#7990

Merged
pcanal merged 1 commit intoroot-project:v6-24-00-patchesfrom
pcanal:v624-fix-7912-v5fileWithUnknownType
Apr 27, 2021
Merged

[v624] Properly handle v5 file with missing information.#7990
pcanal merged 1 commit intoroot-project:v6-24-00-patchesfrom
pcanal:v624-fix-7912-v5fileWithUnknownType

Conversation

@pcanal
Copy link
Copy Markdown
Member

@pcanal pcanal commented Apr 23, 2021

Fix #7912.

In this report, the v5 file has a 'map<TString, RooExpensiveObjectCache::ExpensiveObject*>'
however it is recorded as 'map<TString, ExpensiveObject*>'. However the map stored in
the file is empty and thus no information was recorded about ExpensiveObject,
consequently when the map's StreamerInfo request the TClass for the underlying pair,
it is returned nullptr (since we no longer create the TClass for a pair where one or
more of the component is unknown).

The routine FixCollectionV5 needed to be updated to handle this situation.

Fix root-project#7912.

In this report, the v5 file has a 'map<TString, RooExpensiveObjectCache::ExpensiveObject*>'
however it is recorded as 'map<TString, ExpensiveObject*>'.  However the map stored in
the file is empty and thus no information was recorded about `ExpensiveObject`,
consequently when the map's StreamerInfo request the TClass for the underlying pair,
it is returned nullptr (since we no longer create the TClass for a pair where one or
more of the component is unknown).

The routine `FixCollectionV5` needed to be updated to handle this situation.
@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

@pcanal pcanal merged commit 4343df1 into root-project:v6-24-00-patches Apr 27, 2021
@pcanal pcanal deleted the v624-fix-7912-v5fileWithUnknownType branch April 27, 2021 14:23
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.

TStreamerInfo Crash - V5 File Backward incompatibility introduced somewhere since 6.22.00

2 participants