Abort on UBSAN errors
Previously, UBSAN errors might slip undetected (e.g. when 23678758 is in).
Look for x = -2147483648
:
-
clang:asan
- https://gitlab.isc.org/isc-projects/bind9/-/jobs/2945224#L1029 -
gcc:asan
- https://gitlab.isc.org/isc-projects/bind9/-/jobs/2945225#L1036
The builtin
system test, which uses failing named -V
, passed, tho error reports are somewhere in the output (look for main.c
in the output):
-
system:clang:asan
- https://gitlab.isc.org/isc-projects/bind9/-/jobs/2945230 -
system:gcc:asan
- https://gitlab.isc.org/isc-projects/bind9/-/jobs/2945229
Validation jobs show that named -V
with undefined behavior fails the test:
-
clang:asan
- https://gitlab.isc.org/isc-projects/bind9/-/jobs/2945017 -
gcc:asan
- https://gitlab.isc.org/isc-projects/bind9/-/jobs/2945016 -
system:clang:asan
- https://gitlab.isc.org/isc-projects/bind9/-/jobs/2945053 -
system:gcc:asan
- https://gitlab.isc.org/isc-projects/bind9/-/jobs/2945052
S:builtin:2022-10-07T11:19:03+0000
main.c:684:4: runtime error: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int'
main.c:684:4: runtime error: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int'
...
I:builtin:Core dump(s) found: builtin/core.25914 builtin/core.25961
...
Edited by Michal Nowak