TString Crashes Python Builtin Set

It’s a pretty rare thing to try to do, but probably it should not crash this hard to put a TString into a python set:

jfcaron@jfcaron-dell:~/NEWS-G/RMTL Test 1/Current Data$ python
Python 2.7.15+ (default, Oct  7 2019, 17:39:04) 
[GCC 7.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
>>> ROOT.gROOT.GetVersion()
'6.18/02'
>>> ts = ROOT.TString("foo")
>>> s = set(ts)
Error in <TString::AssertElement>: out of bounds: i = 4, Length = 3
Error in <TString::AssertElement>: out of bounds: i = 5, Length = 3
Error in <TString::AssertElement>: out of bounds: i = 6, Length = 3
Error in <TString::AssertElement>: out of bounds: i = 7, Length = 3
Error in <TString::AssertElement>: out of bounds: i = 8, Length = 3
...

ROOT Version:‘6.18/02’
Platform: Ubuntu MATE
_Python Version: Python 2.7.15+ from Ubuntu repositories

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.