Bug 1221995

Summary: [abrt] tracer: _pslinux.py:706:wrapper:NoSuchProcess: process no longer exists (pid=23486)
Product: [Fedora] Fedora Reporter: Christian Stadelmann <fedora>
Component: tracerAssignee: Jakub Kadlčík <jkadlcik>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: jirinek, jkadlcik
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/3f4efa4a55b66a297c88d40fe109638284772227
Whiteboard: abrt_hash:1c891bdfb077050615cff6830d0082605732c37f
Fixed In Version: 0.6.6-1.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-24 08:25:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Christian Stadelmann 2015-05-15 12:42:35 UTC
Description of problem:
I think I terminated a process while tracer ran.

Version-Release number of selected component:
tracer-0.5.8-1.fc22

Additional info:
reporter:       libreport-2.5.1
cmdline:        /usr/bin/python /bin/tracer -n evince adwaita-cursor-theme jgit kernel-modules langtable-data langtable-python gtk2 gtk3 libseccomp evolution epiphany-runtime kernel-core dbus gdb eclipse-jdt rygel kernel f22-kde-theme eclipse-swt dnf-langpacks langtable evolution-data-server-tests dbus-libs wireshark gdk-pixbuf2-devel evolution-help wireshark-gnome kernel-tools empathy evolution-data-server seahorse epiphany glib2 kde-settings-pulseaudio evolution-data-server-devel geocode-glib evolution-devel gucharmap gtk-update-icon-cache gcr-devel kde-settings-ksplash vte-profile kernel-modules-extra glib2-devel evince-libs eclipse-pde gdk-pixbuf2 file-roller gupnp eclipse-equinox-osgi simple-scan kde-settings-plasma createrepo_c-libs kernel-headers kernel-tools-libs qt-settings pinentry-qt evolution-data-server-doc evince-dvi nautilus control-center file-roller-nautilus eclipse-ecf-core clutter zenity pinentry-gtk yelp-libs evolution-tests eclipse-jgit coreutils gcr libcap-ng dbus-x11 evolution-devel-docs pinentry dbus-devel adwaita-icon-theme bash-completion evince-djvu kde-settings eog evince-nautilus yelp nautilus-extensions gtk3-devel eclipse-platform control-center-filesystem createrepo_c
dso_list:       python-psutil-2.1.3-1.fc22.x86_64
executable:     /bin/tracer
kernel:         4.0.2-300.fc22.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
_pslinux.py:706:wrapper:NoSuchProcess: process no longer exists (pid=23486)

Traceback (most recent call last):
  File "/bin/tracer", line 34, in <module>
    tracer.main.run()
  File "/usr/lib/python2.7/site-packages/tracer/main.py", line 42, in run
    return router.dispatch()
  File "/usr/lib/python2.7/site-packages/tracer/resources/router.py", line 55, in dispatch
    controller = DefaultController(self.args, self.packages)
  File "/usr/lib/python2.7/site-packages/tracer/controllers/default.py", line 46, in __init__
    self.applications = self.tracer.trace_affected(self._user(args.user))
  File "/usr/lib/python2.7/site-packages/tracer/resources/tracer.py", line 94, in trace_affected
    p = self._apply_rules(p)
  File "/usr/lib/python2.7/site-packages/tracer/resources/tracer.py", line 104, in _apply_rules
    parent = process.parent
  File "/usr/lib/python2.7/site-packages/tracer/resources/processes.py", line 122, in parent
    p = super(Process, self).parent()
  File "/usr/lib/python2.7/site-packages/tracer/resources/processes.py", line 65, in parent
    return self._attr("parent")
  File "/usr/lib/python2.7/site-packages/tracer/resources/processes.py", line 79, in _attr
    try: return attr()
  File "/usr/lib64/python2.7/site-packages/psutil/__init__.py", line 433, in parent
    ppid = self.ppid()
  File "/usr/lib64/python2.7/site-packages/psutil/__init__.py", line 480, in ppid
    return self._proc.ppid()
  File "/usr/lib64/python2.7/site-packages/psutil/_pslinux.py", line 706, in wrapper
    raise NoSuchProcess(self.pid, self._name)
NoSuchProcess: process no longer exists (pid=23486)

Local variables in innermost frame:
fun: <function ppid at 0x7f2f837a4488>
self: <psutil._pslinux.Process object at 0x7f2f800dcd90>
args: ()
err: IOError(2, 'No such file or directory')
kwargs: {}

Comment 1 Christian Stadelmann 2015-05-15 12:42:37 UTC
Created attachment 1025829 [details]
File: backtrace

Comment 2 Christian Stadelmann 2015-05-15 12:42:39 UTC
Created attachment 1025830 [details]
File: environ

Comment 3 Jakub Kadlčík 2015-05-15 14:30:25 UTC
Hello, thank you for the feedback.

Its surely related to the https://bugzilla.redhat.com/show_bug.cgi?id=1215561 . Its not very easy to reproduce this issue, but I think that it shouldn't happen in upstream version because of 

https://github.com/FrostyX/tracer/commit/802a74c8af265e517ef40fdc96f701d9c4efbbe0

Comment 4 Fedora Update System 2015-08-18 08:12:03 UTC
tracer-0.6.4-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/tracer-0.6.4-1.fc21

Comment 5 Fedora Update System 2015-08-18 08:12:12 UTC
tracer-0.6.4-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/tracer-0.6.4-1.fc22

Comment 6 Fedora Update System 2015-08-19 07:57:10 UTC
Package tracer-0.6.4-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing tracer-0.6.4-1.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-13632/tracer-0.6.4-1.fc22
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2015-08-23 01:49:10 UTC
tracer-0.6.5-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update tracer'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-13961

Comment 8 Fedora Update System 2015-09-08 10:42:27 UTC
tracer-0.6.6-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15324

Comment 9 Fedora Update System 2015-09-08 21:25:51 UTC
tracer-0.6.6-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update tracer'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15324

Comment 10 Fedora Update System 2015-09-24 08:25:37 UTC
tracer-0.6.6-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.