mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
meson: Increase stack size limit for sanitizer builds
When building with "CC=clang", "-Db_sanitize=address,undefined", and "-Dbuildtype=debug", the following error occurs: ../src/conf/nwfilter_conf.c:2190:1: error: stack frame size of 10616 bytes in function 'virNWFilterRuleDefFixup' [-Werror,-Wframe-larger-than=] virNWFilterRuleDefFixup(virNWFilterRuleDef *rule) ^ 1 error generated. Enforcing stack frame only makes sense on normal builds when stack usage is deterministic. Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
bf9074c6a8
commit
7c98320278
@ -225,7 +225,7 @@ alloc_max = run_command(
|
||||
)
|
||||
|
||||
# sanitizer instrumentation may enlarge stack frames
|
||||
stack_frame_size = get_option('b_sanitize') == 'none' ? 4096 : 8192
|
||||
stack_frame_size = get_option('b_sanitize') == 'none' ? 4096 : 32768
|
||||
|
||||
# array_bounds=2 check triggers false positive on some GCC
|
||||
# versions when using sanitizers. Seen on Fedora 34 with
|
||||
|
Loading…
Reference in New Issue
Block a user