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
Reading old files containing std::auto_ptr<gen::PdfInfo>
#43422
Comments
assign core |
New categories assigned: core @Dr15Jones,@makortel,@smuzaffar you have been requested to review this Pull request/Issue and eventually sign? Thanks |
A new Issue was created by @makortel Matti Kortelainen. @makortel, @Dr15Jones, @rappoccio, @antoniovilela, @sextonkennedy, @smuzaffar can you please review it and eventually sign/assign? Thanks. cms-bot commands are listed here |
@cms-sw/generators-l2 @cms-sw/xpog-l2 Could you confirm if The PR test failures in #43405 (comment) occurred in
|
type root |
extremely likely, until we do a full Run2 reprocessing and MC (reconstruction from RAW); i.e not any time soon |
Thanks @vlimant, this is pretty much what I would have guessed (but wanted to make sure). |
@pcanal We would need an ability to read an old file, and evolve |
For better (or worse, but better in this case), the read rule does not check the type listed in the rules against the incoming class, so all you need is:
and
With this style, you need to make 100% sure that the layout of Alternatively you can have a class name |
Thanks @pcanal.
What would happen if the layout would not be exactly the same? Would we get an error, or would data be misinterpreted silently? |
Unfortunately the data would be (possibly) interpreted incorrectly .. silently (i.e. The memory will be allocated and set as described by the |
Unfortunately, using a different class name (i.e.
and the job terminates with the exception
Running in gdb I find the exception comes from
|
Using
When I had |
@cms-sw/xpog-l2 @cms-sw/generators-l2 Given the discovery that even the present IO rule to convert the |
10.6 AOD/AODSIM has not been used as input to PAT/MINI => NANO workflow in recent releases indeed ; although this is the general plan we target (instead of just redoing NANO on top of 10.6 MINI) |
assign xpog |
assign generators |
New categories assigned: generators @alberto-sanchez,@bbilin,@GurpreetSinghChahal,@mkirsano,@menglu21,@SiewYan you have been requested to review this Pull request/Issue and eventually sign? Thanks |
Thanks @vlimant. If the Then, we need ROOT team to fix #43923, and give us further guidance on how to remove the explicit use of |
PR #43405 reminded us about the iorules in
SimDataFormats/GeneratorProducts/src/classes_def.xml
to read instd::auto_ptr<gen::PdfInfo>
from files predating CMSSW_11_0_0. Thestd::auto_ptr
was removed in C++17, although the libstdc++ still provides the implementation for backwards compatibility (link) while issuing a deprecation warning. We should nevertheless figure out a way to not have to usestd::auto_ptr
in the dictionaires (e.g. if we would have to use a standard library withoutstd::auto_ptr
some day).For reference, here are pointers to various discussions from the time the iorules to convert the
std::auto_ptr<gen::PdfInfo>
tostd::unique_ptr<gen::PdfInfo>
were introducedThe text was updated successfully, but these errors were encountered: