File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 21
21
# ASAN test is not working
22
22
if [[ " $BUILD_ENVIRONMENT " == * asan* ]]; then
23
23
export ASAN_OPTIONS=detect_leaks=0:symbolize=1
24
- export UBSAN_OPTIONS=print_stacktrace=1
24
+ # We suppress the vptr volation, since we have separate copies of
25
+ # libprotobuf in both libtorch.so and libcaffe2.so, and it causes
26
+ # the following problem:
27
+ # test_cse (__main__.TestJit) ... torch/csrc/jit/export.cpp:622:38:
28
+ # runtime error: member call on address ... which does not point
29
+ # to an object of type 'google::protobuf::MessageLite'
30
+ # ...: note: object is of type 'onnx_torch::ModelProto'
31
+ #
32
+ # This problem should be solved when libtorch.so and libcaffe2.so are
33
+ # merged.
34
+ export UBSAN_OPTIONS=print_stacktrace=1:suppressions=$PWD /ubsan.supp
25
35
export PYTORCH_TEST_WITH_ASAN=1
26
36
export PYTORCH_TEST_WITH_UBSAN=1
27
37
# TODO: Figure out how to avoid hard-coding these paths
Original file line number Diff line number Diff line change
1
+ vptr:libtorch.so
You can’t perform that action at this time.
0 commit comments