Getting "Segmentation fault (core dumped)" every time I try to run `watch` with `nvidia-smi`
4
votes
1
answer
2989
views
I'm currently using GPUs on an Ubuntu server to run machine learning models. I often like to use the
watch
command in order to monitor the GPU statuses like watch -n 1 nvidia-smi
. It usually works fine, but I noticed that for one of the servers I get the error:
watch: /usr/local/lib/libncursesw.so.6: no version information available (required by watch)
watch: /usr/local/lib/libncursesw.so.6: no version information available (required by watch)
Segmentation fault (core dumped)
I've tried sudo apt-get install libncursesw6
and get libncursesw6 is already the newest version (6.2-0ubuntu2).
.
Is there anything else I can do to fix this error?
### Edit
The output of lddtree $PATH_TO_WATCH
is:
watch => /usr/bin/watch (interpreter => /lib64/ld-linux-x86-64.so.2)
libncursesw.so.6 => /usr/local/lib/libncursesw.so.6
libtinfow.so.6 => /usr/local/lib/./libtinfow.so.6
libtinfo.so.6 => /usr/local/lib/libtinfo.so.6
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6
ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2
Asked by Sean
(191 rep)
Oct 17, 2022, 09:01 AM
Last activity: Jul 11, 2025, 12:08 AM
Last activity: Jul 11, 2025, 12:08 AM