SIGFPE on native architecture when printing double floats on Ubuntu 21.04 #16282
Labels
Area: cpu
Area: CPU/MCU ports
Platform: native
Platform: This PR/issue effects the native platform
Type: bug
The issue reports a bug / The PR fixes a bug (including spelling errors)
Hi all,
Description
Cannot printf double floats on native architecture for Ubuntu 20.10 and later.
The build is ok but at execution SIGFPE signal is received.
This bug does not occur on Ubuntu 20.04
Steps to reproduce the issue
Apply this patch to just print a double in
version
command:Then build and execute the application:
$ make -C tests/ps_schedstatistics/ && tests/ps_schedstatistics/bin/native/tests_ps_schedstatistics.elf
Expected results
Expected result is available when building on Ubuntu 20.04:
As you can see 0.250000 is well displayed.All is ok.
Actual results
On Ubuntu 20.10 or 21.04 beta:
Using gdb:
And end of strace:
Note that if I copy the binary built from Ubuntu 21.04 beta on Ubuntu 20.04 and execute it, it works fine.
And if I copy the binary built from Ubuntu 20.04 on Ubuntu 21.04 and execute it, the bug happens.
Versions
On working Ubuntu 20.04:
On Ubuntu 21.04 beta :
Feel free to ask any test or informations about this.
The text was updated successfully, but these errors were encountered: