Comment #8 on issue 361 by [email protected]: ThreadSanitizer reports
dubious practices in V8
http://code.google.com/p/v8/issues/detail?id=361
There are more reports with v8::internal::ProfilerSignalHandler in stack.
E.g. this one:
==12593== WARNING: Possible data race during write of size 4 at 0x872ECC4:
{{{
==12593== T0 (locks held: {}):
==12593== #0 v8::internal::Ticker::ClearProfiler()
/home/kcc/v8/v8/src/log.cc:218
==12593== #1 v8::internal::Profiler::Disengage()
/home/kcc/v8/v8/src/log.cc:296
==12593== #2 v8::internal::Logger::TearDown()
/home/kcc/v8/v8/src/log.cc:1524
==12593== #3 (anonymous
namespace)::ScopedLoggerInitializer::~ScopedLoggerInitializer()
/home/kcc/v8/v8/test/cctest/test-log.cc:185
==12593== #4 TestIsLoggingPreserved()
/home/kcc/v8/v8/test/cctest/test-log.cc:728
==12593== #5 CcTest::Run() /home/kcc/v8/v8/test/cctest/cctest.h:59
==12593== #6 main /home/kcc/v8/v8/test/cctest/cctest.cc:96
==12593== Concurrent read(s) happened at (OR AFTER) these points:
==12593== T1 (locks held: {}):
==12593== #0 v8::internal::Ticker::Tick(v8::internal::TickSample*)
/home/kcc/v8/v8/src/log.cc:198
==12593== #1 v8::internal::ProfilerSignalHandler(int, siginfo*, void*)
/home/kcc/v8/v8/src/platform-linux.cc:766
==12593== #2 sem_wait@@GLIBC_2.1 /lib32/libpthread-2.7.so
==12593== #3 sem_w...@*
/tmp/tsan/drt/tsan/ts_valgrind_intercepts.c:1727
==12593== #4 v8::internal::LinuxSemaphore::Wait()
/home/kcc/v8/v8/src/platform-linux.cc:612
==12593== #5 v8::internal::Profiler::Remove(v8::internal::TickSample*)
/home/kcc/v8/v8/src/log.cc:101
==12593== #6 v8::internal::Profiler::Run()
/home/kcc/v8/v8/src/log.cc:314
==12593== #7 v8::internal::ThreadEntry(void*)
/home/kcc/v8/v8/src/platform-linux.cc:512
==12593== #8 ThreadSanitizerStartThread
/tmp/tsan/drt/tsan/ts_valgrind_intercepts.c:553
==12593== Location 0x872ECC4 is 20 bytes inside a block starting at
0x872ECB0 of size 24 allocated by T0 from heap:
==12593== #0 operator new(unsigned int)
/tmp/tsan/drt/tsan/ts_valgrind_intercepts.c:400
==12593== #1 v8::internal::Logger::Setup()
/home/kcc/v8/v8/src/log.cc:1480
==12593== #2 v8::internal::V8::Initialize(v8::internal::Deserializer*)
/home/kcc/v8/v8/src/v8.cc:61
==12593== #3 v8::V8::Initialize() /home/kcc/v8/v8/src/api.cc:2844
==12593== #4 v8::EnsureInitialized(char const*)
/home/kcc/v8/v8/src/api.cc:263
==12593== #5 v8::Context::New(v8::ExtensionConfiguration*,
v8::Handle<v8::ObjectTemplate>, v8::Handle<v8::Value>)
/home/kcc/v8/v8/src/api.cc:2906
==12593== #6 (anonymous
namespace)::ScopedLoggerInitializer::ScopedLoggerInitializer(bool)
/home/kcc/v8/v8/test/cctest/test-log.cc:178
==12593== #7 TestIsLoggingPreserved()
/home/kcc/v8/v8/test/cctest/test-log.cc:704
==12593== #8 CcTest::Run() /home/kcc/v8/v8/test/cctest/cctest.h:59
==12593== #9 main /home/kcc/v8/v8/test/cctest/cctest.cc:96
==12593== }}}
Full log attached.
Attachments:
tsan_v8.log.bz2 47.4 KB
--
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