-
Notifications
You must be signed in to change notification settings - Fork 497
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
请问如何在blade中应用AddressSanitizer #578
Comments
修改 BLADE_ROOT 如下 cc_config(
cppflags = [
# Other flags...
'-fsanitize=address',
],
# Other configurations...
linkflags = [
# Other flags...
'-fsanitize=address -static-libasan',
]
) 此外,需要注意的是,使用 AddressSanitizer 时,不能链接其他的内存管理库,例如 tcmalloc/jemalloc |
考虑支持命令行启用 |
blade启动前,先执行下面命令,不知是否可行 |
请问这个'-fsanitize=address -static-libasan', 对gcc的版本有要求吗? |
分开写呢?分别用引号包括,逗号分割
…On Tue, Jun 30, 2020, 17:28 paleyl ***@***.***> wrote:
修改 BLADE_ROOT 如下
cc_config(
cppflags = [
# Other flags...
'-fsanitize=address',
],
# Other configurations...
linkflags = [
# Other flags...
'-fsanitize=address -static-libasan',
]
)
此外,需要注意的是,使用 AddressSanitizer 时,不能链接其他的内存管理库,例如 tcmalloc/jemalloc
请问这个'-fsanitize=address -static-libasan', 对gcc的版本有要求吗?
Linking Shared Library build64_release/app/brand/common/libdatetime.so
g++: error: unrecognized command line option '-fsanitize=address
-static-libasan'
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#578 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPH4SVMKBJ2T6OXZSADRNTRZGV3JANCNFSM4J7CRMNQ>
.
|
如题
The text was updated successfully, but these errors were encountered: