*** This bug is a duplicate of bug 2083131 ***
    https://bugs.launchpad.net/bugs/2083131

------- Comment From [email protected] 2024-12-09 04:18 EDT-------
I have successfully verified that printf of floats now works fine on s390x with 
the fixed bash package from oracular-proposed:

Verification that it fails on vanilla Ubuntu 24.10:

$ docker run -it --rm public.ecr.aws/docker/library/ubuntu:24.10
...
# bash -c "printf '%f\n' 1.1"
Segmentation fault (core dumped)

Verification that is is fixed with bash/oracular-proposed:

# sed -i -s "s/^Suites: oracular .*/& oracular-proposed/" 
/etc/apt/sources.list.d/ubuntu.sources
# cat <<EOF >/etc/apt/preferences.d/proposed-updates
# Configure apt to allow selective installs of packages from proposed
Package: *
Pin: release a=oracular-proposed
Pin-Priority: 400
EOF
# apt-get install bash/oracular-proposed
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Selected version '5.2.32-1ubuntu1.1' (Ubuntu:24.10/oracular-proposed [s390x]) 
for 'bash'
The following packages will be upgraded:
bash
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 845 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports oracular-proposed/main s390x bash 
s390x 5.2.32-1ubuntu1.1 [845 kB]
Fetched 845 kB in 0s (2766 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 6423 files and directories currently installed.)
Preparing to unpack .../bash_5.2.32-1ubuntu1.1_s390x.deb ...
Unpacking bash (5.2.32-1ubuntu1.1) over (5.2.32-1ubuntu1) ...
Setting up bash (5.2.32-1ubuntu1.1) ...
update-alternatives: error: alternative path 
/usr/share/man/man7/bash-builtins.7.gz doesn't exist
Processing triggers for debianutils (5.20) ...
# bash -c "printf '%f\n' 1.1"
1.100000

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2085548

Title:
  [UBUNTU 24.10] bash printf of floating point value fails on Ubuntu
  24.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/2085548/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to