Comment #3 on issue 361 by [email protected]: ThreadSanitizer reports  
dubious practices in V8
http://code.google.com/p/v8/issues/detail?id=361

Another one:
WARNING: Possible data race during write of size 1 at 0x835768C: {{{
    T0 (locks held: {L2}):
     #0  v8::internal::ContextSwitcher::StopPreemption() src/v8threads.cc:422
     #1  v8::Locker::StopPreemption() src/v8threads.cc:120
     #2  TestPreemption() test/cctest/test-threads.cc:48
     #3  CcTest::Run() test/cctest/cctest.h:57
     #4  main test/cctest/cctest.cc:96
   Concurrent read(s) happened at (OR AFTER) these points:
    T1 (locks held: {}):
     #0  v8::internal::ContextSwitcher::Run() src/v8threads.cc:434
     #1  v8::internal::ThreadEntry(void*) src/platform-linux.cc:429
     #2  ThreadSanitizerStartThread ts_valgrind_intercepts.c:504
   Location 0x835768C is 12 bytes inside a block starting at 0x8357680 of  
size 20
allocated by T0 from heap:
     #0  malloc ts_valgrind_intercepts.c:318
     #1  operator new(unsigned int) /usr/lib32/libstdc++.so.6.0.9
     #2  v8::internal::ContextSwitcher::StartPreemption(int)  
src/v8threads.cc:405
     #3  v8::Locker::StartPreemption(int) src/v8threads.cc:115
     #4  TestPreemption() test/cctest/test-threads.cc:41
     #5  CcTest::Run() test/cctest/cctest.h:57
     #6  main test/cctest/cctest.cc:96
   Locks involved in this report (reporting last lock sites): {L2}
    L2
     #0  pthread_mutex_lock ts_valgrind_intercepts.c:751
     #1  v8::internal::LinuxMutex::Lock() src/platform-linux.cc:495
     #2  v8::internal::ThreadManager::Lock() src/v8threads.cc:181
     #3  v8::Unlocker::~Unlocker() src/v8threads.cc:109
     #4  v8::internal::RuntimePreempt() src/execution.cc:602
     #5  v8::internal::Execution::HandleStackGuardInterrupt()  
src/execution.cc:668
     #6  v8::internal::Runtime_StackGuard(v8::internal::Arguments)  
src/runtime.cc:4832

This one is bad. This code may not work on some HW platforms:
   while (keep_going_) {
     OS::Sleep(sleep_ms_);


--
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to