Public bug reported:
The program stops with an error
[1] 673467 segmentation fault (core dumped) tree . 2
If the second argument does not exist. The program behaves correctly if
it's the first argument that does not exist instead (e.g. `tree 2 .`).
I ran into this by confusing -L 2 for -d 2 and typed `tree . -d 2` which
produces the segmentation fault instead of showing an error as "2" isn't
a valid directory.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: tree 2.0.2-1
ProcVersionSignature: Ubuntu 6.8.0-87.88~22.04.1-generic 6.8.12
Uname: Linux 6.8.0-87-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82.10
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Wed Nov 19 11:15:06 2025
InstallationDate: Installed on 2022-10-27 (1118 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64
(20220809.1)
SourcePackage: tree
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: tree (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug jammy
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2131907
Title:
Segmentation fault on invalid argument at the second position
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tree/+bug/2131907/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs