Skip to content

[RF] RooFit crashes when ROOT is built with Clang 13 #9547

@hahnjo

Description

@hahnjo

Both on CentOS 8 Stream and Arch Linux, when compiling with Clang 13.0.0, there are a number of RooFit test failures due to crashes. Example crash when running tutorials/roofit/rf201_composite.C:

root.exe: /home/jhahnfel/ROOT/src/roofit/roofitcore/inc/RooSTLRefCountList.h:113: std::size_t RooSTLRefCountList<RooAbsArg>::size() const [T = RooAbsArg]: Assertion `_storage.size() == _refCount.size()' failed.

Backtrace

#0  0x00007ffff66c2a4f in raise () from /lib64/libc.so.6
#1  0x00007ffff6695db5 in abort () from /lib64/libc.so.6
#2  0x00007ffff6695c89 in __assert_fail_base.cold.0 () from /lib64/libc.so.6
#3  0x00007ffff66bb3a6 in __assert_fail () from /lib64/libc.so.6
#4  0x00007fffe0dea553 in RooSTLRefCountList<RooAbsArg>::size (this=0x1aa32f8)
    at /home/jhahnfel/ROOT/src/roofit/roofitcore/inc/RooSTLRefCountList.h:113
#5  RooSTLRefCountList<RooAbsArg>::findByNamePointer (this=this@entry=0x1aa32f8, item=item@entry=0x7fffffff72d0)
    at /home/jhahnfel/ROOT/src/roofit/roofitcore/inc/RooSTLRefCountList.h:153
#6  0x00007fffe0de1848 in RooAbsArg::findServer (this=0x1aa32b0, arg=...)
    at /home/jhahnfel/ROOT/src/roofit/roofitcore/inc/RooAbsArg.h:211
#7  RooAbsArg::dependsOn (this=this@entry=0x1aa32b0, testArg=..., ignoreArg=ignoreArg@entry=0x0, valueOnly=false)
    at /home/jhahnfel/ROOT/src/roofit/roofitcore/src/RooAbsArg.cxx:870
#8  0x00007fffe0de1a80 in RooAbsArg::dependsOn (this=0x1aa32b0, serverList=..., ignoreArg=0x0, valueOnly=false)
    at /home/jhahnfel/ROOT/src/roofit/roofitcore/src/RooAbsArg.cxx:847
#9  RooAbsArg::observableOverlaps (this=<optimized out>, nset=<optimized out>, testArg=...)
    at /home/jhahnfel/ROOT/src/roofit/roofitcore/src/RooAbsArg.cxx:923
#10 0x00007fffe0e6d04d in RooAddPdf::checkObservables (this=<optimized out>, nset=<optimized out>)
    at /home/jhahnfel/ROOT/src/roofit/roofitcore/src/RooAddPdf.cxx:832
#11 0x00007fffe0de178d in RooAbsArg::recursiveCheckObservables (this=0x7fffffff6bc8, nset=0x7fffffff6360)
    at /home/jhahnfel/ROOT/src/roofit/roofitcore/src/RooAbsArg.cxx:830
#12 0x00007fffe0e13ade in RooAbsGenContext::RooAbsGenContext (this=0x2934400, model=..., vars=...,
    prototype=<optimized out>, auxProto=0x0, verbose=false)
    at /home/jhahnfel/ROOT/src/roofit/roofitcore/src/RooAbsGenContext.cxx:63
#13 0x00007fffe0e5e1ce in RooAddGenContext::RooAddGenContext (this=0x2934400, model=..., vars=..., prototype=0x0,
    auxProto=0x0, verbose=false) at /home/jhahnfel/ROOT/src/roofit/roofitcore/src/RooAddGenContext.cxx:55
#14 0x00007fffe0e6e25e in RooAddPdf::genContext (this=0x7fffffff5290, vars=..., prototype=0x7ffff66c2a4f <raise+271>,
    auxProto=0x0, verbose=false) at /home/jhahnfel/ROOT/src/roofit/roofitcore/src/RooAddPdf.cxx:1055
#15 0x00007fffe0e2966c in RooAbsPdf::autoGenContext (this=0x7fffffff6bc8, vars=..., prototype=<optimized out>,
    auxProto=<optimized out>, verbose=false, autoBinned=<optimized out>, binnedTag=0x7ffff7fdb33a "")
    at /home/jhahnfel/ROOT/src/roofit/roofitcore/src/RooAbsPdf.cxx:2014
#16 0x00007fffe0e29ef4 in RooAbsPdf::generate (this=0x7fffffff6bc8, whatVars=..., nEvents=1000, verbose=false,
    autoBinned=true, binnedTag=0x7ffff7fdb33a "", expectedData=false, extended=<optimized out>)
    at /home/jhahnfel/ROOT/src/roofit/roofitcore/src/RooAbsPdf.cxx:2259
#17 0x00007ffff7fde51f in ?? ()
#18 0x0000000000000000 in ?? ()

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions