Comment #4 on issue 361 by [email protected]: ThreadSanitizer reports
dubious practices in V8
http://code.google.com/p/v8/issues/detail?id=361
This one is strange:
WARNING: Possible data race during write of size 4 at 0x831A028: {{{
T1 (locks held: {}):
#0
v8::internal::Debug::set_debugger_entry(v8::internal::EnterDebugger*)
src/debug.h:292
#1 v8::internal::EnterDebugger::EnterDebugger() src/debug.h:713
#2
v8::internal::Debugger::OnAfterCompile(v8::internal::Handle<v8::internal::Script>,
v8::internal::Handle<v8::internal::JSFunction>) src/debug.cc:1990
#3 v8::internal::MakeFunction(bool, bool,
v8::internal::Compiler::ValidationState,
v8::internal::Handle<v8::internal::Script>,
v8::internal::Handle<v8::internal::Context>, v8::Extension*,
v8::internal::ScriptDataImpl*) src/compiler.cc:243
#4
v8::internal::Compiler::CompileEval(v8::internal::Handle<v8::internal::String>,
v8::internal::Handle<v8::internal::Context>, bool,
v8::internal::Compiler::ValidationState) src/compiler.cc:346
#5 v8::internal::Runtime_CompileString(v8::internal::Arguments)
src/runtime.cc:5078
#6 ???
#7 ???
#8 ???
#9 ???
#10 ???
#11 ???
Concurrent read(s) happened at (OR AFTER) these points:
T2 (locks held: {}):
#0 v8::internal::Debug::InDebugger() src/debug.h:221
#1
v8::internal::Debugger::ProcessCommand(v8::internal::Vector<unsigned short
const>, v8::Debug::ClientData*) src/debug.cc:2428
#2 v8::Debug::SendCommand(unsigned short const*, int,
v8::Debug::ClientData*)
src/api.cc:3659
#3 DebuggerThread::Run() test/cctest/test-debug.cc:3920
#4 v8::internal::ThreadEntry(void*) src/platform-linux.cc:429
#5 ThreadSanitizerStartThread ts_valgrind_intercepts.c:504
Address 0x831A028 is 40 bytes inside data symbol
"_ZN2v88internal5Debug13thread_local_E"
}}}
Two threads are accessing a static object called thread_local_, which is
NOT thread-
local
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---