Package: glances
Version: 2.1.1-1
Severity: important

Hi Daniel and Sebastien,

Sometimes, when I left glances running for a while (can't say exactly,
but at least a few minutes) it crashes showing the following exceptions:

-----8<-----

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 694, in wrapper
    return fun(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 724, in name
    f = open(fname, "rt", encoding=DEFAULT_ENCODING)
  FileNotFoundError: [Errno 2] No such file or directory: '/proc/672/stat'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "/usr/bin/glances", line 9, in <module>
   load_entry_point('Glances==2.1.1', 'console_scripts', 'glances')()
 File "/usr/lib/python3/dist-packages/glances/__init__.py", line 121, in main
   standalone.serve_forever()
 File "/usr/lib/python3/dist-packages/glances/core/glances_standalone.py", line 
71, in serve_forever
   self.stats.update()
 File "/usr/lib/python3/dist-packages/glances/core/glances_stats.py", line 130, 
in update
   self.__update__(input_stats)
 File "/usr/lib/python3/dist-packages/glances/core/glances_stats.py", line 121, 
in __update__
   self._plugins[p].update()
 File "/usr/lib/python3/dist-packages/glances/plugins/glances_processcount.py", 
line 55, in update
   glances_processes.update()
 File "/usr/lib/python3/dist-packages/glances/core/glances_processes.py", line 
324, in update
   standard_stats=self.get_max_processes() is None)
 File "/usr/lib/python3/dist-packages/glances/core/glances_processes.py", line 
149, in __get_process_stats
   procstat.update(proc.as_dict(attrs=['cpu_percent', 'memory_percent', 
'name'], ad_value=''))
 File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 414, in as_dict
   ret = attr()
 File "/usr/lib/python3/dist-packages/psutil/__init__.py", line 490, in name
   name = self._proc.name()
 File "/usr/lib/python3/dist-packages/psutil/_pslinux.py", line 704, in wrapper
   raise NoSuchProcess(self.pid, self._name)
 psutil.NoSuchProcess: process no longer exists (pid=672)

-----8<-----

Looks like it crashes when looking for information about a process that
already finished. It also messes the terminal (/bin/bash), needing a
"reset" command or closing it and opening a new one (but I guess this is
expected when a curses-based tool isn't properly finished).

Regards,
Tiago.

P.s.: Thanks for you work adopting this package a few months ago. It is a
really useful monitoring tool.


-- System Information:
Debian Release: 8.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages glances depends on:
ii  adduser                3.113+nmu3
ii  lsb-base               4.1+Debian13+nmu1
ii  python3                3.4.2-2
ii  python3-pkg-resources  5.5.1-1
ii  python3-psutil         2.1.1-1+b1
pn  python3:any            <none>

Versions of packages glances recommends:
ii  hddtemp          0.3-beta15-52
ii  lm-sensors       1:3.3.5-2
ii  python3-bottle   0.12.7-1
ii  python3-jinja2   2.7.3-1
ii  python3-pysnmp4  4.2.5-1

glances suggests no packages.

-- no debconf information

Reply via email to