Bug 1899913

Summary: bash builtin "test -x" fails on ubuntu container
Product: [Fedora] Fedora Reporter: david08741
Component: bashAssignee: Siteshwar Vashisht <svashisht>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: admiller, jpazdziora, kasal, kdudka, ssbarnea, svashisht
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-20 14:28:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description david08741 2020-11-20 11:17:15 UTC
Description of problem:
bash builtin `test -x /` does return 1, rather then returning 0.
This is only if running in a container on a ubuntu host.

Version-Release number of selected component (if applicable):
bash-5.0.17-2.fc33.x86_64

How reproducible:
always

Steps to Reproduce:
1. run a ubuntu host (e.g. 16.04 18.04 20.04)
2. podman run --rm -it registry.fedoraproject.org/fedora:rawhide /usr/bin/bash -c "test -x /" ;  echo $?

Actual results:
returns 1

Expected results:
returns 0

Additional info:
/ is executable, 
podman run --rm -it registry.fedoraproject.org/fedora:rawhide /usr/bin/test -x /
works as expected, so does zsh.
Also, podman and docker behave the same way.

The issue appeared between 9 days ago [good] on this image:
45c2323870da: Pull complete
Digest: sha256:e2a3cdb67c628da3d47f001ace122464b8c75f53940731288f5c006768c48a7c
and 2 days ago [bad]
Koshei list among others a glibc update since the last build [koshei] - but I am not sure whether the build [glibc] is the culprint.

Note that this breaks CI testing on travis, as no native fedora VMs are available.

[good] https://travis-ci.org/github/boutproject/BOUT-dev/jobs/742716679
[bad] https://travis-ci.org/github/boutproject/BOUT-dev/jobs/742975318
[koshei] https://koschei.fedoraproject.org/package/bash
[glibc] https://koji.fedoraproject.org/koji/buildinfo?buildID=1640545

[upstream] https://github.com/boutproject/BOUT-dev/issue/2143

Comment 1 david08741 2020-11-20 11:19:18 UTC
Correct original bug report link:
https://github.com/boutproject/BOUT-dev/issues/2143

Comment 2 Kamil Dudka 2020-11-20 14:28:00 UTC
This is a known issue triggered by a recent update of glibc.  See bug #1869030 comment #22 for details.

*** This bug has been marked as a duplicate of bug 1869030 ***

Comment 3 Jan Pazdziora 2020-11-20 15:56:58 UTC

*** This bug has been marked as a duplicate of bug 1900021 ***