Comment #6 on issue 361 by [email protected]: ThreadSanitizer reports dubious
practices in V8
http://code.google.com/p/v8/issues/detail?id=361
One more report which I haven't seen before.
Looks like the profiling thread touches Logger::current_state_ and other
objects w/o synchronization.
WARNING: Possible data race during write of size 4 at 0x86F7F94: {{{
T0 (locks held: {}):
#0 v8::internal::VMState::~VMState() /home/kcc/v8/v8/src/log-inl.h:99
#1 v8::internal::Invoke /home/kcc/v8/v8/src/execution.cc:115
#2 v8::internal::Execution::Call /home/kcc/v8/v8/src/execution.cc:124
#3 v8::internal::Genesis::CompileScriptCached
/home/kcc/v8/v8/src/bootstrapper.cc:844
#4 v8::internal::Genesis::CompileNative
/home/kcc/v8/v8/src/bootstrapper.cc:795
#5 v8::internal::Genesis::CompileBuiltin
/home/kcc/v8/v8/src/bootstrapper.cc:785
#6 v8::internal::Genesis::InstallNatives
/home/kcc/v8/v8/src/bootstrapper.cc:1064
#7 v8::internal::Genesis::Genesis
/home/kcc/v8/v8/src/bootstrapper.cc:1472
#8 v8::internal::Bootstrapper::CreateEnvironment
/home/kcc/v8/v8/src/bootstrapper.cc:279
#9 v8::Context::New /home/kcc/v8/v8/src/api.cc:2950
#10 /home/kcc/v8/v8/test/cctest/test-log.cc:178
#11 TestLogCallbacks /home/kcc/v8/v8/test/cctest/test-log.cc:533
Concurrent read these points:
T1 :
#0 v8::internal::Logger::state /home/kcc/v8/v8/src/log.h:264
#1 v8::internal::ProfilerSignalHandler
/home/kcc/v8/v8/src/platform-linux.cc:732
#2 sem_wait@@GLIBC_2.1 /lib32/libpthread-2.7.so
#3 sem_w...@* /tmp/tsan/drt/tsan/ts_valgrind_intercepts.c:1727
#4 v8::internal::LinuxSemaphore::Wait
/home/kcc/v8/v8/src/platform-linux.cc:612
#5 v8::internal::Profiler::Remove /home/kcc/v8/v8/src/log.cc:101
#6 v8::internal::Profiler::Run /home/kcc/v8/v8/src/log.cc:314
#7 v8::internal::ThreadEntry /home/kcc/v8/v8/src/platform-linux.cc:512
#8 ThreadSanitizerStartThread
/tmp/tsan/drt/tsan/ts_valgrind_intercepts.c:553
Address 0x86F7F94 is 0 bytes inside data
symbol "_ZN2v88internal6Logger14current_state_E"
}}}
--
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