Skip to content

angr loader object keeps open files after a .close() #184

@jsaunders-kbr

Description

@jsaunders-kbr

With the following series of operations:
loader = cle.Loader(file)
...
loader.close()

Cle will keep the file open internally until python closes, making it impossible to among other things, os.remove() to delete the file on Windows due to the file being held open.

While I've only been able to have this bug occur on cle 8.19.2.4 (newer versions explode spectacularly due to issues with psutil on my system), I was told on the angr slack to report it anyway as it's a known issue that needs to be tracked.

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