Skip to content
This repository was archived by the owner on Apr 26, 2021. It is now read-only.

Conversation

@omeranson
Copy link

@omeranson omeranson commented May 20, 2020

The file /proc//status provides information about a process in
the format 'key: value'. The parsing of this file failed if 'value'
was empty.

Add an dummy value that will be taken in case the real value from
the status file does not exist.

Additionally, update the log message from the parsing code to also
output the exception, if one is raised.

Closes: #3035

Thanks for contributing! But first: did you read our community guidelines?
https://cuckoo.sh/docs/introduction/community.html

What I have added/changed is:

Add an dummy value that will be taken in case the real value from
the status file does not exist.

Additionally, update the log message from the parsing code to also
output the exception, if one is raised.

The goal of my change is:

Maker reading process status data more robust. Have it support cases where some values are empty.

What I have tested about my change is:

The issue reproduced without the change. Adding the change resolves the issue.

The file /proc/<pid>/status provides information about a process in
the format 'key: value'. The parsing of this file failed if 'value'
was empty.

Add an dummy value that will be taken in case the real value from
the status file does not exist.

Additionally, update the log message from the parsing code to also
output the exception, if one is raised.

Closes: cuckoosandbox#3035
@omeranson
Copy link
Author

@botherder Could you please take a look?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error during analysis: could not get process status for pid

1 participant