The problem is actually in newlib, a newer newlib should be taken from Debian or newlib should be rebuilt against Ubuntu's gcc-arm-none-eabi. The following bug already reports the issue and an affect for newlib in Ubuntu has been added: https://bugs.launchpad.net/ubuntu/+source/newlib/+bug/1772332
The problem is actually in newlib, a newer newlib should be taken from Debian or newlib should be rebuilt against Ubuntu's gcc-arm-none-eabi. The following bug already reports the issue and an affect for newlib in Ubuntu has been added: https:/ /bugs.launchpad .net/ubuntu/ +source/ newlib/ +bug/1772332