[Lldb-commits] [lldb] r270364 - Reword ThreadSanitizer message for invalid mutex reports.
Kuba Brecka via lldb-commits
lldb-commits at lists.llvm.org
Sun May 22 07:32:46 PDT 2016
Author: kuba.brecka
Date: Sun May 22 09:32:45 2016
New Revision: 270364
URL: http://llvm.org/viewvc/llvm-project?rev=270364&view=rev
Log:
Reword ThreadSanitizer message for invalid mutex reports.
Modified:
lldb/trunk/packages/Python/lldbsuite/test/functionalities/tsan/multiple/TestTsanMultiple.py
lldb/trunk/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp
Modified: lldb/trunk/packages/Python/lldbsuite/test/functionalities/tsan/multiple/TestTsanMultiple.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/tsan/multiple/TestTsanMultiple.py?rev=270364&r1=270363&r2=270364&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/tsan/multiple/TestTsanMultiple.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/tsan/multiple/TestTsanMultiple.py Sun May 22 09:32:45 2016
@@ -49,7 +49,7 @@ class TsanMultipleTestCase(TestBase):
(stop_description == "Data race detected") or
(stop_description == "Use of deallocated memory detected") or
(stop_description == "Thread leak detected") or
- (stop_description == "Use of an invalid mutex (e.g. uninitialized or destroyed) detected") or
+ (stop_description == "Use of an uninitialized or destroyed mutex detected") or
(stop_description == "Unlock of an unlocked mutex (or by a wrong thread) detected")
)
Modified: lldb/trunk/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp?rev=270364&r1=270363&r2=270364&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp (original)
+++ lldb/trunk/source/Plugins/InstrumentationRuntime/ThreadSanitizer/ThreadSanitizerRuntime.cpp Sun May 22 09:32:45 2016
@@ -465,7 +465,7 @@ ThreadSanitizerRuntime::FormatDescriptio
} else if (description == "mutex-double-lock") {
return "Double lock of a mutex";
} else if (description == "mutex-invalid-access") {
- return "Use of an invalid mutex (e.g. uninitialized or destroyed)";
+ return "Use of an uninitialized or destroyed mutex";
} else if (description == "mutex-bad-unlock") {
return "Unlock of an unlocked mutex (or by a wrong thread)";
} else if (description == "mutex-bad-read-lock") {
More information about the lldb-commits
mailing list