[MDEV-20966] main.func_math fails in builbot on Debian unstable with wrong error code Created: 2019-11-03 Updated: 2023-05-19 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | Server, Tests |
| Affects Version/s: | 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | Papercut, UBSAN, not-10.5 | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
http://buildbot.askmonty.org/buildbot/builders/kvm-deb-sid-x86/builds/9229
|
| Comments |
| Comment by Daniel Black [ 2021-07-07 ] | ||
|
func_math passing on this recent build http://buildbot.askmonty.org/buildbot/builders/kvm-deb-sid-x86/builds/12362/steps/mtr/logs/stdio ( 10.5) Can't find recent 10.4 test on deb-sid-x86 | ||
| Comment by Marko Mäkelä [ 2022-03-29 ] | ||
|
The test main.func_math fails due to undefined behaviour on 10.2, 10.3, 10.4 when built with gcc-12 -O2 for AMD64, or even some older GCC on non-AMD64 instruction set architectures, such as POWER or IBM Z Series (s390x). For 10.5 and later,
The reason for this failure is that the compiler is allowed to assume that no undefined behaviour exists. Specifically, if the compiler was asked to evaluate a+b, and the code subsequently checks for overflow, the compiler is allowed to assume that no overflow occurred in the first place, and to optimize away the overflow check. | ||
| Comment by Andrew Hutchings [ 2023-02-08 ] | ||
|
This affects the Fedora 36 builder on new buildbot for 10.3 & 10.4. | ||
| Comment by Daniel Black [ 2023-02-09 ] | ||
|
Attempted to backport the UB fixed and failed https://github.com/MariaDB/server/pull/2458. As Fedora 36 comes with 10.5 and and with luck and a lot of hard work, Debian 12 will come with 10.11 I think the set distros with new compilers needing this fixed for 10.3/10.4 has been reduce to an empty set.. |