Commit 2d94aeb
Han Wang
fix(ci): don't preload LSAN into gen script Python processes
The gen_*.py scripts import torch, which has internal pybind/JIT
allocations that LSAN reports as leaks. These are not our leaks.
Previously, LD_PRELOAD=liblsan.so was set for the gen scripts to
handle dlopen of the sanitizer-built custom op .so, but this causes
LSAN to track all Python/torch allocations and fail on exit.
Fix: run gen scripts without LD_PRELOAD. The gen scripts don't
need LSAN — only the C++ test binary (ctest) does, and ctest
already inherits LSAN via the -fsanitize=leak compile flag.
Also revert the DPA2 cpu_lmp_nlist test (needs further investigation).1 parent 1bb7862 commit 2d94aeb
File tree
2 files changed
+8
-19
lines changed- source
- api_cc/tests
- install
2 files changed
+8
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | 276 | | |
282 | 277 | | |
283 | 278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
40 | 41 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
53 | 47 | | |
54 | 48 | | |
55 | 49 | | |
| |||
0 commit comments