Skip to content

Python run_method API segfaults if given non-existent method #5648

@swolchok

Description

@swolchok

🐛 Describe the bug

Repro:

  1. install executorch with ./install_requirements.sh --pybind
>>> from executorch.extension.pybindings import portable_lib as exec_lib
>>> mod = exec_lib._load_for_executorch("some.pte")
>>> mod.run_method("idontexist")
fish: Job 1, 'python' terminated by signal SIGSEGV (Address boundary error)

Versions

latest executorch main, commit hash cd46721

Metadata

Metadata

Labels

enhancementNot as big of a feature, but technically not a bug. Should be easy to fixmodule: extensionIssues related to code under extension/triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions