Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use process_exe() everywhere #277

Merged
merged 1 commit into from
Jan 26, 2022
Merged

Use process_exe() everywhere #277

merged 1 commit into from
Jan 26, 2022

Conversation

Jongy
Copy link
Contributor

@Jongy Jongy commented Jan 26, 2022

Description

See comment on process_exe() - it correctly raises ZombieProcess (which is a subclass
of NoSuchProcess) for zombie processes.
gProfiler should treat this error as processes going down.

These are all invocations of Process.exe() in gProfiler.

See giampaolo/psutil#2062 which solves the issue in psutil.

Motivation and Context

Currently we don't handle it as "process is down", so we get unrelated errors like Non-java basenamed process, skipping... (disable --java-safemode to profile it anyway) with exe="", which happens because the process is a zombie, so I actually want it ignored.

See comment on process_exe() - it correctly raises ZombieProcess (which is a subclass
of NoSuchProcess) for zombie processes.
gProfiler should treat this error as processes going down.
@Jongy Jongy added the bug Something isn't working label Jan 26, 2022
@Jongy Jongy requested a review from adi-benz January 26, 2022 15:39
gprofiler/utils.py Show resolved Hide resolved
@adi-benz adi-benz self-requested a review January 26, 2022 16:34
@Jongy Jongy merged commit 3d0b4fd into master Jan 26, 2022
@Jongy Jongy deleted the zombie-processes branch January 26, 2022 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants