-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Find and fix memory leaks #4939
Comments
Hi @justinchuby, if there is instruction about how to enable ASan/LSan in ONNX and run? We recently see more segfault reports of tools that are built on ONNX package. They usually stuck or crash in protobuf's cc @kevinch-nv |
I don’t think we have an option yet. https://github.com/onnx/onnx/blob/main/CMakeLists.txt is what we will have to edit. @jcwchen is that right? Contribution/help would be much appreciated! |
This is a previously failed attempt: #5053 |
I can confirm that currently there is no predefined build option to enable memory check. To enable it, developers need to manually add sanitizer options into DCMAKE_CXX_FLAGS. For example, https://github.com/onnx/onnx/pull/4823/files. |
Enable ASan and fix memory leaks following #4823
@jcwchen @gramalingam
The text was updated successfully, but these errors were encountered: