numpy usage causes Ghidra to crash
mike-hunhoff opened this issue · 2 comments
This is likely a result of Ghidrathon's use of Jep's SubInterpreter v. SharedInterpreter (see Jep discussion here).
We could:
- change Ghidrathon to use Jep's SharedInterpreter
- continue using SubInterpreter but include numpy in the list of shared modules in the JepConfig, as suggested by Jep developers
Additional discussion from Jep developers on which interpreter to use:
Use SharedInterpreters if
- you are brand new to Jep and are not sure. It is easier to go from using SharedInterpreters to SubInterpreters than the other way around.
- you want to use a lot of CPython extension modules
Use SubInterpreters if
- you used Jep instances in Jep 3.x and want to retain the same behavior
- you need your interpreters as isolated as possible
Appreciated! Please let me know if there is a progress in that area.
(Following the discussion in #14)
Relevant JepConfig
methods to add shared modules:
We need to consider that any CPython
module could have issues when executed in a subinterpreter and weigh this risk against the isolation benefits provided by Jep's SubInterpreter
.