Skip to content

Thread problem in TEnum::GetEnum #18792

Closed
@Dr15Jones

Description

@Dr15Jones

Check duplicate issues.

  • Checked for duplicates

Description

The following line must be within a R__WRITE_LOCKGUARD(ROOT::gCoreMutex);

TInterpreter::SuspendAutoParsing autoParseRaii(gInterpreter, suspendAutoParse);

Multiple threads could be within a read-lock and ask for the value which is being modified without any synchronization.

Reproducer

Found by visual inspection.

ROOT version

master branch

Installation method

source

Operating system

all

Additional context

This was found while investigating cms-sw/cmssw#48106

Metadata

Metadata

Assignees

Type

Projects

Status

Done

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions