[issue35352] test_asyncio fails on RHEL8

2018-11-30 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Also on Fedora the same set of security policies can be set as RHEL8 by utilizing 'update-crypto-policies --set NEXT' -- ___ Python tracker <https://bugs.python.o

[issue35257] Add LDFLAGS_NODIST for the LDFLAGS not intended for propagation to C extensions.

2018-12-04 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- keywords: +patch pull_requests: +10140 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35257] Add LDFLAGS_NODIST for the LDFLAGS not intended for propagation to C extensions.

2018-12-05 Thread Charalampos Stratakis
Change by Charalampos Stratakis : Added file: https://bugs.python.org/file47977/setup.py ___ Python tracker <https://bugs.python.org/issue35257> ___ ___ Python-bug

[issue35257] Add LDFLAGS_NODIST for the LDFLAGS not intended for propagation to C extensions.

2018-12-05 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: So to better illustrate the actual issue I'll be using an example from the python documentation [0][1]. Get the demo.c and the setup.py. Compile cpython first with --with-lto and then compile the demo.c with ./python3 setup.py build. You will n

[issue35257] Add LDFLAGS_NODIST for the LDFLAGS not intended for propagation to C extensions.

2018-12-05 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: And here is the difference between compiling the extension with the current tip, comparing to applying my current draft PR: Master branch with the linker flags propagated: running build running build_ext building 'demo' extension crea

[issue28015] configure --with-lto builds fail when CC=clang on Linux, requires gold linker

2018-12-05 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- pull_requests: +10161, 10162 ___ Python tracker <https://bugs.python.org/issue28015> ___ ___ Python-bugs-list mailin

[issue28015] configure --with-lto builds fail when CC=clang on Linux, requires gold linker

2018-12-05 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- pull_requests: +10161, 10162, 10163 ___ Python tracker <https://bugs.python.org/issue28015> ___ ___ Python-bugs-list mailin

[issue28015] configure --with-lto builds fail when CC=clang on Linux, requires gold linker

2018-12-05 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- pull_requests: +10161 ___ Python tracker <https://bugs.python.org/issue28015> ___ ___ Python-bugs-list mailing list Unsub

[issue35257] Add LDFLAGS_NODIST for the LDFLAGS not intended for propagation to C extensions.

2018-12-05 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: PR has been finalized. -- nosy: +vstinner ___ Python tracker <https://bugs.python.org/issue35257> ___ ___ Python-bug

[issue35257] Avoid leaking linker flags into distutils.

2018-12-05 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- title: Add LDFLAGS_NODIST for the LDFLAGS not intended for propagation to C extensions. -> Avoid leaking linker flags into distutils. ___ Python tracker <https://bugs.python.org/issu

[issue31354] Fixing a bug related to LTO only build

2018-12-07 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Hi Ned, I recently pushed a fix on the master and 3.7 for this exact issue: https://bugs.python.org/issue35351 but it builds on top of https://github.com/python/cpython/pull/10922 which is not yet in 3.6. Thus 3.7 is fine for the rc cutoff. However

[issue35257] Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST

2018-12-10 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: The PR is pending another round of review. -- ___ Python tracker <https://bugs.python.org/issue35257> ___ ___ Python-bug

[issue35454] Fix miscellaneous issues in error handling

2018-12-10 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Maybe a release blocker for 3.7.2 and 3.6.8? -- nosy: +cstratak, ned.deily ___ Python tracker <https://bugs.python.org/issue35

[issue35257] Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST

2018-12-20 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: This change fixes a regression introduced in 3.6.8rc1 with https://bugs.python.org/issue31354 -- ___ Python tracker <https://bugs.python.org/issue35

[issue35257] Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST

2018-12-20 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: And also 3.7.2rc1 -- ___ Python tracker <https://bugs.python.org/issue35257> ___ ___ Python-bugs-list mailing list Unsub

[issue35257] Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST

2018-12-20 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Small correction. This regression has been on 3.7 for some time now (since it was the master branch then), but then I requested to have the buggy commit backported to 3.6 to fix the --with-lto flag there. Which unfortunately introduced the issue to

[issue35680] [2.7] Coverity scan: Passing freed pointer "name" as an argument to "Py_BuildValue" in _bsddb module.

