Bug 1215561

Summary: [abrt] tracer: __init__.py:172:wrapper:NoSuchProcess: process no longer exists (pid=29843)
Product: [Fedora] Fedora Reporter: Hedayat Vatankhah <hedayatv>
Component: tracerAssignee: Jakub Kadlčík <jkadlcik>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: jkadlcik, red
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/4a23c9a590cdcb82d7338f8ec7ac99d67526b275
Whiteboard: abrt_hash:bfe25595a30ab989c34091992a6ba92b5d8647c0
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:42 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 Hedayat Vatankhah 2015-04-27 06:37:53 UTC
Version-Release number of selected component:
tracer-0.5.8-1.fc21

Additional info:
reporter:       libreport-2.3.0
cmdline:        /usr/bin/python /bin/tracer
dso_list:       python-psutil-1.2.1-5.fc21.x86_64
executable:     /bin/tracer
kernel:         3.18.9-200.fc21.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
__init__.py:172:wrapper:NoSuchProcess: process no longer exists (pid=29843)

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 78, in _attr
    attr = getattr(self._process, name)
  File "/usr/lib64/python2.7/site-packages/psutil/__init__.py", line 172, in wrapper
    raise NoSuchProcess(self.pid, self._platform_impl._process_name)
NoSuchProcess: process no longer exists (pid=29843)

Local variables in innermost frame:
fun: <function parent at 0x7f7cb8022cf8>
self: <psutil.Process(pid=29843 (terminated)) at 140173575755472>
args: ()
kwargs: {}

Comment 1 Hedayat Vatankhah 2015-04-27 06:37:56 UTC
Created attachment 1019242 [details]
File: backtrace

Comment 2 Hedayat Vatankhah 2015-04-27 06:37:58 UTC
Created attachment 1019243 [details]
File: environ

Comment 3 Jakub Kadlčík 2015-04-28 20:34:22 UTC
Hello, thank you for the feedback.

I would love to help you, but no matter how hard I try, I can't reproduce this bug. Do you get this regularly? Or do you know what steps lead to this traceback, please?

Comment 4 Hedayat Vatankhah 2015-04-29 17:27:54 UTC
Thank you for your consideration. IIRC, I got this a few times but not regularly. And when I get it, the subsequent run is fine. I'm not sure, but I *guess* that it happens when I close a program while tracer is being run (sometimes it takes a few seconds for tracer to run, it might be hard to re-produce on faster machines since my system is a bit old (core 2 due 1.8Ghz)). BTW, it seems that tracer doesn't expect processes to disappear since it is started. 

Right now I tried to reproduce it intentionally, but didn't succeed. Apparently, the process should disappear at a very specific time!

BTW, if it is not easy to spot the issue, you can consider this bug low priority since even if it happens, all you need to do is to run it again. :)

Comment 5 Fedora Update System 2015-08-18 08:12:01 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 6 Fedora Update System 2015-08-18 08:12:11 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 7 Fedora Update System 2015-08-19 07:57:08 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 8 Fedora Update System 2015-08-23 01:49:08 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 9 Fedora Update System 2015-09-08 10:42:24 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 10 Fedora Update System 2015-09-08 21:25:50 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 11 Jakub Kadlčík 2015-09-14 10:06:05 UTC
*** Bug 1262689 has been marked as a duplicate of this bug. ***

Comment 12 Fedora Update System 2015-09-24 08:25:36 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.

Comment 13 Jakub Kadlčík 2015-09-24 13:34:21 UTC
*** Bug 1266033 has been marked as a duplicate of this bug. ***