mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:10 +00:00
build-sys: build with -fno-omit-frame-pointer with ASAN
On fc44, LSan fails to suppress leak:qemu_irq_intercept_in, because the backtrace isn't deep enough. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-ID: <20260623-b4-ui-v4-2-4656aec3398d@redhat.com>
This commit is contained in:
@@ -545,6 +545,8 @@ if get_option('asan')
|
||||
if cc.has_argument('-fsanitize=address')
|
||||
qemu_cflags = ['-fsanitize=address'] + qemu_cflags
|
||||
qemu_ldflags = ['-fsanitize=address'] + qemu_ldflags
|
||||
# Ensure complete stack traces for LSan suppressions to match correctly.
|
||||
qemu_cflags += ['-fno-omit-frame-pointer']
|
||||
else
|
||||
error('Your compiler does not support -fsanitize=address')
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user