2019-01-07 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : Results from a recent static analysis scan for python2: Error: USE_AFTER_FREE (CWE-825): Python-2.7.15/Modules/_bsddb.c:6697: freed_arg: "free" frees "name". Python-2.7.15/Modules/_bsddb.c:6715: pass_freed_arg: Passing freed p

[issue35680] [2.7] Coverity scan: Passing freed pointer "name" as an argument to "Py_BuildValue" in _bsddb module.

2019-01-07 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Indeed it's not a bug per se, more like code readability issue, if however it's not deemed as an issue, it can be closed. -- ___ Python tracker <https://bugs.python.o

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

2019-01-16 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker <https://bugs.python.org/issue35752> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-01-16 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Possibly relevant: https://fedoraproject.org/wiki/Changes/PPC64LE_Float128_Transition#Detailed_Description But the work is not complete. -- ___ Python tracker <https://bugs.python.org/issue35

[issue35680] [2.7] Coverity scan: Passing freed pointer "name" as an argument to "Py_BuildValue" in _bsddb module.

2019-01-23 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Closing this as it's not really a bug in the code, and I don't think spending too much time on python2 is worth it. -- stage: -> resolved status: open -> closed ___ Python tracker <http

[issue1294959] Problems with /usr/lib64 builds.

2019-02-04 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- pull_requests: +11696 ___ Python tracker <https://bugs.python.org/issue1294959> ___ ___ Python-bugs-list mailing list Unsub

[issue1294959] Problems with /usr/lib64 builds.

2019-02-04 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- pull_requests: +11696, 11697 ___ Python tracker <https://bugs.python.org/issue1294959> ___ ___ Python-bugs-list mailin

[issue1294959] Problems with /usr/lib64 builds.

2019-02-04 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- pull_requests: +11696, 11698 ___ Python tracker <https://bugs.python.org/issue1294959> ___ ___ Python-bugs-list mailin

[issue35737] crypt AuthenticationError introduced with new Linux kernel

2019-02-05 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Hi Brett, Those issues should be reported on Red Hat's bugzilla, if it's definite that the kernel version (or a new cpython release downstream) is the one to blame for it. Also RHEL 7's python version while being 2.7.5, carries

[issue32947] Support OpenSSL 1.1.1

2019-02-15 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- pull_requests: +11910 ___ Python tracker <https://bugs.python.org/issue32947> ___ ___ Python-bugs-list mailing list Unsub

[issue29136] Add OP_NO_TLSv1_3

2019-02-15 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- pull_requests: +11911 ___ Python tracker <https://bugs.python.org/issue29136> ___ ___ Python-bugs-list mailing list Unsub

[issue33570] OpenSSL 1.1.1 / TLS 1.3 cipher suite changes

2019-02-15 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- pull_requests: +11913 ___ Python tracker <https://bugs.python.org/issue33570> ___ ___ Python-bugs-list mailing list Unsub

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-02-15 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Fedora 29 has openssl 1.1.1 which seems to be related. -- nosy: +cstratak ___ Python tracker <https://bugs.python.org/issue35

[issue35925] test_httplib test_nntplib test_ssl fail on ARMv7 Debian buster bot (OpenSSL 1.1.1a)

2019-02-19 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Getting those failures on RHEL8 as well, which can be worked around by setting the env OPENSSL_CONF=/non-existing-file == ERROR: test_protocol_sslv23 (test.test_ssl.ThreadedTests

[issue35925] test_httplib test_nntplib test_ssl fail on ARMv7 Debian buster bot (OpenSSL 1.1.1a)

2019-02-20 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: SSLContext.minimum_version is added here on the master branch: https://github.com/python/cpython/commit/698dde16f60729d9e3f53c23a4ddb8e5ffe818bf But I'd be also reluctant to partially backport a new feature to fix the test

[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2017-03-15 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Since this newly added assertion [0] fails for aarch64 shouldn't this be considered a regression? And taking into account the timeframe, a release blocker for 3.6.1? -- nosy: +cstratak ___ Python tr

[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2017-03-15 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: [0] https://github.com/python/cpython/commit/a86339b83fbd0932e0529a3c91935e997a234582#diff-39e8978a35ab16f78e60027c61b810f7R413 -- ___ Python tracker <http://bugs.python.org/issue29

[issue29640] _PyThreadState_Init and fork race leads to inconsistent key list

2017-03-16 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: In order to reproduce: Apply the python.patch from bz1268226_reproducer2.tar.gz Compile python Run the reproduce4.py from bz1268226_reproducer2.tar.gz As indicated by the reproducer, the status returned by os.wait() for the child is 139. I will

[issue29640] _PyThreadState_Init and fork race leads to inconsistent key list

2017-03-22 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Patch for protecting the key list while forking. -- Added file: http://bugs.python.org/file46753/0001-Protect-key-list-during-fork.patch ___ Python tracker <http://bugs.python.org/issue29

[issue29640] _PyThreadState_Init and fork race leads to inconsistent key list

2017-03-23 Thread Charalampos Stratakis
Changes by Charalampos Stratakis : -- pull_requests: +687 ___ Python tracker <http://bugs.python.org/issue29640> ___ ___ Python-bugs-list mailing list Unsub

[issue23699] Add a macro to ease writing rich comparisons

2017-03-23 Thread Charalampos Stratakis
Changes by Charalampos Stratakis : -- pull_requests: +698 ___ Python tracker <http://bugs.python.org/issue23699> ___ ___ Python-bugs-list mailing list Unsub

[issue23699] Add a macro to ease writing rich comparisons

2017-03-23 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Sent a PR against the master branch. What do you think about it? Would it make sense as well for python 3.6 now? -- nosy: +cstratak ___ Python tracker <http://bugs.python.org/issue23

[issue29144] Implicit namespace packages in Python 3.6

2017-03-27 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Bumped upon a similar issue today where a package I was working on couldn't import a module from one of its dependencies (which was not the case in python 3.5). One of the lines that fail is this [0] with: ModuleNotFoundError: No module

[issue29943] PySlice_GetIndicesEx change broke ABI in 3.5 and 3.6 branches

2017-03-30 Thread Charalampos Stratakis
Changes by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker <http://bugs.python.org/issue29943> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29943] PySlice_GetIndicesEx change broke ABI in 3.5 and 3.6 branches

2017-04-04 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Currently we haven't updated to Python 3.6.1 at Fedora 26 due to this issue. While it is a release blocker for 3.6.2, what can be done for 3.6.1? -- ___ Python tracker <http://bugs.python.org/is

[issue28909] Adding LTTng-UST tracing support

2017-04-21 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Just a small note here for the documentation patch. yum is deprecated in Fedora, and dnf is now the default package manager, so the respective instructions for Fedora should reflect that. -- nosy: +cstratak

[issue29943] PySlice_GetIndicesEx change broke ABI in 3.5 and 3.6 branches

2017-05-02 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: For what it's worth, in Fedora 26 we already rebased Python to 3.6.1, so this issue now is non existent for our ecosystem, and we are not shipping 3.6.0 in any way now. -- ___ Python tracker

[issue29243] --enable-optimizations makes common build commands always need to compile from scratch

2017-05-03 Thread Charalampos Stratakis
Changes by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker <http://bugs.python.org/issue29243> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29712] --enable-optimizations does not work with --enable-shared

2017-05-03 Thread Charalampos Stratakis
Changes by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker <http://bugs.python.org/issue29712> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24932] Use proper command line parsing in _testembed

2017-05-05 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Downstream backporting of PEP 538 to the 3.6 branch also depends on this fix. Would it be beneficial in any way to cherry-pick it for 3.6? -- nosy: +cstratak ___ Python tracker <http://bugs.python.

[issue28787] Out of tree --with--dtrace builds fail with a traceback

2017-05-09 Thread Charalampos Stratakis
Changes by Charalampos Stratakis : -- pull_requests: +1619 ___ Python tracker <http://bugs.python.org/issue28787> ___ ___ Python-bugs-list mailing list Unsub

[issue28787] Out of tree --with--dtrace builds fail with a traceback

2017-05-11 Thread Charalampos Stratakis
Changes by Charalampos Stratakis : -- pull_requests: +1642 ___ Python tracker <http://bugs.python.org/issue28787> ___ ___ Python-bugs-list mailing list Unsub

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2017-05-11 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Full build log -- nosy: +cstratak Added file: http://bugs.python.org/file46856/build.log ___ Python tracker <http://bugs.python.org/issue30

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2017-05-11 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: All the dependencies dragged. gdb is of version 7.11. The failures do not happen with gdb 7.12 (which exists in later Fedora releases). -- Added file: http://bugs.python.org/file46857/root.log ___ Python

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2017-05-11 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Note: test_gdb is skipped on later Fedora's actually (possibly due to gdb package no being dragged at the minimal buildroot) so the issue might still be there, so the gdb version might have no effect on that. Will investigate fu

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2017-05-11 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: So the issue wasn't restricted to a specific gdb version or distro release, as due to some issues dependency issues the gdb binary wasn't pulled in the buildroot which makes test_gdb to get skipped. So I was able to reproduce it on my

[issue30353] ctypes: pass by value for structs broken on Cygwin/MinGW 64-bit

2017-05-15 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: A 'defined(__aarch64__)' can be used for the arm64 arch. I will add it to your patch and test it on an arm64 machine to see if the test passes. -- nosy: +cstratak ___ Python tracker <http://bu

[issue30353] ctypes: pass by value for structs broken on Cygwin/MinGW 64-bit

2017-05-15 Thread Charalampos Stratakis
Changes by Charalampos Stratakis : -- nosy: +ishcherb ___ Python tracker <http://bugs.python.org/issue30353> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9146] Segfault in hashlib in OpenSSL FIPS mode using non-FIPS-compliant hashes, if "ssl" imported before "hashlib"

2017-05-25 Thread Charalampos Stratakis
Changes by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker <http://bugs.python.org/issue9146> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9216] FIPS support for hashlib

2017-05-25 Thread Charalampos Stratakis
Changes by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker <http://bugs.python.org/issue9216> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30353] ctypes: pass by value for structs broken on Cygwin/MinGW 64-bit

2017-06-09 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: This bug affects also the 3.6 branch. Can the fix be backported? -- ___ Python tracker <http://bugs.python.org/issue30

[issue13096] ctypes: segfault with large POINTER type names

2019-02-28 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- pull_requests: +12107 ___ Python tracker <https://bugs.python.org/issue13096> ___ ___ Python-bugs-list mailing list Unsub

[issue13096] ctypes: segfault with large POINTER type names

2019-02-28 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: It seems the python2 backport was incomplete as a PyMem_Free is missing, making buf leak. -- nosy: +cstratak ___ Python tracker <https://bugs.python.org/issue13

[issue13096] ctypes: segfault with large POINTER type names

2019-02-28 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- nosy: +vstinner ___ Python tracker <https://bugs.python.org/issue13096> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36147] [2.7] Coverity scan: Modules/_ctypes/cfield.c , Variable "result" going out of scope

2019-02-28 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : Coverity scan on python2 resulted in this error. Python-2.7.15/Modules/_ctypes/cfield.c:1297: alloc_fn: Storage is returned from allocation function "PyString_FromString". Python-2.7.15/Objects/stringobject.c:143:5: alloc_fn: Storage i

[issue36147] [2.7] Coverity scan: Modules/_ctypes/cfield.c , Variable "result" going out of scope

2019-02-28 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Also the change from PyUnicode_FromStringAndSize to PyBytes_FromStringAndSize happened here: https://bugs.python.org/issue8966 -- ___ Python tracker <https://bugs.python.org/issue36

[issue36147] [2.7] Coverity scan: Modules/_ctypes/cfield.c , Variable "result" going out of scope

2019-02-28 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- keywords: +patch pull_requests: +12108 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue36186] [2.7] Coverity scan: Modules/linuxaudiodev.c , fd handle is not closed.

2019-03-04 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : There are two places [0][1] in the code where NULL is returned but the fd handle is not closed. [0] https://github.com/python/cpython/blob/2.7/Modules/linuxaudiodev.c#L129 [1] https://github.com/python/cpython/blob/2.7/Modules/linuxaudiodev.c#L133

[issue36186] [2.7] Coverity scan: Modules/linuxaudiodev.c , fd handle is not closed.

2019-03-04 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- keywords: +patch pull_requests: +12161 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue36212] [2.7] Coverity scan: Modules/_hotshot.c , Variable "s1" going out of scope leaks the storage it points to.

2019-03-06 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : Coverity scan reports a leak on _hotshot.c: Python-2.7.15/Modules/_hotshot.c:442: alloc_arg: "unpack_string" allocates memory that is stored into "s1". Python-2.7.15/Modules/_hotshot.c:329:5: alloc_fn: Storage is returned from

[issue36262] Coverity scan: Python/dtoa.c resource leak

2019-03-11 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : Coverity report on dtoa.c. It was run on python2 but the same code resides on python3. Error: RESOURCE_LEAK (CWE-772): [#def89] Python-2.7.15/Python/dtoa.c:1846: alloc_fn: Storage is returned from allocation function "s2b". Python-2.7

[issue36262] Coverity scan: Python/dtoa.c resource leak

2019-03-11 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- nosy: +mark.dickinson, vstinner ___ Python tracker <https://bugs.python.org/issue36262> ___ ___ Python-bugs-list mailin

[issue36212] [2.7] Coverity scan: Modules/_hotshot.c , Variable "s1" going out of scope leaks the storage it points to.

2019-03-14 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- keywords: +patch pull_requests: +12298 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue36289] [2.7] Coverity scan: Modules/_io/bufferedio.c leaked_storage: Variable "data" going out of scope leaks the storage it points to.

2019-03-14 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : Coverity scan reports this for bufferedio.c : Error: RESOURCE_LEAK (CWE-772): [#def23] Python-2.7.15/Modules/_io/bufferedio.c:1353: alloc_fn: Storage is returned from allocation function "PyString_FromStringAndSize". Python-2.7.

[issue36289] [2.7] Coverity scan: Modules/_io/bufferedio.c leaked_storage: Variable "data" going out of scope leaks the storage it points to.

2019-03-14 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- keywords: +patch pull_requests: +12300 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue36291] [2.7] Coverity Scan: Modules/_json.c: leaked_storage: Variable "numstr" going out of scope leaks the storage it points to.

2019-03-14 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : Coverity reports a leak within the json module: Error: RESOURCE_LEAK (CWE-772): [#def26] Python-2.7.15/Modules/_json.c:1367: alloc_fn: Storage is returned from allocation function "PyString_FromStringAndSize". Python-2.7.15/Objects/stringo

[issue36291] [2.7] Coverity Scan: Modules/_json.c: leaked_storage: Variable "numstr" going out of scope leaks the storage it points to.

2019-03-14 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- keywords: +patch pull_requests: +12301 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue36292] Coverity scan: Resource leaks in longobject.c

2019-03-14 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : The coverity scan was run on python2, however the same defect seems to exist in python3 as well. Error: RESOURCE_LEAK (CWE-772): [#def69] Python-2.7.15/Objects/longobject.c:3793: alloc_fn: Storage is returned from allocation function "_PyLon

[issue36292] Coverity scan: Resource leaks in longobject.c

2019-03-14 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- keywords: +patch pull_requests: +12304 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue36292] Coverity scan: Resource leaks in longobject.c

2019-03-14 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- versions: -Python 2.7, Python 3.7 ___ Python tracker <https://bugs.python.org/issue36292> ___ ___ Python-bugs-list mailin

[issue36292] Coverity scan: Resource leaks in longobject.c

2019-03-14 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: This code is unreachable. Will mark it as such. -- ___ Python tracker <https://bugs.python.org/issue36292> ___ ___ Pytho

[issue18368] PyOS_StdioReadline() leaks memory when realloc() fails

2019-03-14 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- pull_requests: +12305 ___ Python tracker <https://bugs.python.org/issue18368> ___ ___ Python-bugs-list mailing list Unsub

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-03-19 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: On my system with openssl 1.1.1b, by reducing the PAYLOAD_SIZE the test passes successfully. It starts failing when it's bigger than 1024 * 95 -- ___ Python tracker <https://bugs.python.org/is

[issue36367] tokenizer.c memory leak in case of realloc failure

2019-03-19 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : In tokenizer.c we have those lines of code [0]: if (final_length < needed_length && final_length) /* should never fail */ buf = PyMem_REALLOC(buf, final_length); return buf; If however that realloc fails, the memory allocated in

[issue36276] Python urllib CRLF injection vulnerability

2019-03-26 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker <https://bugs.python.org/issue36276> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

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

[issue35907] Unnecessary URL scheme exists to allow file:// reading file in urllib

2019-04-29 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker <https://bugs.python.org/issue35907> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-05-08 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: A small clarification on the differences of those two CVE's. CVE-2019-9740: CLRF sequences are not properly handled in python built-in modules urllib/urllib2 in the query part of the url parameter of urlopen() function CVE-2019-9947: CLRF sequ

[issue32521] NIS module fails to build due to the removal of interfaces related to Sun RPC from glibc.

2018-01-12 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Unfortunately the yp_prot.h and ypclnt.h [0] headers have also moved to a different package. Currently they reside at /usr/include/nsl/rpcsvc/*.h [0] https://github.com/python/cpython/blob/f3031b8a7ad71d3b6ed05da7f3041d9efbe773cf/Modules/nismodule.c

[issue32635] test_crypt segfaults when using libxcrypt instead of libcrypt

2018-01-23 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : Currently in Fedora glibc stopped providing libcrypt[0] a change which is slowly being upstreamed as well[1] in favor of the libxcrypt project[2]. This causes a segfault when importing the crypt module as python assumes that crypt.h is always

[issue32635] test_crypt segfaults when using libxcrypt instead of libcrypt

2018-01-23 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- versions: +Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue32635> ___ ___ Python-bug

[issue32635] test_crypt segfaults when using libxcrypt instead of libcrypt

2018-01-23 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- components: +Extension Modules ___ Python tracker <https://bugs.python.org/issue32635> ___ ___ Python-bugs-list mailin

[issue32635] test_crypt segfaults when using libxcrypt instead of libcrypt

2018-01-23 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- pull_requests: +5130 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32635> ___ ___ Python-

[issue32647] Undefined references when compiling ctypes

2018-01-24 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : Original bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1537489 As soon as strict symbol checking was enabled on the development branch of Fedora, our build of CPython started failing due to undefined symbols when compiling ctypes. Build

[issue32647] Undefined references when compiling ctypes

2018-01-24 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- components: +Build ___ Python tracker <https://bugs.python.org/issue32647> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32647] Undefined references when compiling ctypes

2018-01-24 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Relevant part from the build log: running build_ext building '_ctypes' extension gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOU

[issue32647] Undefined references when compiling ctypes

2018-01-24 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Unfortunately when trying to reproduce it by compiling from source and adding the '-z defs' flag to the linker, undefined symbol issues appeared for all the extension modules of the stdlib. -- components: +Extensi

[issue32635] test_crypt segfaults when using libxcrypt instead of libcrypt

2018-01-24 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue9216] FIPS support for hashlib

2018-02-05 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- pull_requests: +5374 ___ Python tracker <https://bugs.python.org/issue9216> ___ ___ Python-bugs-list mailing list Unsub

[issue32647] Undefined references when compiling ctypes on binutils 2.29.1 with gcc -Wl, -z, undefs (Fedora 28)

2018-02-05 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: So what would be the best way to proceed from here? Add a check or just link to dl unconditionally? -- ___ Python tracker <https://bugs.python.org/issue32

[issue32647] Undefined references when compiling ctypes on binutils 2.29.1 with gcc -Wl, -z, undefs (Fedora 28)

2018-02-06 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: @Stephane, Currently the flag has been disabled on rawhide due to too many breakages but the bug is still there if you add '-z defs' to the linker flags. More info: https://src.fedoraproject.org/rpms/redhat-rp

[issue32647] Undefined references when compiling ctypes on binutils 2.29.1 with gcc -Wl, -z, undefs (Fedora 28)

2018-02-06 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Just tested it for python3 on a rawhide system with the flag enabled and it works, ctypes is compiled successfully. python2 is not affected the same way though, various modules fail there with different undefined references issues when setting the

[issue32647] Undefined references when compiling ctypes on binutils 2.29.1 with gcc -Wl, -z, undefs (Fedora 28)

2018-02-06 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Attaching the build log from python2. Near the end you can see the undefined references errors. -- Added file: https://bugs.python.org/file47426/py2buildlog ___ Python tracker <https://bugs.python.

[issue32521] NIS module fails to build due to the removal of interfaces related to Sun RPC from glibc.

2018-02-06 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Reopenning the issue. python2 is still failing with the fix applied: gcc -pthread -fPIC -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord

<    1   2   3   >