chanyancheung / data-race-test

Automatically exported from code.google.com/p/data-race-test
0 stars 1 forks source link

Signal handlers crash under ThreadSanitizer/Debug build on Mac #47

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
http://build.chromium.org/buildbot/tsan/builders/buildbot-mac/builds/4297
[ RUN      ] Signals.PositiveTests_RaceInSignal
==26115== ThreadSanitizer, a data race detector
==26115== Copyright (C) 2008-2010, and GNU GPL'd, by Google Inc.
==26115== Using Valgrind-3.6.0.SVN and LibVEX; rerun with -h for copyright info
==26115== Command: unittest/bin/racecheck_unittest-darwin-x86-O1
==26115== Parent PID: 26101
==26115== 
==26115== 
==26115== used_suppression: 2 dyld tries to unlock an invalid mutex when 
adding/removing image.
==26115== used_suppression: 1 fun:*test127*
==26115== used_suppression: 1 fun:*test136*
==26115== ThreadSanitizer summary: reported 0 warning(s) (0 race(s))

ThreadSanitizer: ts_valgrind.cc:818 (void SignalIn(ThreadId, Int, Bool)): 
Assertion 'g_valgrind_threads[vg_tid].in_signal_handler == 1' failed.
==26101==    at 0x38050D45: ???
==26101==    by 0x38050F08: ???
==26101==    by 0x3803D5C2: ???
==26101==    by 0x38081C45: ???
==26101==    by 0x3808272A: ???
==26101==    by 0x3809D8A0: ???
==26101==    by 0x3809E7E0: ???
==26101==    by 0x38097588: ???

sched status:
  running_tid=1

Thread 1: status = VgTs_Runnable
==26101==    at 0x4D20E: Signals::child_handler(int) (in 
unittest/bin/racecheck_unittest-darwin-x86-O1)
==26101==    by 0x4D207: 
Signals::Signals_PositiveTests_RaceInSignal_Test::TestBody() (in 
unittest/bin/racecheck_unittest-darwin-x86-O1)
==26101==    by 0x384AF: testing::Test::Run() (in 
unittest/bin/racecheck_unittest-darwin-x86-O1)
==26101==    by 0x3F4E2: testing::internal::TestInfoImpl::Run() (in 
unittest/bin/racecheck_unittest-darwin-x86-O1)
==26101==    by 0x3F625: testing::TestCase::Run() (in 
unittest/bin/racecheck_unittest-darwin-x86-O1)
==26101==    by 0x3F933: testing::internal::UnitTestImpl::RunAllTests() (in 
unittest/bin/racecheck_unittest-darwin-x86-O1)
==26101==    by 0x3FA91: testing::UnitTest::Run() (in 
unittest/bin/racecheck_unittest-darwin-x86-O1)
==26101==    by 0x2945A: main (in unittest/bin/racecheck_unittest-darwin-x86-O1)

Original issue reported on code.google.com by timurrrr on 6 Sep 2010 at 9:20