TInterpreter crash

Hi ROOTers,

I have a class that uses gInterpteter, everything is fine if I run code as macro. However when I build code I get segfault. I also tried something like this:

int main(){
  std::cout << gInterpreter << std::endl;
  std::cout << gInterpreter->ClassName() << std::endl;
  std::cout << gInterpreter->GetCurrentMacroName() << std::endl;
}



But code again crashes. The same happen when I just open root and type: gInterpreter->GetCurrentMacroName().
Is there a way to check if I can safely call this method?

ROOT Version: 6.30.08
Platform: Not Provided
Compiler: Not Provided


Thanks for the report.
A fix for the crash is here: [core] fix accessing empty vector by ferdymercury · Pull Request #20221 · root-project/root · GitHub