[issue43145] Leak of locks from multiprocessing.Process

2021-02-10 Thread Boris Staletic
Boris Staletic added the comment: The `multiprocessing.Process`, on Linux, ends up doing something like this: pid = os.fork() if pid == 0: os._exit() Translated to C: int main() { Py_Initialize(); PyOS_BeforeFork(); pid_t pid = fork(); if (pid == 0

[issue43145] Leak of locks in a subprocess

2021-02-06 Thread Boris Staletic
Boris Staletic added the comment: Slightly simpler C example: #include int main() { Py_Initialize(); PyObject* multiprocessing = PyImport_ImportModule("multiprocessing"); PyObject* Process = PyObject_GetAttrString(multiprocessing, "Process");

[issue43145] Leak of locks in a subprocess

2021-02-06 Thread Boris Staletic
New submission from Boris Staletic : The following C code leaks 7 locks allocated with PyThread_allocate_lock: #include int main() { Py_Initialize(); PyObject* multiprocessing = PyImport_ImportModule("multiprocessing"); PyObject* Process = PyObject_Get

[issue42961] Use-after-free (of a heap type) during finalization

2021-01-19 Thread Boris Staletic
Boris Staletic added the comment: Oops... I uploaded (and pasted) the wrong file. The /correct/ example can be found here: https://github.com/pybind/pybind11/pull/2797/#pullrequestreview-570541151 However, I have just realized that the example doesn't really need the embedded module

[issue42961] Use-after-free (of a heap type) during finalization

2021-01-18 Thread Boris Staletic

[issue42176] Valgrind reports "Conditional jump or move depends on uninitialised value(s)" in `PyUnicode_AsEncodedString` and `PyUnicode_Decode`

2020-10-28 Thread Boris Staletic
Boris Staletic added the comment: Thanks for looking into this. > Looks like a bug in valgrind. That actually explains why I wasn't able to reproduce this problem on my local machine. Ubuntu 20.04 comes with valgrind 3.15.0, while my local machine has 3.16.1. Upgrading valgrind on Ubu

[issue35286] wrong result for difflib.SequenceMatcher

2020-10-28 Thread Boris Yang
Change by Boris Yang : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue35286> ___ ___ Python-bugs-list

[issue42176] Valgrind reports "Conditional jump or move depends on uninitialised value(s)" in `PyUnicode_AsEncodedString` and `PyUnicode_Decode`

2020-10-27 Thread Boris Staletic
Boris Staletic added the comment: I can also reproduce the same problem with the ubuntu packaged python3, which is 3.8.5 on Ubuntu 20.04. The only problem is that, with a stripped library, you don't get line numbers in valgrind's output. Steps to repro: 1. apt install valgrind gcc python3

[issue42176] Valgrind reports "Conditional jump or move depends on uninitialised value(s)" in `PyUnicode_AsEncodedString` and `PyUnicode_Decode`

2020-10-27 Thread Boris Staletic
New submission from Boris Staletic : When running valgrind on a C code that calls `PyUnicode_AsEncodedString` and `PyUnicode_Decode`, valgrind reports that there's a conditional jump based on uninitialized variable, if the encoding is "latin1". I am able to replicate the

[issue35289] wrong result for difflib.SequenceMatcher

2018-11-20 Thread Boris Yang
Change by Boris Yang : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue35289> ___ ___ Python-bugs-list

[issue35287] wrong result for difflib.SequenceMatcher

2018-11-20 Thread Boris Yang
Change by Boris Yang : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue35287> ___ ___ Python-bugs-list

[issue35288] wrong result for difflib.SequenceMatcher

2018-11-20 Thread Boris Yang
Change by Boris Yang : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue35288> ___ ___ Python-bugs-list

[issue35289] wrong result for difflib.SequenceMatcher

2018-11-20 Thread Boris Yang
New submission from Boris Yang : How to repeat: # -*- coding: UTF-8 -*- from difflib import SequenceMatcher seqMatcher = SequenceMatcher(None, "德阳孩子", "孩子德阳") seqMatcher.get_matching_blocks() Expect Result: [Match(a=0, b=3, size=2), Match(a=2, b=0, size=2), Match(a=5, b=

[issue23794] http package should support HTTP/2

2016-06-30 Thread Boris Dušek
Changes by Boris Dušek <m...@dusek.me>: -- nosy: +dusek ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23794> ___ ___ Python

[issue3905] subprocess failing in GUI applications on Windows

2015-06-22 Thread Boris
Boris added the comment: Probably the same issue: everything works when called from command line, but when called via a desktop shortcut I get ... _winapi.DUPLICATE_SAME_ACCESS) OSError: [WinError 6] The handle is invalid Changing pythonw to python solved the problem. ...this could

[issue672115] Assignment to __bases__ of direct object subclasses

2015-06-10 Thread Boris
Changes by Boris bor...@appliedinfogroup.com: -- nosy: +borisompol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue672115 ___ ___ Python-bugs-list

[issue24196] Fail to create file if name starts with prn.

2015-05-14 Thread Boris
New submission from Boris: f=open('prn.txt','w') Traceback (most recent call last): File pyshell#80, line 1, in module f=open('prn.txt','w') FileNotFoundError: [Errno 2] No such file or directory: 'prn.txt' Names that fail: prn. prn.txt prn.yourmmama.txt ... Names that do not fail: prn

[issue23972] Asyncio reuseport

2015-04-16 Thread Boris FELD
New submission from Boris FELD: I'm trying to create some UDP sockets for doing multicast communication. I have the working code in synchronous way and try to port it to asyncio. One last issue is blocking for me, I'm on Mac OS X and for multicast UDP to work, the SO_REUSEPORT must be set

[issue22897] IDLE - MacOS: freeze on non-ASCII save with open debugger

2014-11-18 Thread Boris
New submission from Boris: When attempting to save a file containing an Aring; character with the debugger open, IDLE freezes with/or without partially opening the warning window. (Mac OS X 10.9.5, IDLE running python 2.7.5). Reproducible steps: - Create and save file with one line: 1+1

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2014-06-23 Thread Boris Dayma
Changes by Boris Dayma koush...@gmail.com: -- nosy: +Borisd13 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7511 ___ ___ Python-bugs-list mailing

[issue21436] Consider leaving importlib.abc.Loader.load_module()

2014-05-12 Thread Boris Dayma
Changes by Boris Dayma koush...@gmail.com: -- nosy: +Borisd13 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21436 ___ ___ Python-bugs-list mailing

[issue13943] distutils’ build_py fails when package string is unicode

2014-01-10 Thread Boris FELD
Boris FELD added the comment: An issue has been opened in pip repository: https://github.com/pypa/pip/issues/1441 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13943

[issue13943] distutils’ build_py fails when package string is unicode

2014-01-03 Thread Boris FELD
Boris FELD added the comment: I've the same problem today with package https://pypi.python.org/pypi/httpretty/0.7.1 but only when I try to install one of my project which requires httpretty, if I try to install it directly it works like a charm. pip install httpretty - works pip install

[issue8906] Document TestCase attributes in class docstring

2011-12-18 Thread Boris FELD
Boris FELD lothiral...@gmail.com added the comment: Add a patch for this issue, move attributes comments in TestCase docstring. I think it should be a good idea too to add their in unittest doc. -- keywords: +patch nosy: +Boris.FELD Added file: http://bugs.python.org/file24024

[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
New submission from Boris FELD lothiral...@gmail.com: Hello everyone, I juste tried to launch the stringbench on python3.2 and python3.3 dev versions and some unicode tests run slower in python3.3 than in python3.2. I cc the two raw output of both runs. I also extracted most interesting data

[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file23992/stringbench_log_cpython3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13621

[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file23993/stringbench.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13621

[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Changes by Boris FELD lothiral...@gmail.com: Removed file: http://bugs.python.org/file23993/stringbench.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13621

[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file23994/compare.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13621

[issue13622] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
New submission from Boris FELD lothiral...@gmail.com: Hello everyone, I juste tried to launch the stringbench on python3.2 and python3.3 dev versions and some bytes tests run slower in python3.3 than in python3.2. I cc the two raw output of both runs. I also extracted most interesting data

[issue13622] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file23996/stringbench_log_cpython3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13622

[issue13622] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file23997/compare.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13622

[issue13622] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Boris FELD lothiral...@gmail.com added the comment: Forgot to describe my environment: Mac OS X 10.6.8 GCC i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) CPython3.3 revision ea421c534305 CPython3.2 revision 0b86da9d6964

[issue13621] Unicode performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Boris FELD lothiral...@gmail.com added the comment: Forgot to describe my environment: Mac OS X 10.6.8 GCC i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) CPython3.3 revision ea421c534305 CPython3.2 revision 0b86da9d6964

[issue13623] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
New submission from Boris FELD lothiral...@gmail.com: Hello everyone, I juste tried to launch the stringbench on python3.2 and python3.3 dev versions and some bytes tests run slower in python3.3 than in python3.2. I cc the two raw output of both runs. I also extracted most interesting data

[issue13623] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file24000/iobench_log_python3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13623

[issue13623] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file24001/compare.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13623

[issue13623] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Changes by Boris FELD lothiral...@gmail.com: Removed file: http://bugs.python.org/file24000/iobench_log_python3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13623

[issue13623] Bytes performance regression in python3.3 vs python3.2

2011-12-17 Thread Boris FELD
Changes by Boris FELD lothiral...@gmail.com: Added file: http://bugs.python.org/file24002/stringbench_log_cpython3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13623

[issue5492] Error on leaving IDLE with quit() or exit() under Linux

2011-12-17 Thread Boris FELD
Boris FELD lothiral...@gmail.com added the comment: The problem still exists in trunk with 3.2 and 3.3. -- nosy: +Boris.FELD versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5492

[issue10805] traceback.print_exception throws AttributeError when exception is None

2011-12-17 Thread Boris FELD
Boris FELD lothiral...@gmail.com added the comment: I add a test to test_traceback.py for this bug. Bug is confirmed on python 3.2 and python3.3. I use 2.x behavior as reference. I don't know if we should add an assertion in traceback.print_exception or traceback._iter_chain, so I add

[issue1469629] __dict__ = self in subclass of dict causes a memory leak?

2011-11-03 Thread Boris FELD
Changes by Boris FELD lothiral...@gmail.com: -- nosy: +Boris.FELD ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1469629 ___ ___ Python-bugs-list

[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2011-02-27 Thread Boris FELD
Boris FELD lothiral...@gmail.com added the comment: Bug confirmed on python2.5+ and python3.2-. If it works with the dash, is agree with the Marc-Andre solution. -- nosy: +Boris.FELD versions: +Python 2.5, Python 2.6 ___ Python tracker rep

[issue11025] Distutils2 install command without setup.py or setup.cfg create an UNKNOWN-UNKNOWN.dist-info distribution

2011-01-27 Thread Boris FELD
New submission from Boris FELD lothiral...@gmail.com: Distutils2 install command don't display error if you try to launch it in a directory without setup.py nor setup.cfg files. It install an UNKNOWN-UNKNOWN.dist-info distribution in your site-package with all meta-data file set to UNKNOWN

[issue11026] Distutils2 install command fail with python 2.5/2.7

2011-01-27 Thread Boris FELD
New submission from Boris FELD lothiral...@gmail.com: Distutils2 install command fail with both python 2.5 and python 2.7 while it works with python 2.6. $ python -V python 2.5.4 $ python -m distutils2.run install usage: run.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts

[issue11026] Distutils2 install command fail with python 2.5/2.7

2011-01-27 Thread Boris FELD
Changes by Boris FELD lothiral...@gmail.com: -- type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11026 ___ ___ Python-bugs-list

[issue11026] Distutils2 install command fail with python 2.5/2.7

2011-01-27 Thread Boris FELD
Boris FELD lothiral...@gmail.com added the comment: The new command for installation is install_dist, sorry. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11026

[issue11025] Distutils2 install command without setup.py or setup.cfg create an UNKNOWN-UNKNOWN.dist-info distribution

2011-01-27 Thread Boris FELD
Boris FELD lothiral...@gmail.com added the comment: It also fails with python 2.5 and python 2.7 with install_dist command. -- versions: +Python 2.5, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11025