Comment 1 for bug 2048768

Revision history for this message
Danilo Egea Gondolfo (danilogondolfo) wrote :

After some more digging, this problem is affecting builds with ASAN (address sanitizer) in LLVM 17 too (and likely 16) and also GCC.

Running the netplan.io tests with ASAN (built with gcc) on Noble will lead to crashes:

+ ./_leakcheckbuild/tests/ctests/test_netplan_validation
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer:DEADLYSIGNAL
/home/danilo/bin/netplan-leak-check.sh: line 19: 463561 Segmentation fault (core dumped) ./${test}

All these tests will run just fine if I disable ASLR (sudo sysctl kernel.randomize_va_space=0)

I'm running kernel 6.6.0-14-generic.

Checking llvm-toolchain-17 tests, after and before kernel 6.6 migrated in Noble, they are failing for different reasons:

Before: https://autopkgtest.ubuntu.com/results/autopkgtest-noble/noble/amd64/l/llvm-toolchain-17/20231227_142627_0e232@/log.gz

613s wasm-ld-17: error: /usr/lib/wasm32-wasi/libc++.a(stdlib_new_delete.cpp.o): undefined symbol: __cxa_allocate_exception
613s wasm-ld-17: error: /usr/lib/wasm32-wasi/libc++.a(stdlib_new_delete.cpp.o): undefined symbol: __cxa_throw

After: https://autopkgtest.ubuntu.com/results/autopkgtest-noble/noble/amd64/l/llvm-toolchain-17/20240106_050845_ecb23@/log.gz

292s sanitize=address is failing

I can get to the same errors by disabling and re-enabling ASLR in my Noble test image.