This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: PyLineTable_InitAddressRange isn't exported - causing C Extensions to fail at import
Type: Stage:
Components: C API Versions: Python 3.10
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: nathan3
Priority: normal Keywords:

Created on 2022-02-01 08:48 by nathan3, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg412237 - (view) Author: Nathan Shain (nathan3) Date: 2022-02-01 08:48
I'm trying to develop C++ Extension that needs to access the new line table. I have a call to PyLineTable_InitAddressRange in my extension. After compiling, "_PyLineTable_InitAddressRange" symbol is undefined in the .so (which is ok so far).

When importing the extension, it fails with this error:

ImportError: /usr/foo/ undefined symbol: _PyLineTable_InitAddressRange

Obviously python isn't exporting this symbol, and making the dlopen fail

I'd make a PR with a fix, but I'm not sure which approach is appropriate
Date User Action Args
2022-04-11 14:59:55adminsetgithub: 90754
2022-02-01 08:48:19nathan3create