[LLVMbugs] [Bug 5510] New: Timer class is not thread safe.
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Nov 16 07:25:13 PST 2009
http://llvm.org/bugs/show_bug.cgi?id=5510
Summary: Timer class is not thread safe.
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Support Libraries
AssignedTo: unassignedbugs at nondot.org
ReportedBy: hans at hanshq.net
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=3824)
--> (http://llvm.org/bugs/attachment.cgi?id=3824)
Test program
Using different instances of Timer in different threads is not safe.
When running the attached C++ code on a multiprocessor machine I get the
following error:
a.out: Timer.cpp:172: void llvm::Timer::stopTimer(): Assertion `I !=
ActiveTimers->end() && "stop but no startTimer?"' failed.
Aborted
(compiled with g++ TimerTest.cpp -pthread `./llvm-config --cxxflags --ldflags
--libs`)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list