Skip to content

OSX: memory_maps() segfaults or raise EINVAL #1291

@wrishel

Description

@wrishel

I get Exception: OSError(22, 'Invalid argument') on OSX 10.13.4 with Python 2.7

Adding this to the loop makes it go away:

for proc in psutil.process_iter():
        if proc.pid == os.getpid(): continue   

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions