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.

Author ronaldoussoren
Recipients eric.snow, mathias, ncoghlan, ronaldoussoren
Date 2013-06-28.14:52:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Note that the OSX port already does this for framework builds. I don't know why we don't use the same code for shared library builds.

Issue #15498 contains a patch that switches this code from a deprecated nextstep-era API to dladdr.

Two comments on the patch attached to this issue:

1) The name "_PyImport_GetModulePath" is confusing, I'd use _PyImport_GetSharedLibPath to make clear that this is locating the shared library.

2) The code calls dladdr on a static variable that's introduced just for that, it is also possible to call dladdr on an already existing symbol (for example the address of a function in the public API).
Date User Action Args
2013-06-28 14:52:47ronaldoussorensetrecipients: + ronaldoussoren, ncoghlan, eric.snow, mathias
2013-06-28 14:52:47ronaldoussorensetmessageid: <>
2013-06-28 14:52:47ronaldoussorenlinkissue18309 messages
2013-06-28 14:52:47ronaldoussorencreate