Skip to content

Produce a helpful error message if ptrace_scope is 0 #307

@peytondmurray

Description

@peytondmurray

Is there an existing proposal for this?

  • I have searched the existing proposals

Is your feature request related to a problem?

If a user tries to run the integration tests, they can hang indefinitely if

cat /proc/sys/kernel/yama/ptrace_scope

prints 1.

Describe the solution you'd like

I'd love if pystack generated an error message with a solution instead of hanging indefinitely. You can fix this by doing

sudo bash -c 'echo 0 >> /proc/sys/kernel/yama/ptrace_scope'

It would be nice to do this check before running tests in conftest.py so that folks know they need to deal with this before spending time on it.

Alternatives you considered

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions