Skip to content

RoiDescriptor: fix temporary string in range_error exception

Frank Winklmeier requested to merge fwinkl/athena:fwinkl_20230405T185351 into 23.0

The RoiUtil::range_error exception needs to make a copy of the "what" message. Otherwise we can end-up with an invalid pointer to a temporary string as seen on ATR-27248:

HLTSeeding                              1...   0   FATAL  Standard std::exception is caught  [448285,3157456,t:1680545483.388175720,l:42,b:1613]
HLTSeeding                              1...   0   ERROR @+� [448285,3157456,t:1680545483.388175720,l:42,b:1613] 

A bit surprising we have never noticed this before.

cc @sutt

Merge request reports