Skip to content

Fatal Python error: could not acquire lock for <_io.BufferedReader name='<stdin>'> at interpreter shutdown, possibly due to daemon threads #461

Closed
@brianjmurrell

Description

@brianjmurrell

I'm seeing this with python3-clustershell-1.8.3-5.fc33.noarch/python3-3.9.2-1.fc33.x86_64:

$ clush -B -l vagrant -R ssh -S -w vm1,vm2,vm3,vm4,vm5,vm6,vm7,vm8,vm9 'set -ex
declare -a ftest_mounts
mapfile -t ftest_mounts < <(grep '\''added by ftest.sh'\'' /etc/fstab)
for n_mnt in "${ftest_mounts[@]}"; do
    mpnt=("${n_mnt}")
    sudo umount "${mpnt[1]}"
done
sudo sed -i -e "/added by ftest.sh/d" /etc/fstab'
...
Fatal Python error: could not acquire lock for <_io.BufferedReader name='<stdin>'> at interpreter shutdown, possibly due to daemon threads

Thread 0x00007fda5b020700 (most recent call first):
  File "/usr/local/lib/python3.6/site-packages/ClusterShell/CLI/Clush.py", line 620 in _stdin_thread_start
  File "/usr/lib64/python3.6/threading.py", line 864 in run
  File "/usr/lib64/python3.6/threading.py", line 916 in _bootstrap_inner
  File "/usr/lib64/python3.6/threading.py", line 884 in _bootstrap

Current thread 0x00007fda67de3740 (most recent call first):
/usr/lib/daos/TESTING/ftest/ftest.sh: line 69: 10381 Aborted                 clush "${CLUSH_ARGS[@]}" -B -l "${REMOTE_ACCT:-jenkins}" -R ssh -S -w "$(IFS=','; echo "${nodes[*]}")" "$(sed -e '1,/^$/d' "$SCRIPT_LOC"/pre_clean_nodes.sh)"

I found this: https://bugs.python.org/issue26037

Any thoughts?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions