Skip to content

ForkingPickler Issue #133

@gilboz

Description

@gilboz

Description

Running on python 3.13.1 (MacOS Apple Silicon)

Seems like the SpecialMem class that is defined in rop_utils.py:make_initial_state causes the call to find_gadgets() fail.

The root cause is that the multiprocessing Pool uses ForkingPickler (pickle) which cannot serialize non top-level classes.

Suggested resolution:
Move SpecialMem class definition to the global scope, this solved the issue for me.

Steps to reproduce the bug

No response

Environment

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions