[New-bugs-announce] [issue46596] PyLineTable_InitAddressRange isn't exported - causing C Extensions to fail at import

Nathan Shain report at bugs.python.org
Tue Feb 1 03:48:19 EST 2022


New submission from Nathan Shain <nathan at rookout.com>:

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/foo.cpython-310-x86_64-linux-gnu.so: 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

----------
components: C API
messages: 412237
nosy: nathan3
priority: normal
severity: normal
status: open
title: PyLineTable_InitAddressRange isn't exported - causing C Extensions to fail at import
versions: Python 3.10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46596>
_______________________________________


More information about the New-bugs-announce mailing list