root icon indicating copy to clipboard operation
root copied to clipboard

Make sure we call llvm_shutdown in the TCling destruction

Open vgvassilev opened this issue 6 months ago • 2 comments

Check duplicate issues.

  • [ ] Checked for duplicates

Description

Currently when we destroy ROOT and TCling we do not properly shut down llvm causing the llvm::ManagedStatics to not be handled properly.

Reproducer

N/A

ROOT version

master

Installation method

N/A

Operating system

all

Additional context

No response

vgvassilev avatar Jun 02 '25 14:06 vgvassilev

Just wondering where this shutdown should be here: why should this be in ROOT and not in Cling?

dpiparo avatar Jun 03 '25 06:06 dpiparo

Cling can be used as a library and we should not shut down the entire process on destroying an object from the library. Ideally this should happen in the "DestroyInterpreter" interface of TCling...

vgvassilev avatar Jun 03 '25 12:06 vgvassilev