pstree reports "/proc/xxxx: No such file or directory"
Bug #1629839 reported by
Barry Luijten
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
psmisc (Ubuntu) |
Expired
|
Low
|
Unassigned |
Bug Description
At random occasions, pstree returns "/proc/xxxx: No such file or directory" on stderr. No output on stdout is produced.
I can reproduce the problem using this script:
#!/bin/bash
for i in $(seq 1 1000); do
unset p
p=$(pstree -s -A $$ 2>/dev/null)
if [ "$?" -ne "0" ]; then
fi
sleep 0.02
done
I have seen this behavior in version 22.15 (shipped with Ubuntu 12.04 LTS, package version 22.15-2ubuntu1.2). The problem does not seem to occur on version 22.21 (shipped with Ubuntu 16.04 LTS).
description: | updated |
To post a comment you must log in.
Status changed to 'Confirmed' because the bug affects multiple users.