[Bug 2083131] Re: Bash's builtin command "printf" has a grave functionality bug - fails to print the format like "%.2f .1"
Andreas Hasenack
2083131 at bugs.launchpad.net
Wed Jan 8 19:06:19 UTC 2025
There are *tons* of autopkgtests still in progress for this update[1]. I
suspect an infrastructure problem that somehow failed to get test
results, or it's really just a coincidence and they were retriggered by
another update perhaps, or something else.
I'll retrigger them:
$ ./retry-autopkgtest-regressions -s oracular --state RUNNING --blocks bash
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=i386&package=comitup&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=ppc64el&package=dotnet8&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=ppc64el&package=dotnet9&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=ppc64el&package=endlessh&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=ppc64el&package=firebuild&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=ppc64el&package=fonts-fork-awesome&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=ppc64el&package=gdm3&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=ppc64el&package=hippotat&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=ppc64el&package=icmake&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=ppc64el&package=libdeflate&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=ppc64el&package=librsb&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=ppc64el&package=lightdm&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=i386&package=lintian&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=ppc64el&package=lintian&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=s390x&package=lintian&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=s390x&package=linuxinfo&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=ppc64el&package=logcheck&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=ppc64el&package=lsb-release-minimal&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=arm64&package=num-utils&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=amd64&package=openjdk-21&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=arm64&package=openjdk-21&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=i386&package=openjdk-21&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=ppc64el&package=openjdk-21&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=s390x&package=openjdk-21&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=amd64&package=openjdk-22&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=arm64&package=openjdk-22&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=s390x&package=openjdk-22&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=amd64&package=openjdk-23&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=arm64&package=openjdk-23&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=ppc64el&package=openjdk-23&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=s390x&package=openjdk-23&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=amd64&package=openjdk-24&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=arm64&package=openjdk-24&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=ppc64el&package=openjdk-24&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=s390x&package=openjdk-24&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=arm64&package=pass-otp&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=arm64&package=prokka&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=arm64&package=pwdsphinx&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=amd64&package=sssd&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=arm64&package=sssd&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=arm64&package=streamlink&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=s390x&package=streamlink&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=amd64&package=systemd&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=arm64&package=systemd&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=ppc64el&package=systemd&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=amd64&package=userv&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=arm64&package=userv&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=arm64&package=util-linux&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=s390x&package=util-linux&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=arm64&package=vm&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=amd64&package=xonsh&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=i386&package=xonsh&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=ppc64el&package=xonsh&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=arm64&package=yabasic&trigger=bash%2F5.2.32-1ubuntu1.1
https://autopkgtest.ubuntu.com/request.cgi?release=oracular&arch=s390x&package=yabasic&trigger=bash%2F5.2.32-1ubuntu1.1
1. https://ubuntu-archive-team.ubuntu.com/proposed-
migration/oracular/update_excuses.html#bash
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/2083131
Title:
Bash's builtin command "printf" has a grave functionality bug - fails
to print the format like "%.2f .1"
Status in bash package in Ubuntu:
Fix Released
Status in bash source package in Oracular:
Fix Committed
Status in bash source package in Plucky:
Fix Released
Status in bash package in Debian:
Fix Released
Bug description:
[Impact]
Programs relying on the builtin printf function of bash stop working
correctly when trying to format numbers with %f.
[Test Plan]
Run the following command, which currently returns "-nan" while it
should return 52.12:
$ bash -c "printf %.2f 52.123"
[Where problems could occur]
Unknown regressions in the formatting after applying the patch.
[Original Bug Report]
As reported in the upstream Debian Linux:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1078556
Bash's builtin command "printf" has a grave functionality bug - fails to print the format like "%.2f .1".
# bash --version
GNU bash, version 5.2.32(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
# printf "%.2f\n" 0.1
nan
As mentioned in the above URL, upstream's configure-strtold-check patch:
https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=1078556;filename=configure-strtold-check;msg=20
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/2083131/+subscriptions
More information about the foundations-bugs
mailing list