Closed nrnhines closed 1 month ago
I'm thinking that if LD_PRELOAD exists in the environment then ctest and nrn-enable-sanitizer --preload python
should use it instead of constructing its own. This issue may not exist on any other machine/compiler.
Resolved with
NRN_OVERRIDE_LD_PRELOAD="$(realpath "$(gcc -print-file-name=libasan.so)") $(realpath "$(gcc -print-file-name=libstdc++.so)")" cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Debug -DNRN_ENABLE_TESTS=ON -DNRN_SANITIZERS=address
My machine (ubuntu 24.04 gcc version 13.2.0) is exhibiting many failures. For example
gives 13 tests failed out of 35 and /home/hines/neuron/temp/bldsani/Testing/Temporary/LastTest.log show 13 fragments with
with following lines usually of the form
I found a solution at https://github.com/google/sanitizers/issues/934#issuecomment-1800125367 in the sense that running a test manually with
fails but
is successful.