lday0321 commented on issue #1687:
URL: 
https://github.com/apache/incubator-brpc/issues/1687#issuecomment-1024880132


   我把整个brpc库加到tsan suppression 
file(.tsan_suppression_file)里面,其他warning没有了,但是最后的那个`ERROR: ThreadSanitizer: 
SEGV on unknown address 0x000000000000`还是会报错。
   
   ```bash
   # .tsan_suppression_file
   race:brpc
   ```
   
   执行UT结果:
   ```bash
   #TSAN_OPTIONS="suppressions=/v/tsan_demo/.tsan_suppression_file" ./tsan_test 
--gtest_filter=MyTest.TSAN_Check_brpc
   Note: Google Test filter = MyTest.TSAN_Check_brpc
   [==========] Running 1 test from 1 test suite.
   [----------] Global test environment set-up.
   [----------] 1 test from MyTest
   [ RUN      ] MyTest.TSAN_Check_brpc
   WARNING: Logging before InitGoogleLogging() is written to STDERR
   I0129 17:52:53.699350  9388 tsan_test.cc:24] Hello, TSAN brpc!
   I0129 17:52:53.865265  9388 server.cpp:1046] Server[] is serving on 
port=12345.
   I0129 17:52:53.865690  9388 server.cpp:1049] Check out 
http://i39f13438.sqa.eu95:12345 in web browser.
   I0129 17:52:53.865866  9388 tsan_test.cc:31] Hello, before sleep
   LLVMSymbolizer: error reading file: No such file or directory
   I0129 17:53:03.865993  9388 tsan_test.cc:33] Hello, before stop
   I0129 17:53:03.866055  9388 server.cpp:1101] Server[] is going to quit
   I0129 17:53:03.867576  9388 tsan_test.cc:35] Hello, before join
   ThreadSanitizer:DEADLYSIGNAL
   ==9388==ERROR: ThreadSanitizer: SEGV on unknown address 0x000000000000 (pc 
0x7f31a05d23de bp 0x000000000000 sp 0x7f31761789e8 T9444)
   ==9388==The signal is caused by a WRITE memory access.
   ==9388==Hint: address points to the zero page.
       #0 __sanitizer::internal_memcpy(void*, void const*, unsigned long) 
<null> (tsan_test+0x1933dd)
       #1 __tsan::VarSizeStackTrace::Init(unsigned long const*, unsigned long, 
unsigned long) <null> (tsan_test+0x227933)
       #2 __tsan::ReportRace(__tsan::ThreadState*) <null> (tsan_test+0x2259fb)
       #3 <null> <null> (tsan_test+0x22a7fd)
       #4 __tsan_write4 <null> (tsan_test+0x21a53c)
       #5 bthread::TaskGroup::task_runner(long) 
/v/brpc/incubator-brpc/src/bthread/task_group.cpp (tsan_test+0x313e99)
       #6 bthread_make_fcontext <null> (tsan_test+0x2efe50)
   
   ThreadSanitizer can not provide additional info.
   SUMMARY: ThreadSanitizer: SEGV (/v/tsan_demo/build_tsan/tsan_test+0x1933dd) 
in __sanitizer::internal_memcpy(void*, void const*, unsigned long)
   ==9388==ABORTING
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to