masaori335 opened a new pull request, #9168:
URL: https://github.com/apache/trafficserver/pull/9168

   Fix below TSan report.
   ```
   WARNING: ThreadSanitizer: data race (pid=74346)
     Write of size 8 at 0x0000041330f8 by main thread (mutexes: write M0, write 
M1, write M2, write M3, write M4, write M5, write M6, write M7, write M8, write 
M9, write M10, write M11, write M12, write M13):
       #0 Thread::get_hrtime_updated() I_Thread.h:194 
(traffic_server:x86_64+0x80513a) (BuildId: 
c245d2fe2dd53a87af825d77f24750ba32000000200000000100000000000c00)
       #1 PriorityEventQueue::PriorityEventQueue() PQ-List.cc:28 
(traffic_server:x86_64+0x849536) (BuildId: 
c245d2fe2dd53a87af825d77f24750ba32000000200000000100000000000c00)
       #2 PriorityEventQueue::PriorityEventQueue() PQ-List.cc:27 
(traffic_server:x86_64+0x8495e5) (BuildId: 
c245d2fe2dd53a87af825d77f24750ba32000000200000000100000000000c00)
       #3 EThread::EThread(ThreadType, Event*) UnixEThread.cc:107 
(traffic_server:x86_64+0x84d7cb) (BuildId: 
c245d2fe2dd53a87af825d77f24750ba32000000200000000100000000000c00)
       #4 EThread::EThread(ThreadType, Event*) UnixEThread.cc:108 
(traffic_server:x86_64+0x84da71) (BuildId: 
c245d2fe2dd53a87af825d77f24750ba32000000200000000100000000000c00)
       #5 EventProcessor::spawn_thread(Continuation*, char const*, unsigned 
long) UnixEventProcessor.cc:534 (traffic_server:x86_64+0x856566) (BuildId: 
c245d2fe2dd53a87af825d77f24750ba32000000200000000100000000000c00)
       #6 NetAccept::init_accept_loop() UnixNetAccept.cc:168 
(traffic_server:x86_64+0x7dc6bc) (BuildId: 
c245d2fe2dd53a87af825d77f24750ba32000000200000000100000000000c00)
       #7 UnixNetProcessor::accept_internal(Continuation*, int, 
NetProcessor::AcceptOptions const&) UnixNetProcessor.cc:146 
(traffic_server:x86_64+0x7e61e6) (BuildId: 
c245d2fe2dd53a87af825d77f24750ba32000000200000000100000000000c00)
       #8 NetProcessor::main_accept(Continuation*, int, 
NetProcessor::AcceptOptions const&) UnixNetProcessor.cc:86 
(traffic_server:x86_64+0x7e50ee) (BuildId: 
c245d2fe2dd53a87af825d77f24750ba32000000200000000100000000000c00)
       #9 start_HttpProxyServer() HttpProxyServerMain.cc:373 
(traffic_server:x86_64+0x174fda) (BuildId: 
c245d2fe2dd53a87af825d77f24750ba32000000200000000100000000000c00)
       #10 main traffic_server.cc:2185 (traffic_server:x86_64+0xbc1b8) 
(BuildId: c245d2fe2dd53a87af825d77f24750ba32000000200000000100000000000c00)
   
     Previous write of size 8 at 0x0000041330f8 by thread T12 (mutexes: write 
M14):
       #0 Thread::get_hrtime_updated() I_Thread.h:194 
(traffic_server:x86_64+0x80513a) (BuildId: 
c245d2fe2dd53a87af825d77f24750ba32000000200000000100000000000c00)
       #1 AIOThreadInfo::aio_thread_main(AIOThreadInfo*) AIO.cc:529 
(traffic_server:x86_64+0x6292c2) (BuildId: 
c245d2fe2dd53a87af825d77f24750ba32000000200000000100000000000c00)
       #2 AIOThreadInfo::start(int, Event*) AIO.cc:244 
(traffic_server:x86_64+0x62b485) (BuildId: 
c245d2fe2dd53a87af825d77f24750ba32000000200000000100000000000c00)
       #3 Continuation::handleEvent(int, void*) I_Continuation.h:227 
(traffic_server:x86_64+0x187a0) (BuildId: 
c245d2fe2dd53a87af825d77f24750ba32000000200000000100000000000c00)
       #4 EThread::execute() UnixEThread.cc:333 
(traffic_server:x86_64+0x84f94e) (BuildId: 
c245d2fe2dd53a87af825d77f24750ba32000000200000000100000000000c00)
       #5 spawn_thread_internal(void*) Thread.cc:79 
(traffic_server:x86_64+0x84c611) (BuildId: 
c245d2fe2dd53a87af825d77f24750ba32000000200000000100000000000c00)
   
     Location is global 'Thread::cur_time' at 0x0000041330f8 
(traffic_server+0xad30f8)
   ```


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

Reply via email to