[issue43179] Remove 31/32-bit s390 Linux support (s390-linux-gnu triplet)

2022-01-31 Thread Florian Weimer
Florian Weimer added the comment: The report/justification for the removal is simply incorrect. Linux still supports s390-*-linux-gnu in user mode. The GNU toolchain is maintained, and the glibc testsuite is in good shape. Some distributions still support s390 (31-bit) applications. Others

[issue44409] compile raises SyntaxError with undocumented lineno attribute None

2021-06-14 Thread Florian Weimer
Florian Weimer added the comment: I suppose changing the documentation to mention `None` would be possible as well, but restoring the old behavior works for me too. Thanks. -- ___ Python tracker <https://bugs.python.org/issue44

[issue44409] compile raises SyntaxError with undocumented lineno attribute None

2021-06-13 Thread Florian Weimer
New submission from Florian Weimer : This example results in an undocumented value None for the lineno attribute: ``` source = b"\xef\xbb\xbf#coding: utf8\nprint('\xe6\x88\x91')\n" try: compile(source, filename="example.py", mode="exec") except Syn

[issue39460] test_zipfile: test_add_file_after_2107() sometimes fails on Fedora Rawhide 3.x

2020-01-29 Thread Florian Weimer
Florian Weimer added the comment: I believe you might be observing an XFS limitation in combination with a Linux VFS bug. On disk, XFS only supports 32-bit timestamps: typedef struct xfs_timestamp { __be32 t_sec; /* timestamp seconds */ __be32

[issue37154] test_utf8_mode: test_env_var() fails on AMD64 Fedora Rawhide Clang Installed 3.7

2019-06-05 Thread Florian Weimer
Florian Weimer added the comment: Just to be clear: glibc-all-langpacks normally contains the data from glibc-langpack-en, but a packaging bug caused removal of the /usr/lib/locale/locale-archive file during upgrades. This only applies to upgrades. New installations are fine. Details

[issue36659] distutils UnixCCompiler: Remove standard library path from rpath

2019-04-23 Thread Florian Weimer
Florian Weimer added the comment: Note that linking with -Wl,-rpath,/usr/lib64 (even if it's redundant) disables part of the ld.so cache on Linux. Instead, paths under /usr/lib64 are probed explicitly. This can add quite a few failing open/openat system calls to the process startup

[issue36659] distutils UnixCCompiler: Remove standard library path from rpath

2019-04-23 Thread Florian Weimer
Change by Florian Weimer : -- nosy: +fweimer ___ Python tracker <https://bugs.python.org/issue36659> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-04-15 Thread Florian Weimer
Florian Weimer added the comment: Minor correction: glibc malloc follows ABI on x86-64 and always returns a 16-byte-aligned pointer, independently of allocation size. However, other mallocs (such as jemalloc and tcmalloc) may return pointers with less alignment for allocation sizes less

[issue36618] clang expects memory aligned on 16 bytes, but pymalloc aligns to 8 bytes

2019-04-15 Thread Florian Weimer
Florian Weimer added the comment: The issue is related to the definition of PyCArgObject: typedef struct tagPyCArgObject PyCArgObject; struct tagPyCArgObject { PyObject_HEAD ffi_type *pffi_type; char tag; union { char c; char b; short h; int i

[issue36618] clang expects memory aligned on 16 bytes, but pymalloc aligns to 8 bytes

2019-04-15 Thread Florian Weimer
Change by Florian Weimer : -- nosy: +fweimer ___ Python tracker <https://bugs.python.org/issue36618> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36024] ctypes: test_ctypes test_callbacks() crash on AArch64

2019-02-18 Thread Florian Weimer
Florian Weimer added the comment: Filed as an libffi issue: https://github.com/libffi/libffi/issues/470 -- ___ Python tracker <https://bugs.python.org/issue36

[issue36024] ctypes: test_ctypes test_callbacks() crash on AArch64

2019-02-18 Thread Florian Weimer
Florian Weimer added the comment: We believe this is a libffi bug. On certain aarch64 implementations, it is necessary to flush both the writable mapping and the executable mapping. I have a patch which I confirmed to work. -- ___ Python

[issue36024] ctypes: test_ctypes test_callbacks() crash on AArch64

2019-02-18 Thread Florian Weimer
Change by Florian Weimer : -- nosy: +fweimer ___ Python tracker <https://bugs.python.org/issue36024> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35772] test_tarfile fails on ppc64le when using tmpfs filesystem

2019-01-18 Thread Florian Weimer
Florian Weimer added the comment: offsets = ( 4096, 12288, 20480, 28672, 36864, 45056, 53248, 61440, 69632, 77824,) These offsets are less than 64 KiB apart. On systems with a 64 KiB page size, this will not result in a sparse file on tmpfs because the effective block size

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-17 Thread Florian Weimer
Florian Weimer added the comment: No, GCC will optimize away the union. -- ___ Python tracker <https://bugs.python.org/issue35752> ___ ___ Python-bugs-list m

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-17 Thread Florian Weimer
Florian Weimer added the comment: We don't know yet if the GCC bug is specific to POWER. That depends on what causes it. Other targets my have double-to-float conversion instructions which hard-code the wrong rounding mode. -- ___ Python

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-17 Thread Florian Weimer
Florian Weimer added the comment: I believe this is a GCC bug, and filed <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88892>. -- ___ Python tracker <https://bugs.python.org/i

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-01-17 Thread Florian Weimer
Change by Florian Weimer : -- nosy: +fweimer ___ Python tracker <https://bugs.python.org/issue35752> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34663] Support POSIX_SPAWN_USEVFORK flag in posix_spawn

2018-09-19 Thread Florian Weimer
Florian Weimer added the comment: I wouldn't bother with POSIX_SPAWN_USEVFORK on GNU/Linux. Current versions of glibc always use a vfork-style clone call, so there would be a difference on older versions only. But there, the vfork code has subtle bugs, so using POSIX_SPAWN_USEVFORK

[issue33312] ubsan undefined behavior sanitizer flags struct _dictkeysobject (PyDictKeysObj)

2018-04-20 Thread Florian Weimer
Florian Weimer <fwei...@redhat.com> added the comment: Why does the code even need the flexible struct member? If you use the surrounding backing store directly, the aliasing issue disappears if the backing store is untyped memory (if not, you have the aliasing problem with the

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2018-01-31 Thread Florian Weimer
Florian Weimer <fwei...@redhat.com> added the comment: This bug causes miscompilation of Python 2.7 by GCC 8 on x86-64 (with no sanitizers enabled, just compiler optimization). I think this is a fairly conservative way for papering over the issue: https://mail.python.org/pipermail/pyth

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2018-01-31 Thread Florian Weimer
Change by Florian Weimer <fwei...@redhat.com>: -- versions: +Python 2.7 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue27987> ___

[issue31912] PyMem_Malloc() should guarantee alignof(max_align_t)

2018-01-31 Thread Florian Weimer
Florian Weimer <fwei...@redhat.com> added the comment: max_align_t is a bit of a kitchen sink and will specify larger and larger alignment in the future, e.g. 32-byte alignment for a complex _Float128 type (a pair of two _Float128 variables). The alignment is also not generally

[issue31343] Include major(), minor(), makedev() from sysmacros

2017-10-17 Thread Florian Weimer
Change by Florian Weimer <fwei...@redhat.com>: -- nosy: +fweimer ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31343> ___ __

[issue30013] Compiler warning in Modules/posixmodule.c

2017-10-17 Thread Florian Weimer
Change by Florian Weimer <fwei...@redhat.com>: -- nosy: +fweimer ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue30013> ___ __

[issue17980] CVE-2013-2099 ssl.match_hostname() trips over crafted wildcard names

2013-05-17 Thread Florian Weimer
Florian Weimer added the comment: * pattern is replace with '[^.]+' regex, so I may not cause the exponential complexity issue. (I didn't check.) A possessive quantifier might also help, that is [^.]+?. -- ___ Python tracker rep

[issue17980] CVE-2013-2099 ssl.match_hostname() trips over crafted wildcard names

2013-05-17 Thread Florian Weimer
Florian Weimer added the comment: Antoine, support for OpenSSL host name matching is quite new: http://www.openssl.org/docs/crypto/X509_check_host.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17980

[issue17980] CVE-2013-2099 ssl.match_hostname() trips over crafted wildcard names

2013-05-16 Thread Florian Weimer
Florian Weimer added the comment: OpenSSL supports only a single wildcard character. In my tests, I used a host name like .example.org, and a dNSName like a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*.example.org. Quadratic behavior wouldn't

[issue17980] CVE-2013-2099 ssl.match_hostname() trips over crafted wildcard names

2013-05-16 Thread Florian Weimer
Florian Weimer added the comment: The host name is looked up to get the IP address to connect to. The lookup will fail if the host name is longer than 255 characters, and the crafted certificate is never retrieved. -- ___ Python tracker rep

[issue17980] ssl.match_hostname() trips over crafted wildcard names

2013-05-15 Thread Florian Weimer
New submission from Florian Weimer: If the name in the certificate contains many * characters, matching the compiled regular expression against the host name can take a very long time. Certificate validation happens before host name checking, so I think this is a minor issue only because

[issue10441] some stdlib modules need to be updated to handle SSL certificate validation

2013-03-08 Thread Florian Weimer
Changes by Florian Weimer fwei...@redhat.com: -- nosy: +fweimer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10441 ___ ___ Python-bugs-list

[issue1621] Do not assume signed integer overflow behavior

2013-03-08 Thread Florian Weimer
Changes by Florian Weimer fwei...@redhat.com: -- nosy: +fweimer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1621 ___ ___ Python-bugs-list

[issue7672] _ssl module overwrites existing thread safety callbacks

2013-03-08 Thread Florian Weimer
Changes by Florian Weimer fwei...@redhat.com: -- nosy: +fweimer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7672 ___ ___ Python-bugs-list

[issue8106] SSL session management

2013-03-08 Thread Florian Weimer
Changes by Florian Weimer fwei...@redhat.com: -- nosy: +fweimer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8106 ___ ___ Python-bugs-list

[issue10852] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default

2013-03-08 Thread Florian Weimer
Changes by Florian Weimer fwei...@redhat.com: -- nosy: +fweimer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10852 ___ ___ Python-bugs-list

[issue13647] Python SSL stack doesn't securely validate certificate (as client)

2013-03-08 Thread Florian Weimer
Changes by Florian Weimer fwei...@redhat.com: -- nosy: +fweimer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13647 ___ ___ Python-bugs-list

[issue13655] Python SSL stack doesn't have a default CA Store

2013-03-08 Thread Florian Weimer
Changes by Florian Weimer fwei...@redhat.com: -- nosy: +fweimer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13655 ___ ___ Python-bugs-list

[issue13747] ssl_version documentation error

2013-03-08 Thread Florian Weimer
Changes by Florian Weimer fwei...@redhat.com: -- nosy: +fweimer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13747 ___ ___ Python-bugs-list

[issue13403] Option for XMLPRC Server to support HTTPS

2013-03-08 Thread Florian Weimer
Changes by Florian Weimer fwei...@redhat.com: -- nosy: +fweimer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13403 ___ ___ Python-bugs-list

[issue13747] ssl_version documentation error

2013-03-08 Thread Florian Weimer
Florian Weimer added the comment: OpenSSL cross-version updates are sometimes difficult because they invalidate certifications. Updating Python to SSLv23 with SSL_OP_NO_SSLv2 is comparatively easy and also much less riskier. Shall I submit a patch which changes the default? I would also

[issue17347] bsddb._openDBEnv() should not touch current directory

2013-03-04 Thread Florian Weimer
New submission from Florian Weimer: This code: def _openDBEnv(cachesize): e = db.DBEnv() if cachesize is not None: if cachesize = 20480: e.set_cachesize(0, cachesize) else: raise error, cachesize must be = 20480 e.set_lk_detect

[issue8085] PyObject_GC_VarNew should be PyObject_GC_NewVar

2010-03-07 Thread Florian Weimer
New submission from Florian Weimer f...@deneb.enyo.de: The manual mentions the wrong C function (Var and New are transposed). -- assignee: georg.brandl components: Documentation messages: 100580 nosy: fw, georg.brandl severity: normal status: open title: PyObject_GC_VarNew should

[issue4408] re.compile(regexp).groups not documented

2008-11-24 Thread Florian Weimer
New submission from Florian Weimer [EMAIL PROTECTED]: This does result in the expected result 2: re.compile('(.)(.)').groups But as far as I can see, the groups property is missing from the HTML documentation. Please clarify if this an internal interface, or a documentation oversight