[issue36722] In debug build, load also C extensions compiled in release mode or compiled using the stable ABI

2019-04-27 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 5c403b203510549a3f89d138d3265c5cc0cc12af by Victor Stinner (Paul 
Ganssle) in branch 'master':
bpo-36722: Style and grammar edits for ABI news entries (GH-12979)
https://github.com/python/cpython/commit/5c403b203510549a3f89d138d3265c5cc0cc12af


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36722] In debug build, load also C extensions compiled in release mode or compiled using the stable ABI

2019-04-27 Thread Paul Ganssle


Change by Paul Ganssle :


--
pull_requests: +12905

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36722] In debug build, load also C extensions compiled in release mode or compiled using the stable ABI

2019-04-26 Thread STINNER Victor


Change by STINNER Victor :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36722] In debug build, load also C extensions compiled in release mode or compiled using the stable ABI

2019-04-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 6d13e5b35ba7165db3f38fccdd6e1e5283f96a74 by Victor Stinner in 
branch 'master':
bpo-36722: Don't define ALT_SOABI for Py_TRACE_REFS build (GH-12973)
https://github.com/python/cpython/commit/6d13e5b35ba7165db3f38fccdd6e1e5283f96a74


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36722] In debug build, load also C extensions compiled in release mode or compiled using the stable ABI

2019-04-26 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 404606974051c5ec093312aa57cf1bcbc52e1d85 by Victor Stinner in 
branch 'master':
bpo-36722: Add What's New entry for debug ABI (GH-12957)
https://github.com/python/cpython/commit/404606974051c5ec093312aa57cf1bcbc52e1d85


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36722] In debug build, load also C extensions compiled in release mode or compiled using the stable ABI

2019-04-26 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +12900

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36722] In debug build, load also C extensions compiled in release mode or compiled using the stable ABI

2019-04-25 Thread STINNER Victor


STINNER Victor  added the comment:

Oh, there is an issue: --with-trace-refs has a different ABI and so should not 
do that.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36722] In debug build, load also C extensions compiled in release mode or compiled using the stable ABI

2019-04-25 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +12883

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36722] In debug build, load also C extensions compiled in release mode or compiled using the stable ABI

2019-04-25 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 5422e3cfb7ffc50b147b4662d6f596cd61533754 by Victor Stinner in 
branch 'master':
bpo-36722: Debug build loads libraries built in release mode (GH-12952)
https://github.com/python/cpython/commit/5422e3cfb7ffc50b147b4662d6f596cd61533754


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36722] In debug build, load also C extensions compiled in release mode or compiled using the stable ABI

2019-04-25 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +patch
pull_requests: +12878
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36722] In debug build, load also C extensions compiled in release mode or compiled using the stable ABI

2019-04-25 Thread STINNER Victor


New submission from STINNER Victor :

bpo-36465 modified the ABI of debug build so release and debug build now have 
the same ABI.

bpo-21536 modified how C extensions are built: they are no longer linked to 
libpython.

In a debug build, it becomes possible to load a C extension built in release 
mode:
https://bugs.python.org/issue21536#msg340821

But I had to modify SOABI for that.

I propose to modify how Python looks for C extensions: look also for dynamic 
libraries without the "d" SOABI flag and for C extensions built using the 
stable ABI.

Release build:

$ ./python -c 'import _imp; print(_imp.extension_suffixes())'
['.cpython-38-x86_64-linux-gnu.so', '.abi3.so', '.so']

Debug build, *WITHOUT* my change:

$ ./python -c 'import _imp; print(_imp.extension_suffixes())'
['.cpython-38d-x86_64-linux-gnu.so', '.so']

Debug build, *WITH* my change:

$ ./python -c 'import _imp; print(_imp.extension_suffixes())'
['.cpython-38d-x86_64-linux-gnu.so', '.cpython-38-x86_64-linux-gnu.so', 
'.abi3.so', '.so']

--
components: Build
messages: 340856
nosy: vstinner
priority: normal
severity: normal
status: open
title: In debug build, load also C extensions compiled in release mode or 
compiled using the stable ABI
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com