Skip to content

Abort on UBSAN errors

Michal Nowak requested to merge mnowak/abort-on-ubsan-errors into main

Previously, UBSAN errors might slip undetected (e.g. when 23678758 is in).

Look for x = -2147483648:

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):


Validation jobs show that named -V with undefined behavior fails the test:

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

Merge request reports