-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aarch64架构下运行unittest报错 #2318
Comments
其他UT也有类似问题 ,brpc_ssl_unittest`运行错误:
相同的版本使用clang编译后运行没有问题,比较奇怪。不知道跟之前这个#845 问题是否类似 |
clang没有问题可能是因为这里走了不同的分支 |
改了后单测可以过了,这是啥原因呀?方便讲下嘛 |
应该就是编译器的volatile thread local access这个优化在aarch64下有问题,需要关闭了才能正常执行。 |
Describe the bug (描述bug)
在aarch64架构下运行
brpc_grpc_protocol_unittest
报错bthread=4294968320 sched_to itself!
并异常退出,具体日志信息如下:To Reproduce (复现方法)
mkdir build && cd build && cmake -DBUILD_UNIT_TESTS=ON .. && make
Expected behavior (期望行为)
正常运行单元测试
Versions (各种版本)
OS: Ubuntu 22.04 | aarch64
Compiler: g++ 11.3.0
brpc: master | 2729272
protobuf: 3.12.4
Additional context/screenshots (更多上下文/截图)
The text was updated successfully, but these errors were encountered: