Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to extract symbols from cython #133

Open
chrisburr opened this issue Jul 13, 2021 · 0 comments
Open

Unable to extract symbols from cython #133

chrisburr opened this issue Jul 13, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@chrisburr
Copy link
Member

In numpy randint is not found (along with everything else from mtrand):

from symbol_exporter.python_so_extractor import CompiledPythonLib
lib = CompiledPythonLib("lib/python3.9/site-packages/numpy/random/mtrand.cpython")
lib.find_symbols()  # == {'methods': [], 'objects': [], 'name': 'mtrand', 'docstring': None}

Disassembling the binary in Ghidra shows that the module's PyInit function is trivial:

void PyInit_mtrand(void)
{
  PyModuleDef_Init(__pyx_moduledef);
  return;
}

though __pyx_moduledef is empty. Something must be filling it though I'm not sure what so I'll have to debug with gdb.

@chrisburr chrisburr added the bug Something isn't working label Jul 13, 2021
@chrisburr chrisburr self-assigned this Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant