wudisheng opened a new issue, #1931:
URL: https://github.com/apache/incubator-brpc/issues/1931

   **Describe the bug (描述bug)**
   
[`AnnotateBenignRaceSized`](https://github.com/apache/incubator-brpc/blob/80f9f2f160c168a5b139006974484ca8ee3a9ef6/src/butil/third_party/dynamic_annotations/dynamic_annotations.h#L500)
 defined in `butil/third_party/dynamic_annotations/dynamic_annotations.h` has a 
parameter `long size`, while most modern libraries declaring it as `size_t 
size` (_e.g._ `abseil-cpp`, `glog`, etc.).
   
   The mismatch causes a linking failure in TSAN mode.
   
   **To Reproduce (复现方法)**
   For example, building a binary with `brpc` (and enable `glog` replacement) 
in TSAN mode results in a linking failure, complaining about different 
declarations of `AnnotateBenignRaceSized`.
   
   **Expected behavior (期望行为)**
   Successful TSAN build.
   
   **Versions (各种版本)**
   OS: Ubuntu 22.04
   Compiler: Clang 12.0.1
   brpc: 1.2.0
   protobuf: 21.1
   
   **Additional context/screenshots (更多上下文/截图)**
   Pending.
   


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