[issue10015] Creating a multiproccess.pool.ThreadPool from a child thread blows up.
Christian added the comment: A workaround would be to call the following in the thread you want to use ThreadPool: if not hasattr(threading.current_process(), "_children"): threading.current_process()._children = weakref.WeakKeyDictionary() (putting this in Process could be a very simple patch) -- nosy: +chris- ___ Python tracker <http://bugs.python.org/issue10015> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong
Christian Heimes added the comment: Commit 9f2f7e42269db74a89fc8cd74d82a875787f01d7 has correct _base_executable $ venv/bin/python Python 3.11.0a2+ (heads/bpo-45847-simple-115-g9f2f7e42269:9f2f7e42269, Dec 10 2021, 10:09:54) [GCC 11.2.1 20211203 (Red Hat 11.2.1-7)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys._base_executable '/home/heimes/dev/python/cpython/venv/bin/python' _base_executable in commit 99fcf1505218464c489d419d4500f126b6d6dc28 is wrong $ venv/bin/python Python 3.11.0a2+ (heads/bpo-45847-simple-116-g99fcf150521:99fcf150521, Dec 10 2021, 10:12:35) [GCC 11.2.1 20211203 (Red Hat 11.2.1-7)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys._base_executable '/home/heimes/dev/python/cpython/python' -- nosy: +christian.heimes ___ Python tracker <https://bugs.python.org/issue46028> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45723] Improve and simplify configure.ac checks
Christian Heimes added the comment: New changeset 74b23c97cd5e178970a199066795cf0561f46b72 by Erlend Egeberg Aasland in branch 'main': bpo-45723: Normalise configure user communication (GH-30024) https://github.com/python/cpython/commit/74b23c97cd5e178970a199066795cf0561f46b72 -- ___ Python tracker <https://bugs.python.org/issue45723> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46023] Modules/makesetup generated rules ignore *disabled*
Christian Heimes added the comment: New changeset 036bbb1d1b6156a1a72c40e9f907f302505085bc by Christian Heimes in branch 'main': bpo-46023: Fix makesetup handling of disabled rule (GH-30001) https://github.com/python/cpython/commit/036bbb1d1b6156a1a72c40e9f907f302505085bc -- ___ Python tracker <https://bugs.python.org/issue46023> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45654] Freeze the runpy module.
Change by Christian Heimes : -- nosy: +christian.heimes nosy_count: 4.0 -> 5.0 pull_requests: +28253 pull_request: https://github.com/python/cpython/pull/30028 ___ Python tracker <https://bugs.python.org/issue45654> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45654] Freeze the runpy module.
Christian Heimes added the comment: I noticed that the types module is only used for ModuleType. PR GH-30028 gets rid of 205 kB object code: 205K Python/deepfreeze/types.o -- ___ Python tracker <https://bugs.python.org/issue45654> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45653] Freeze the encodings module.
Change by Christian Heimes : -- nosy: +christian.heimes nosy_count: 5.0 -> 6.0 pull_requests: +28255 pull_request: https://github.com/python/cpython/pull/30030 ___ Python tracker <https://bugs.python.org/issue45653> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45654] Freeze the runpy module.
Christian Heimes added the comment: New changeset 16638a4bdb802ae52d386a39d2dbef14de3fbc92 by Christian Heimes in branch 'main': bpo-45654: No need to freeze types (GH-30028) https://github.com/python/cpython/commit/16638a4bdb802ae52d386a39d2dbef14de3fbc92 -- ___ Python tracker <https://bugs.python.org/issue45654> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21461] Recognize -pthread
Christian Heimes added the comment: Which platforms or compilers use -pthread? -- components: +Build -Extension Modules nosy: +christian.heimes versions: +Python 3.11 -Python 3.5 ___ Python tracker <https://bugs.python.org/issue21461> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21461] Recognize -pthread
Christian Heimes added the comment: Python's configure script should detect when a platform needs -pthread and automatically include the flags for linking and compiling of all files. Under which circumstances do you need -pthread in a Setup file? -- ___ Python tracker <https://bugs.python.org/issue21461> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34624] -W option and PYTHONWARNINGS env variable does not accept module regexes
Christian Heimes added the comment: Adding regular expression support to -W and PYTHONWARNINGS env var turns the options into potential attack vectors. It can introduce REDOS vulnerability. -- keywords: +security_issue nosy: +christian.heimes type: -> enhancement versions: +Python 3.11 -Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue34624> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45949] Provide pure-Python implementation of Programs/_freeze_module for cross building
Christian Heimes added the comment: In his code review Eric made a point that the relationship of variables and their impact on normal and cross builds are not obvious. I'm going to introduce new variables for freezing and freezing dependencies. Bonus: Cross builds no longer build non-functional _bootstrap_python and Programs/_freeze_module. Normal build: PYTHON_FOR_FREEZE=./_bootstrap_python FREEZE_MODULE_BOOTSTRAP=./Programs/_freeze_module FREEZE_MODULE_BOOTSTRAP_DEPS=Programs/_freeze_module FREEZE_MODULE=$(PYTHON_FOR_FREEZE) $(srcdir)/Programs/_freeze_module.py FREEZE_MODULE_DEPS=_bootstrap_python $(srcdir)/Programs/_freeze_module.py Cross build: PYTHON_FOR_FREEZE=/path/to/build/python FREEZE_MODULE_BOOTSTRAP=$(PYTHON_FOR_FREEZE) $(srcdir)/Programs/_freeze_module.py FREEZE_MODULE_BOOTSTRAP_DEPS=$(srcdir)/Programs/_freeze_module.py FREEZE_MODULE=$(FREEZE_MODULE_BOOTSTRAP) FREEZE_MODULE_DEPS=$(FREEZE_MODULE_BOOTSTRAP_DEPS) -- ___ Python tracker <https://bugs.python.org/issue45949> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40059] Provide a toml module in the standard library
Christian Heimes added the comment: I just noticed that tomli has dropped support for Python 3.6. That's a road block for general adoption of the package in the Python ecosystem. Python 3.6 is the default Python interpreter in CentOS 8, C8S, RHEL 8, and Ubuntu 18.04 LTS. https://github.com/hukkin/tomli/pull/134 -- nosy: +christian.heimes ___ Python tracker <https://bugs.python.org/issue40059> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46061] Journal execution gives fatal error in Python 3.10.1
Christian Heimes added the comment: We cannot help you unless you show us your code and provide a reproducer. -- nosy: +christian.heimes ___ Python tracker <https://bugs.python.org/issue46061> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45653] Freeze the encodings module.
Christian Heimes added the comment:
Eric, I have a simple reproducer for the issue:
This works:
$ LC_ALL=en_US.utf-8 TESTPATH=$(pwd)/Lib:$(pwd)/build/lib.linux-x86_64-3.11
./Programs/_testembed test_init_setpath_config
This fails because it cannot load ISO-8859-1 / latin-1 codec
$ LC_ALL=en_US.latin1 TESTPATH=$(pwd)/Lib:$(pwd)/build/lib.linux-x86_64-3.11
./Programs/_testembed test_init_setpath_config
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = 'conf_program_name'
isolated = 0
environment = 1
user site = 1
import site = 1
is in build tree = 0
stdlib dir = ''
sys._base_executable = 'conf_executable'
sys.base_prefix = ''
sys.base_exec_prefix = ''
sys.platlibdir = 'lib'
sys.executable = 'conf_executable'
sys.prefix = ''
sys.exec_prefix = ''
sys.path = [
'/home/heimes/dev/python/cpython/Lib',
'/home/heimes/dev/python/cpython/build/lib.linux-x86_64-3.11',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the
filesystem encoding
Python runtime state: core initialized
LookupError: unknown encoding: ISO-8859-1
Current thread 0x7f9c42be6740 (most recent call first):
With this patch I'm seeing that encodings.__path__ is not absolute and that
__spec__ has an empty submodule_search_locations.
--- a/Lib/encodings/__init__.py
+++ b/Lib/encodings/__init__.py
@@ -98,9 +98,12 @@ def search_function(encoding):
# module with side-effects that is not in the 'encodings' package.
mod = __import__('encodings.' + modname, fromlist=_import_tail,
level=0)
-except ImportError:
+except ImportError as e:
# ImportError may occur because 'encodings.(modname)' does not
exist,
# or because it imports a name that does not exist (see mbcs and
oem)
+sys.stderr.write(f"exception: {e}\n")
+sys.stderr.write(f"encodings.__path__: {__path__}\n")
+sys.stderr.write(f"encodings.__spec__: {__spec__}\n")
pass
else:
break
$ LC_ALL=en_US.latin1 TESTPATH=$(pwd)/Lib:$(pwd)/build/lib.linux-x86_64-3.11
./Programs/_testembed test_init_setpath_config
exception: No module named 'encodings.latin_1'
encodings.__path__: ['encodings']
encodings.__spec__: ModuleSpec(name='encodings', loader=, origin='frozen',
submodule_search_locations=[])
exception: No module named 'encodings.iso_8859_1'
encodings.__path__: ['encodings']
encodings.__spec__: ModuleSpec(name='encodings', loader=, origin='frozen',
submodule_search_locations=[])
It should have this search location:
>>> import encodings
>>> encodings.__spec__
ModuleSpec(name='encodings', loader=,
origin='frozen',
submodule_search_locations=['/home/heimes/dev/python/cpython/Lib/encodings'])
--
___
Python tracker
<https://bugs.python.org/issue45653>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45949] Provide pure-Python implementation of Programs/_freeze_module for cross building
Christian Heimes added the comment: New changeset eb483c46d62707bdf705491f76cf1fa9642fb47e by Christian Heimes in branch 'main': bpo-45949: Pure Python freeze module for cross builds (GH-29899) https://github.com/python/cpython/commit/eb483c46d62707bdf705491f76cf1fa9642fb47e -- ___ Python tracker <https://bugs.python.org/issue45949> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45949] Provide pure-Python implementation of Programs/_freeze_module for cross building
Christian Heimes added the comment: Thanks for your review, Eric! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue45949> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46023] Modules/makesetup generated rules ignore *disabled*
Christian Heimes added the comment: GH-30001 may have introduced a regression. makesetup is dropping too many modules. Back to the drawing board! -- ___ Python tracker <https://bugs.python.org/issue46023> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46023] Modules/makesetup generated rules ignore *disabled*
Change by Christian Heimes : -- pull_requests: +28322 pull_request: https://github.com/python/cpython/pull/30100 ___ Python tracker <https://bugs.python.org/issue46023> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46023] Modules/makesetup generated rules ignore *disabled*
Christian Heimes added the comment: New changeset 74821b30539bba3cf0ac4148923ec0e9b826508e by Christian Heimes in branch 'main': bpo-46023: Skip build if module is marked as DISABLED (GH-30100) https://github.com/python/cpython/commit/74821b30539bba3cf0ac4148923ec0e9b826508e -- ___ Python tracker <https://bugs.python.org/issue46023> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44035] Regenerating the configure script fails even if dependencies are satisfied
Change by Christian Heimes : -- pull_requests: +28339 pull_request: https://github.com/python/cpython/pull/30117 ___ Python tracker <https://bugs.python.org/issue44035> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46072] Unify handling of stats in the CPython VM
Christian Heimes added the comment: Could you please add the new option to Doc/using/configure.rst ? -- nosy: +christian.heimes ___ Python tracker <https://bugs.python.org/issue46072> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44413] OverflowError: mktime argument out of range after 2019
Christian Heimes added the comment: time.mktime() is a thin wrapper around the libc function mktime(3). I can confirm that glibc's mktime() on Debian 11 with glibc 2.31 is failing and returning error code -1. Fedora 35 with glibc 2.34, Alpine with musl libc 1.2.2, and RHEL 8 with glibc 2.28 are working fine. This suggests that it is not a bug in Python, but Debian-specific platform issue. Could you please open a bug with Debian and Ubuntu? -- nosy: +christian.heimes ___ Python tracker <https://bugs.python.org/issue44413> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46100] Simplify readline / editline detection
New submission from Christian Heimes : The configure.ac code for editline/readline detection is complicated. Especially the code for linking with extra termcap libraries makes it complicated to port the check to pkg-config. The termcap checks were added by Greg in bpo-3645 and commit 188209465a966cf046ed7946589aa21767f95e68 . I propose to simplify the checks and require a readline 4.2 compatible API. GNU readline was released in 2001 (20 years ago). NetBSD libedit editline/readline.h has RL_READLINE_VERSION 0x0402 for at least 10 years. * drop the check for additional termcap libs * remove the fallback to completion_matches * replace AC_CHECK_LIB($LIBREADLINE, ...) checks with a check for RL_READLINE_VERSION >= 0x0402 What do you think? -- components: Build messages: 408700 nosy: christian.heimes, erlendaasland, gregory.p.smith priority: normal severity: normal status: open title: Simplify readline / editline detection type: enhancement versions: Python 3.11 ___ Python tracker <https://bugs.python.org/issue46100> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46072] Unify handling of stats in the CPython VM
Christian Heimes added the comment:
I just noticed that you are using hard-coded paths with /tmp for the pystats
directory. That's problematic and opens the possibility of a symlink race
attack.
Could please add exclusive create to _Py_PrintSpecializationStats()? The will
prevent symlink attacks. fopen() mode "x" is not generally available in all
libcs. You have to combine open() and fdopen():
int flags = O_WRONLY | O_CREAT | O_EXCL;
#ifdef O_NOFOLLOW
flags |= O_NOFOLLOW;
#endif
#ifdef O_CLOEXEC
flags |= O_CLOEXEC;
#endif
int fd = open(path, flags);
if (fd >= 0) {
FILE *fout = fdopen(fd, "w");
}
--
___
Python tracker
<https://bugs.python.org/issue46072>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46088] Build hangs under Visual Studio in deepfreeze stage
Christian Heimes added the comment: VS builds could use the bootstrap interpreter again. This will remove the need to have a Python interpreter installed to build Python on Windows. -- nosy: +christian.heimes ___ Python tracker <https://bugs.python.org/issue46088> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46102] pdb can't convert dict_values to list
Christian Heimes added the comment:
list is a pdb command.
(Pdb) help list
l(ist) [first [,last] | .]
List source code for the current file. Without arguments,
list 11 lines around the current line or continue the previous
listing. With . as argument, list 11 lines around the current
line. With one argument, list 11 lines starting at that line.
With two arguments, list the given range; if the second
argument is less than the first, it is a count.
The current line in the current frame is indicated by "->".
If an exception is being debugged, the line where the
exception was originally raised or propagated is indicated by
">>", if it differs from the current line.
You have to use "p list(x.values())" if you want to print the output of the
list function.
(Pdb) x = {'a': 1}
(Pdb) p list(x.values())
[1]
--
nosy: +christian.heimes
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue46102>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46114] OpenSSL deprecated OpenSSL_version_num() since version 3.0.0
Christian Heimes added the comment: The test case does not work for OpenSSL >= 3.0.1. The test assumes that the version starts with M.NN.FF, but OpenSSL 3 uses M.NN.PP. The FF (fix) part is always 00. The issue didn't show up before because fix and patch level were 0 for 3.0.0 alphas and betas. -- ___ Python tracker <https://bugs.python.org/issue46114> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46114] OpenSSL deprecated OpenSSL_version_num() since version 3.0.0
Change by Christian Heimes : -- assignee: christian.heimes -> components: +Tests stage: -> needs patch type: -> behavior versions: -Python 3.8 ___ Python tracker <https://bugs.python.org/issue46114> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46114] OpenSSL deprecated OpenSSL_version_num() since version 3.0.0
Change by Christian Heimes : -- keywords: +patch pull_requests: +28387 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/30170 ___ Python tracker <https://bugs.python.org/issue46114> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46114] OpenSSL 3.0 uses different version scheme
Christian Heimes added the comment: FYI, OpenSSL_version_num() is not deprecated and Python does not fail to build with OpenSSL 3.0.1. One test case is failing because OpenSSL 3 changed the version scheme slightly. -- title: OpenSSL deprecated OpenSSL_version_num() since version 3.0.0 -> OpenSSL 3.0 uses different version scheme ___ Python tracker <https://bugs.python.org/issue46114> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46114] OpenSSL 3.0 uses different version scheme
Christian Heimes added the comment: New changeset 2985feac4e02d590bb78bcce9e30864be53280ac by Christian Heimes in branch 'main': bpo-46114: Fix OpenSSL version check for 3.0.1 (GH-30170) https://github.com/python/cpython/commit/2985feac4e02d590bb78bcce9e30864be53280ac -- ___ Python tracker <https://bugs.python.org/issue46114> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44035] Regenerating the configure script fails even if dependencies are satisfied
Christian Heimes added the comment: New changeset da8cf8a74714f4cc34fb768345cb1caf9dcddd62 by Christian Heimes in branch 'main': bpo-44035: Show git diff after autoreconf and regen (GH-30117) https://github.com/python/cpython/commit/da8cf8a74714f4cc34fb768345cb1caf9dcddd62 -- ___ Python tracker <https://bugs.python.org/issue44035> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46114] OpenSSL 3.0 uses different version scheme
Change by Christian Heimes : -- pull_requests: +28389 pull_request: https://github.com/python/cpython/pull/30173 ___ Python tracker <https://bugs.python.org/issue46114> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46114] OpenSSL 3.0 uses different version scheme
Christian Heimes added the comment: New changeset a9b3edb66f2976a5895b6399ee905ac2f27718ac by Christian Heimes in branch '3.9': [3.9] bpo-46114: Fix OpenSSL version check for 3.0.1 (GH-30170) (GH-30173) https://github.com/python/cpython/commit/a9b3edb66f2976a5895b6399ee905ac2f27718ac -- ___ Python tracker <https://bugs.python.org/issue46114> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40280] Consider supporting emscripten/webassembly as a build target
Christian Heimes added the comment: New changeset 0339434835aa74dc78a38ae12ea7d2973c144eb1 by Christian Heimes in branch 'main': bpo-40280: Add Tools/wasm with helpers for cross building (GH-29984) https://github.com/python/cpython/commit/0339434835aa74dc78a38ae12ea7d2973c144eb1 -- ___ Python tracker <https://bugs.python.org/issue40280> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46132] Attempting to create an enum with slots silently fails
Christian Heimes added the comment: The primary purpose of __slots__ is not to limit attribute assignment. Slots are useful to define types that have a smaller memory footprint than types. You are getting the expected behavior. Enum parent class does not have __slots__ and therefore automatically has a __dict__. You could make an argument to add __slots__ to Enum, but that would be a new feature for 3.11. -- nosy: +christian.heimes ___ Python tracker <https://bugs.python.org/issue46132> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46136] "dh low key " issue when try to connect mysql
Christian Heimes added the comment:
DH_KEY_TOO_SMALL means that you are using weak and easy to break keys for your
connections. Recent versions of OpenSSL prevent insecure connections. You can
lower the security setting for a context with:
>>> import ssl
>>> context = ssl.create_default_context()
>>> context.set_ciphers("DEFAULT@SECLEVEL=1")
You need to figure out yourself how to pass an insecure context to your
database connector.
--
resolution: -> wont fix
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue46136>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46149] FIPS usedforsecurity flag is no longer functional with OpenSSL 3.0.0
Christian Heimes added the comment: This is a known issue, see #40479. OpenSSL 3.0.0 new provider system requires a major redesign of hashlib module's internals. It's not a trivial change. My first attempt GH-19878 has some flaws and introduces a performance regression. -- superseder: -> Port _hashlib to OpenSSL 3.0.0 ___ Python tracker <https://bugs.python.org/issue46149> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46148] Optimize pathlib
Christian Heimes added the comment: Please provide benchmarks and reasons in the ticket. A BPO issue should contain all relevant information for a change. -- nosy: +christian.heimes ___ Python tracker <https://bugs.python.org/issue46148> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46149] FIPS usedforsecurity flag is no longer functional with OpenSSL 3.0.0
Christian Heimes added the comment: Your patch gets the work done, but it's even slower than my WIP patch set. Hashing is a performance critical path. The new fetch() API in OpenSSL 3.0.0 is substantially slower than the old OpenSSL 1.1.1 APIs. Python 3.9 and earlier still support OpenSSL 1.0.2. I removed support for OpenSSL < 1.1.1 for Python 3.10. There are approvied FIPS providers for OpenSSL 1.1.1, e.g. RHEL 8 has a certified FIPS module for OpenSSL 1.1.1. -- ___ Python tracker <https://bugs.python.org/issue46149> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46152] rename wave.py class nane
Christian Heimes added the comment: Backwards incompatible changes are out of scope. -- nosy: +christian.heimes resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46152> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46156] 3.9.9: python built-in SSL module unable to connect to an IIS server (104 Connection reset by peer), but pyopenssl works fine
Christian Heimes added the comment: I need more information to diagnose the issue. Could you please provide: - your operating system and vendor/distribution - your OpenSSL version (ssl.OPENSSL_VERSION) - how did you install Python (self-compiled, pyenv, system Python)? - how did you install PyOpenSSL and cryptography? - the full output of: openssl s_client -connect webapi.remote:52100 -- ___ Python tracker <https://bugs.python.org/issue46156> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44598] test_constructor (test.test_ssl.ContextTests) ... Fatal Python error: Segmentation fault
Christian Heimes added the comment: You are using a OpenSSL build with custom, additional patches and your code is crashing somewhere in OpenSSL. It is likely that your patches are causing issue. I'm not going to provide free service for custom builds. -- assignee: christian.heimes -> nosy: +christian.heimes resolution: -> third party status: open -> closed ___ Python tracker <https://bugs.python.org/issue44598> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46165] pythin is core dumping with SIGILL in pytest of the jupyter-server
Christian Heimes added the comment: The traceback indicates that it's a problem with a 3rd party extension module and not a bug in CPython core. The C stack suggests that your copy of libargon2 is the root cause. -- nosy: +christian.heimes resolution: -> third party stage: -> resolved status: open -> closed type: -> crash ___ Python tracker <https://bugs.python.org/issue46165> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46208] os.path.normpath change between 3.11.0a2 and 3.11.0a3+
Christian Heimes added the comment: The issue could be related to 99fcf1505218464c489d419d4500f126b6d6dc28 / bpo-45582. -- nosy: +christian.heimes, steve.dower ___ Python tracker <https://bugs.python.org/issue46208> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46232] Client certificates with UniqueIdentifier in the subject break ssl.peer_certificate()
Change by Christian Heimes : -- assignee: christian.heimes -> versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue46232> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46232] Client certificates with UniqueIdentifier in the subject break ssl.peer_certificate()
Change by Christian Heimes : -- keywords: +patch pull_requests: +28564 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30351 ___ Python tracker <https://bugs.python.org/issue46232> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46243] flash drive
Change by Christian Heimes : -- Removed message: https://bugs.python.org/msg409585 ___ Python tracker <https://bugs.python.org/issue46243> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46243] flash drive
New submission from Christian Heimes : spam -- nosy: +christian.heimes resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46243> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46252] SSLWantReadError causes _SelectorSocketTransport to close
Change by Christian Heimes : -- assignee: christian.heimes -> ___ Python tracker <https://bugs.python.org/issue46252> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46263] FreeBSD buildbots cannot compile Python
Christian Heimes added the comment: On my FreeBSD 13 VM the sysconfig data module is build/lib.freebsd-13.0-RELEASE-amd64-3.11-pydebug/_sysconfigdata_d_freebsd13_.py It does not have any multiarch suffix. The multiarch suffix is detected by configure.ac. Did FreeBSD 14.0's CC get support for "cc --print-multiarch"? I found a related FreeBSD bug https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258377 -- nosy: +christian.heimes ___ Python tracker <https://bugs.python.org/issue46263> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46263] FreeBSD buildbots cannot compile Python
Change by Christian Heimes : -- keywords: +patch pull_requests: +28616 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30410 ___ Python tracker <https://bugs.python.org/issue46263> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46263] FreeBSD buildbots cannot compile Python
Christian Heimes added the comment: I have tested my PR on a FreeBSD VM. Python fails to compile on main and builds correctly with my patch. -- components: +Build versions: +Python 3.10, Python 3.9 ___ Python tracker <https://bugs.python.org/issue46263> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46264] 'I'.lower() should give non dotted i for LANG=tr_TR
Christian Heimes added the comment: Python's stdlib does not support locale aware unicode transformations. I recommend that you check out https://pypi.org/project/PyICU . -- nosy: +christian.heimes ___ Python tracker <https://bugs.python.org/issue46264> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46263] FreeBSD buildbots cannot compile Python
Christian Heimes added the comment: New changeset cae55542d23e606dde9819d5dadd7430085fcc77 by Christian Heimes in branch 'main': bpo-46263: Don't use MULTIARCH on FreeBSD (#30410) https://github.com/python/cpython/commit/cae55542d23e606dde9819d5dadd7430085fcc77 -- ___ Python tracker <https://bugs.python.org/issue46263> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46263] FreeBSD buildbots cannot compile Python
Change by Christian Heimes : -- priority: release blocker -> normal ___ Python tracker <https://bugs.python.org/issue46263> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46263] FreeBSD buildbots cannot compile Python
Christian Heimes added the comment: I have backported the patch to all versions that receive regular fixes. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> compile error ___ Python tracker <https://bugs.python.org/issue46263> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46009] sending non-None values makes generator raise StopIteration on next access
Christian Heimes added the comment: GH-30367 broke Emscripten WASM builds. I'm getting a "null function or function signature mismatch" error from the WASM engine: RuntimeError: null function or function signature mismatch at _PyEval_EvalFrameDefault (http://localhost:8000/python.wasm:wasm-function[2383]:0x103a6f) at gen_send_ex2 (http://localhost:8000/python.wasm:wasm-function[886]:0x4f35d) at gen_iternext (http://localhost:8000/python.wasm:wasm-function[893]:0x4fb1a) at builtin_any (http://localhost:8000/python.wasm:wasm-function[3927]:0x198a87) at cfunction_vectorcall_O (http://localhost:8000/python.wasm:wasm-function[403]:0x201ae) at PyObject_Vectorcall (http://localhost:8000/python.wasm:wasm-function[2426]:0x109dbe) at _PyEval_EvalFrameDefault (http://localhost:8000/python.wasm:wasm-function[2383]:0x1062ba) at _PyEval_Vector (http://localhost:8000/python.wasm:wasm-function[2380]:0xfc366) at PyEval_EvalCode (http://localhost:8000/python.wasm:wasm-function[2379]:0xfc014) at _PyConfig_InitPathConfig (http://localhost:8000/python.wasm:wasm-function[6871]:0x2924b0) I'm trying to get more debug information now. -- nosy: +christian.heimes resolution: fixed -> stage: resolved -> needs patch status: closed -> open ___ Python tracker <https://bugs.python.org/issue46009> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46009] sending non-None values makes generator raise StopIteration on next access
Christian Heimes added the comment:
I got more debug symbols:
python.js:235 Uncaught RuntimeError: null function or function signature
mismatch
at _PyEval_EvalFrameDefault (ceval.c:4247)
at _PyEval_EvalFrame (pycore_ceval.h:48)
at gen_send_ex2 (genobject.c:219)
at gen_iternext (genobject.c:583)
at builtin_any (bltinmodule.c:384)
at cfunction_vectorcall_O (methodobject.c:516)
at _PyObject_VectorcallTstate.11 (pycore_call.h:89)
at PyObject_Vectorcall (call.c:298)
at _PyEval_EvalFrameDefault (ceval.c:4625)
at _PyEval_EvalFrame.1 (pycore_ceval.h:48)
The culprit is
PyObject *next = (*Py_TYPE(iter)->tp_iternext)(iter);
in the TARGET(FOR_ITER) target. An additional NULL check resolves the problem.
index 953876f6226..390400b3246 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -4244,7 +4244,12 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate,
InterpreterFrame *frame, int thr
PREDICTED(FOR_ITER);
/* before: [iter]; after: [iter, iter()] *or* [] */
PyObject *iter = TOP();
-PyObject *next = (*Py_TYPE(iter)->tp_iternext)(iter);
+PyObject *(*iternext)(PyObject *) = *Py_TYPE(iter)->tp_iternext;
+if (iternext == NULL) {
+PyErr_BadInternalCall();
+goto error;
+ }
+PyObject *next = iternext(iter);
if (next != NULL) {
PUSH(next);
PREDICT(STORE_FAST);
--
___
Python tracker
<https://bugs.python.org/issue46009>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46009] sending non-None values makes generator raise StopIteration on next access
Change by Christian Heimes : -- versions: +Python 3.11 ___ Python tracker <https://bugs.python.org/issue46009> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46009] sending non-None values makes generator raise StopIteration on next access
Christian Heimes added the comment: False alarm ... the frozen files for getpath.py were out of date. I can no longer reproduce the issue after a hard git clean and rebuild. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46009> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46271] frozen modules are not regenerated on bytecode magic change when cross building
New submission from Christian Heimes : The Makefile rules for frozen header files have a dependency on $(FREEZE_MODULE_BOOTSTRAP_DEPS) or $(FREEZE_MODULE_DEPS). For normal builds this dependency will trigger a refresh of the frozen header files when the byte code magic changes: FREEZE_MODULE_BOOTSTRAP_DEPS=Programs/_freeze_module FREEZE_MODULE_DEPS=_bootstrap_python Both binaries depend on object files which indirectly have a dependency on all core header files $(PYTHON_HEADERS). However cross builds use an external Python binary. Neither $(FREEZE_MODULE_BOOTSTRAP_DEPS) nor $(FREEZE_MODULE_DEPS) add an indirect dependency on $(PYTHON_HEADERS). The frozen header files are not rebuilt when any header file like opcode.h is modified. This causes hard to debug issues like https://bugs.python.org/issue46009#msg409770 Fix: all frozen header files should also depend on $(PYTHON_HEADERS) -- components: Cross-Build messages: 409794 nosy: Alex.Willmer, christian.heimes, gvanrossum priority: normal severity: normal status: open title: frozen modules are not regenerated on bytecode magic change when cross building type: behavior versions: Python 3.11 ___ Python tracker <https://bugs.python.org/issue46271> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46263] FreeBSD buildbots cannot compile Python
Christian Heimes added the comment:
The test_capi check for check_pyobject_freed_is_freed() is failing because
FreeBSD 14.0 uses jemalloc, which performs its own dead memory cleaning.
jemalloc's free() fills freed memory with byte 0x5a, which overrides Python's
0xdd marker.
$ PYTHONMALLOC=malloc_debug gdb ./python
(gdb) b check_pyobject_freed_is_freed
(gdb) b _PyMem_DebugRawFree
(gdb) disable 2
(gdb) run -X faulthandler t.py
...
Breakpoint 1, check_pyobject_freed_is_freed (self=0x800f16fe0,
_unused_args=0x0) at Modules/_testcapimodule.c:5032
5032PyObject *op = PyObject_CallNoArgs((PyObject *)&PyBaseObject_Type);
(gdb) enable 2
(gdb) c
Continuing.
Breakpoint 2, _PyMem_DebugRawFree (ctx=0x5f8ad8 <_PyMem_Debug+96>,
p=0x800e1a0a0) at Objects/obmalloc.c:2544
2544if (p == NULL) {
(gdb) n
2549uint8_t *q = (uint8_t *)p - 2*SST; /* address returned from malloc
*/
(gdb) n
2552_PyMem_DebugCheckAddress(__func__, api->api_id, p);
(gdb) n
2553nbytes = read_size_t(q);
(gdb) n
2554nbytes += PYMEM_DEBUG_EXTRA_BYTES;
(gdb) n
2555memset(q, PYMEM_DEADBYTE, nbytes);
(gdb) n
2556api->alloc.free(api->alloc.ctx, q);
(gdb) p *q@20
$18 = '\335' ,
(gdb) n
_PyMem_RawFree (ctx=0x0, ptr=0x800e1a090) at Objects/obmalloc.c:127
127 {
(gdb) n
128 free(ptr);
(gdb) p free
$19 = {void (void *)} 0x8006002c0
(gdb) s
__free (ptr=0x800e1a090) at jemalloc_jemalloc.c:2848
2848jemalloc_jemalloc.c: No such file or directory.
(gdb) n
2851in jemalloc_jemalloc.c
(gdb)
2852in jemalloc_jemalloc.c
...
(gdb)
check_pyobject_freed_is_freed (self=0x800f16fe0, _unused_args=0x0) at
Modules/_testcapimodule.c:5038
5038Py_SET_REFCNT(op, 1);
(gdb) p *(char*)op@20
$23 = 'Z'
--
___
Python tracker
<https://bugs.python.org/issue46263>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46263] FreeBSD buildbots cannot compile Python
Christian Heimes added the comment: $ PYTHONMALLOC=malloc_debug ./python t.py Traceback (most recent call last): File "/usr/home/heimes/dev/python/cpython/t.py", line 4, in _testcapi.check_pyobject_freed_is_freed() ^ _testcapi.error: check_pyobject_freed_is_freed: object is not seen as freed $ echo $? 1 $ MALLOC_CONF="junk:false" PYTHONMALLOC=malloc_debug ./python t.py $ echo $? 0 -- ___ Python tracker <https://bugs.python.org/issue46263> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46263] FreeBSD buildbots cannot compile Python
Change by Christian Heimes : -- pull_requests: +28641 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/30434 ___ Python tracker <https://bugs.python.org/issue46263> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46263] FreeBSD buildbots cannot compile Python
Christian Heimes added the comment: New changeset b259015c1079744dbe3d58bd4c27757a6df9d1c6 by Miss Islington (bot) in branch '3.9': [3.9] bpo-46263: FreeBSD 14.0 jemalloc workaround for junk bytes of freed memory (GH-30434) (GH-30437) https://github.com/python/cpython/commit/b259015c1079744dbe3d58bd4c27757a6df9d1c6 -- ___ Python tracker <https://bugs.python.org/issue46263> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46263] FreeBSD buildbots cannot compile Python
Christian Heimes added the comment: test_capi is fixed now. test_embed is still an issue. -- ___ Python tracker <https://bugs.python.org/issue46263> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46263] FreeBSD buildbots cannot compile Python
Change by Christian Heimes : -- pull_requests: +28647 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30440 ___ Python tracker <https://bugs.python.org/issue46263> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45723] Improve and simplify configure.ac checks
Change by Christian Heimes : -- pull_requests: +28654 pull_request: https://github.com/python/cpython/pull/30449 ___ Python tracker <https://bugs.python.org/issue45723> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45723] Improve and simplify configure.ac checks
Christian Heimes added the comment: Thanks William! -- ___ Python tracker <https://bugs.python.org/issue45723> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45723] Improve and simplify configure.ac checks
Change by Christian Heimes : -- priority: normal -> release blocker ___ Python tracker <https://bugs.python.org/issue45723> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45723] Improve and simplify configure.ac checks
Christian Heimes added the comment: New changeset 994f90c0772612780361e1dc5fa5223dce22f70a by Christian Heimes in branch 'main': bpo-45723: Fix detection of epoll (#30449) https://github.com/python/cpython/commit/994f90c0772612780361e1dc5fa5223dce22f70a -- ___ Python tracker <https://bugs.python.org/issue45723> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45723] Improve and simplify configure.ac checks
Change by Christian Heimes : -- priority: release blocker -> normal ___ Python tracker <https://bugs.python.org/issue45723> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46281] Python 3.10.1 build errors on Ubuntu 18.04
Christian Heimes added the comment: Ubuntu 18.04's OpenSSL is too old and unsupported by 3.10. OpenSSL 1.0.2 is EOL since 2019. You either need to update to a more recent version of Ubuntu or build your own OpenSSL. -- nosy: +christian.heimes resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46281> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45661] [meta] Freeze commonly used stdlib modules.
Christian Heimes added the comment: Deep freezing is not a miracle cure for startup performance issues. Every additional frozen module increases the size of the main binary / shared library. This can have negative affects for performance and usability, too. For WASM builds we want to make the wasm binary as small as possible. -- nosy: +christian.heimes ___ Python tracker <https://bugs.python.org/issue45661> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40479] Port _hashlib to OpenSSL 3.0.0
Change by Christian Heimes : -- pull_requests: +28659 pull_request: https://github.com/python/cpython/pull/30455 ___ Python tracker <https://bugs.python.org/issue40479> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46281] Python 3.10.1 build errors on Ubuntu 18.04
Christian Heimes added the comment: You seem to have OpenSSL 1.0.2 headers installed somewhere on your computer. Python's configure script and build system uses these headers instead of the system headers from libssl-dev. -- ___ Python tracker <https://bugs.python.org/issue46281> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40479] Port _hashlib to OpenSSL 3.0.0
Christian Heimes added the comment: Simple benchmark with openssl-3.0.0-5.el9.x86_64 With custom EVP_MD cache: $ ./python -m timeit -s "from hashlib import md5" "md5(b'12345678', usedforsecurity=False).digest()"50 loops, best of 5: 520 nsec per loop $ ./python -m timeit -s "from hashlib import sha512" "sha512(b'12345678', usedforsecurity=False).digest()" 50 loops, best of 5: 730 nsec per loop Without EVP_MD cache: $ ./python -m timeit -s "from hashlib import md5" "md5(b'', usedforsecurity=False).digest()" 50 loops, best of 5: 807 nsec per loop $ ./python -m timeit -s "from hashlib import sha512" "sha512(b'12345678', usedforsecurity=False).digest()" 20 loops, best of 5: 1.03 usec per loop -- ___ Python tracker <https://bugs.python.org/issue40479> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40280] Consider supporting emscripten/webassembly as a build target
Christian Heimes added the comment: New changeset 5c66414b5561c54e7a0f4bde8cc3271908ea525e by Ethan Smith in branch 'main': bpo-40280: Disable epoll_create in Emscripten config.site (GH-30494) https://github.com/python/cpython/commit/5c66414b5561c54e7a0f4bde8cc3271908ea525e -- ___ Python tracker <https://bugs.python.org/issue40280> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46313] SSLObject does not raise SSLEOFError on OpenSSL 3
Change by Christian Heimes : -- assignee: christian.heimes -> type: security -> behavior ___ Python tracker <https://bugs.python.org/issue46313> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46315] Add support for WebAssembly System Interface (wasm32-wasi)
New submission from Christian Heimes : WASI is another WebAssembly platform similar to Emscripten (bpo-40280). Simply speaking Emscripten binaries (wasm32-emscripten) run inside a browser while WASI binaries target standalone runtimes like wasmtime [2][3] on the host. The lines are a bit blurry, as it is possible to run WASI binaries in the browser with help of JS-polyfills. WASI provides compile once, run anyway with JIT/AOT and sandboxing. WASI is still under development and is lacking several core features: - threading support and pthread API - sockets - signals are emulated (_WASI_EMULATED_SIGNAL and -lwasi-emulated-signal) - DAC APIs like chmod, umask - user-related APIs like pwd, grp - dup(), dup2(), F_DUPFD For 3.11 I plan to fix our use of #ifdef HAVE_FEATURE to make it easier to experiment with WASI. The pthread APIs need stubs, which I won't commit to 3.11 upstream yet. [1] https://wasi.dev/ [2] https://github.com/bytecodealliance/wasmtime [3] https://hacks.mozilla.org/2019/03/standardizing-wasi-a-webassembly-system-interface/ -- assignee: christian.heimes components: Build messages: 410153 nosy: christian.heimes priority: normal severity: normal status: open title: Add support for WebAssembly System Interface (wasm32-wasi) type: enhancement versions: Python 3.11 ___ Python tracker <https://bugs.python.org/issue46315> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46313] SSLObject does not raise SSLEOFError on OpenSSL 3
Christian Heimes added the comment: This is not a security issue because OpenSSL 3.0.0 is not officially supported yet. OpenSSL 3.0.0 support is prelimiary, experimental, and provisional. >From https://docs.python.org/3/whatsnew/3.10.html#ssl > The ssl module has preliminary support for OpenSSL 3.0.0. -- ___ Python tracker <https://bugs.python.org/issue46313> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46315] Add support for WebAssembly System Interface (wasm32-wasi)
Change by Christian Heimes : -- keywords: +patch pull_requests: +28712 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30507 ___ Python tracker <https://bugs.python.org/issue46315> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46313] SSLObject does not raise SSLEOFError on OpenSSL 3
Christian Heimes added the comment: Petr and Charis are aware that there are issues with OpenSSL 3.0 support. RHEL 9 FIPS support is broken as well. It's also documented in the release notes and I just wrote an email to python-dev, too. -- ___ Python tracker <https://bugs.python.org/issue46313> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46322] Invalid file path of SSLKEYLOGFILE throw FileNotFoundError
Christian Heimes added the comment: The code works as intended and design. The keylog file is created in append-only mode when the file does not exist yet. A missing, inaccessible, or read-only directory or an invalid path raise an exception by design. Errors should not pass silently. The error informs the user of a misconfiguration. Would accept a documentation update and a better error message for missing parent directory. Your proposed workaround is not acceptable. Python would no longer create a new keylog file and user would no longer get a hint that their configuration is wrong. -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue46322> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46315] Add support for WebAssembly System Interface (wasm32-wasi)
Christian Heimes added the comment:
dup() is required by _PyTokenizer_FindEncodingFilename(). I came up with this
hack:
// from wasi-libc libc-top-half/musl/src/internal/stdio_impl.h
struct _IO_FILE {
unsigned flags;
unsigned char *rpos, *rend;
int (*close)(FILE *);
unsigned char *wend, *wpos;
// incomplete
};
static int
dummy_close(FILE *fp) {
return 0;
};
static FILE *
_Py_fdopen_borrow(int fd, const char *mode) {
FILE *fp = fdopen(fd, mode);
((struct _IO_FILE*)fp)->close = dummy_close;
return fp;
}
keithw on #wasi pointed out that fopencookie() can archive the same outcome
without resorting to ABI-specific hack. A trivial implementation is straight
forward:
typedef union {
void *cookie;
int fd;
} borrowed;
static ssize_t
borrow_read(void *cookie, char *buf, size_t size)
{
borrowed b;
b.cookie = cookie;
return read(b.fd, (void *)buf, size);
}
static ssize_t
borrow_write(void *cookie, const char *buf, size_t size)
{
errno = ENOTSUP;
return -1;
}
static int
borrow_seek(void *cookie, off_t *off, int whence)
{
borrowed b;
b.cookie = cookie;
off_t pos;
pos = lseek(b.fd, *off, whence);
if (pos == (off_t)-1) {
return -1;
} else {
*off = pos;
return 0;
}
}
static int
borrow_close(void *cookie)
{
// does not close(fd)
return 0;
}
FILE *
_Py_fdopen_borrow(int fd, const char *mode) {
// only support read for now
if (strcmp(mode, "r") != 0) {
return NULL;
}
cookie_io_functions_t cookie_io = {
borrow_read, borrow_write, borrow_seek, borrow_close
};
// cookie is just the fd
borrowed b;
b.fd = fd;
return fopencookie(b.cookie, "r", cookie_io);
}
--
___
Python tracker
<https://bugs.python.org/issue46315>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46313] SSLObject does not raise SSLEOFError on OpenSSL 3
Change by Christian Heimes : -- nosy: -christian.heimes ___ Python tracker <https://bugs.python.org/issue46313> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46313] SSLObject does not raise SSLEOFError on OpenSSL 3
Christian Heimes added the comment: That's not how OSS work. Python core development does not have resources to provide proactive support for all Linux distros in the world. We provide documentation and guidance. I assume that paid package maintainers of a commercial Linux vendor perform their due diligence, read the release notes, and follow upstream development discussions. PS: I'm unsubscribing from this bpo now. -- ___ Python tracker <https://bugs.python.org/issue46313> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39298] add BLAKE3 to hashlib
Christian Heimes added the comment: You could upload the code to https://test.pypi.org/ -- ___ Python tracker <https://bugs.python.org/issue39298> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40280] Consider supporting emscripten/webassembly as a build target
Change by Christian Heimes : -- pull_requests: +28738 pull_request: https://github.com/python/cpython/pull/30538 ___ Python tracker <https://bugs.python.org/issue40280> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46346] New compilation warnings on Windows
Change by Christian Heimes : -- dependencies: +_Py_stat and _Py_wstat using incorrect type for status argument nosy: +christian.heimes, pablogsal priority: normal -> release blocker stage: -> needs patch type: -> behavior ___ Python tracker <https://bugs.python.org/issue46346> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46303] _Py_stat and _Py_wstat using incorrect type for status argument
Change by Christian Heimes : -- priority: normal -> release blocker ___ Python tracker <https://bugs.python.org/issue46303> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46303] _Py_stat and _Py_wstat using incorrect type for status argument
Christian Heimes added the comment: I set the release blocker flag for the ticket. -- nosy: +christian.heimes ___ Python tracker <https://bugs.python.org/issue46303> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40280] Consider supporting emscripten/webassembly as a build target
Change by Christian Heimes : -- pull_requests: +28753 pull_request: https://github.com/python/cpython/pull/30552 ___ Python tracker <https://bugs.python.org/issue40280> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46303] _Py_stat and _Py_wstat using incorrect type for status argument
Christian Heimes added the comment: It's unlikely that you can reproduce the issue with clang. We use MSVC and a manually maintained pyconfig.h on Windows. -- ___ Python tracker <https://bugs.python.org/issue46303> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46353] 'pydoc -k' fails when some module's loader is not found
Christian Heimes added the comment: An exception is not a crash. We reserve the word "crash" for segfaults. -- nosy: +christian.heimes title: 'pydoc -k' crashes when some module's loader is not found -> 'pydoc -k' fails when some module's loader is not found type: crash -> behavior ___ Python tracker <https://bugs.python.org/issue46353> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40280] Consider supporting emscripten/webassembly as a build target
Christian Heimes added the comment: New changeset 43839ba438368a50f22f718d4ce8ce607c17046c by Christian Heimes in branch 'main': bpo-40280: Add --with-emscripten-target to build for browser or node (GH-30552) https://github.com/python/cpython/commit/43839ba438368a50f22f718d4ce8ce607c17046c -- ___ Python tracker <https://bugs.python.org/issue40280> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40280] Consider supporting emscripten/webassembly as a build target
Change by Christian Heimes : -- pull_requests: +28760 pull_request: https://github.com/python/cpython/pull/30559 ___ Python tracker <https://bugs.python.org/issue40280> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40280] Consider supporting emscripten/webassembly as a build target
Christian Heimes added the comment: New changeset e34c9367f8e0068ca4bcad9fb5c2c1024d02a77d by Christian Heimes in branch 'main': bpo-40280: Allow to compile _testcapi as builtin module (GH-30559) https://github.com/python/cpython/commit/e34c9367f8e0068ca4bcad9fb5c2c1024d02a77d -- ___ Python tracker <https://bugs.python.org/issue40280> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
