Public bug reported:
The following will cause realpath(1) to loop infinitely:
ln -s foo/bar foo
realpath foo
Obviously, realpath should either detect there is a loop
and report the problem; or at least do what the kernel
does and give up after "too many" iterations (and report
the problem).
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: coreutils 9.4-3ubuntu6.2
ProcVersionSignature: Ubuntu 6.8.0-134.134-generic 6.8.12
Uname: Linux 6.8.0-134-generic x86_64
ApportVersion: 2.28.2-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: KDE
Date: Fri Jul 17 23:58:31 2026
InstallationDate: Installed on 2025-02-28 (505 days ago)
InstallationMedia: Kubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240425.1)
SourcePackage: coreutils
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: coreutils (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug noble
** Attachment added: "Trivial bash(1) script to reproduce the bug"
https://bugs.launchpad.net/bugs/2161155/+attachment/5983305/+files/realpath-symloop-bug.bash
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2161155
Title:
realpath(1) infinte loop on some(?) symlink loops
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/2161155/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs