[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) {
PyOS_AfterFork_Child(); // Reinitializes stuff.
_exit(0); // Child process exits without cleanup.
}
PyOS_AfterFork_Parent();
Py_Finalize();
}

The call to `_exit()` happens in Lib/multiprocessing/popen_fork.py#L73

My attempts at cleaning this up resulted in even more problems.

--

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



[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");

PyObject* p = PyObject_CallNoArgs(Process);
PyObject* start = PyObject_GetAttrString(p, "start");
PyObject* join = PyObject_GetAttrString(p, "join");

Py_DECREF(PyObject_CallNoArgs(start));
Py_DECREF(PyObject_CallNoArgs(join));

Py_DECREF(join);
Py_DECREF(start);
Py_DECREF(p);
Py_DECREF(Process);
Py_DECREF(multiprocessing);
Py_Finalize();
}

--

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



[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_GetAttrString(multiprocessing, "Process");
PyObject* args = PyTuple_New(0);
PyObject* kw = PyDict_New();
PyDict_SetItemString(kw, "target", Process);

PyObject* p = PyObject_Call(Process, args, kw);
PyObject* start = PyObject_GetAttrString(p, "start");
PyObject* join = PyObject_GetAttrString(p, "join");

PyObject_CallNoArgs(start);
PyObject_CallNoArgs(join);

Py_DECREF(join);
Py_DECREF(start);
Py_DECREF(p);
Py_DECREF(kw);
Py_DECREF(args);
Py_DECREF(Process);
Py_DECREF(multiprocessing);
Py_Finalize();
}



The following locks are leaked:

1. 
https://github.com/python/cpython/blob/196d4deaf4810a0bba75ba537dd40f2d71a5a634/Python/pystate.c#L78
2. 
https://github.com/python/cpython/blob/196d4deaf4810a0bba75ba537dd40f2d71a5a634/Python/pystate.c#L84
3. 
https://github.com/python/cpython/blob/196d4deaf4810a0bba75ba537dd40f2d71a5a634/Python/pystate.c#L90
4. https://github.com/python/cpython/blob/master/Python/ceval.c#L810
5. https://github.com/python/cpython/blob/master/Python/import.c#L126
6. and 7. 
https://github.com/python/cpython/blob/master/Modules/_threadmodule.c#L597

In the attachment is valgrind's output.

--
components: C API
files: log
messages: 386558
nosy: bstaletic
priority: normal
severity: normal
status: open
title: Leak of locks in a subprocess
type: resource usage
versions: Python 3.10, Python 3.9
Added file: https://bugs.python.org/file49793/log

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



[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. The following also shows the use-after-free:


#include 

static void pybind11_object_dealloc(PyObject *self) {
auto type = Py_TYPE(self);
type->tp_free(self);
Py_DECREF(type);
}
static PyType_Slot base_slots[] = {{Py_tp_dealloc, 
(void*)pybind11_object_dealloc}, {0, nullptr}};
static PyType_Spec base_spec{"B", sizeof(PyObject), 0, Py_TPFLAGS_BASETYPE | 
Py_TPFLAGS_HEAPTYPE, base_slots};
int main() {
Py_InitializeEx(1);
auto base_type = PyType_FromSpec(_spec);
auto globals = PyDict_New();
PyDict_SetItemString(globals, "B", base_type);
auto derived_t = PyRun_String("def f():\n"
  "  class C:\n"
  "class D(B):pass\n"
  "b=D()\n"
  "f()", Py_file_input, globals, nullptr);
Py_DECREF(globals);
Py_DECREF(derived_t);
Py_Finalize();
}

--

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



[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 Ubuntu 20.04 does fix the issue.

This is good enough for me and I guess this can be closed as "not a bug".

--

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



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-config
2. Save the same attached file from the first comment as test.c.
3. gcc $(python3-config --includes) $(python3-config --ldflags) -lpython3.8 -o 
python-error
4. PYTHONMALLOC=malloc valgrind ./python-error

Valgrind output:

==1200== Conditional jump or move depends on uninitialised value(s)
==1200==at 0x4A7B37B: PyUnicode_Decode (in 
/usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0)
==1200==by 0x109264: main (in /python-error)
==1200==
==1200== Conditional jump or move depends on uninitialised value(s)
==1200==at 0x4A7AE57: PyUnicode_AsEncodedString (in 
/usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0)
==1200==by 0x109280: main (in /python-error)

I have not checked earlier versions of python.

--
versions: +Python 3.8

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



[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 error 100% of the time, on Ubuntu 20.04, with python 
3.9.0 installed with pyenv. I also have repro'd the error in my CI (link 
below). Steps to repro:

1. docker run -it ubuntu:20.04 /bin/bash
2. apt update
3. apt install valgrind gcc build-essential libssl-dev zlib1g-dev libbz2-dev 
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev 
xz-utils tk-dev libffi-dev liblzma-dev python-openssl git
4. curl https://pyenv.run | bash
5. export PATH="/root/.pyenv/bin:$PATH"
6. eval "$(pyenv init -)"
7. PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.9.0
8. Take the attached C file.
9. gcc -ggdb3 -I/root/.pyenv/versions/3.9.0/include/python3.9 
-L/root/.pyenv/versions/3.9.0/lib test2.c -lpython3.9
10. LD_LIBRARY_PATH=/root/.pyenv/versions/3.9.0/lib/ PYTHONMALLOC=malloc 
valgrind ./a.out

Valgrind output:

==22783== Conditional jump or move depends on uninitialised value(s)
==22783==at 0x49ABE64: PyUnicode_Decode (unicodeobject.c:3443)
==22783==by 0x49ABE64: PyUnicode_Decode (unicodeobject.c:3398)
==22783==by 0x109251: main (test2.c:5)
==22783==
==22783== Conditional jump or move depends on uninitialised value(s)
==22783==at 0x499A294: PyUnicode_AsEncodedString (unicodeobject.c:3732)
==22783==by 0x499A294: PyUnicode_AsEncodedString (unicodeobject.c:3688)
==22783==by 0x10926D: main (test2.c:6)


CI log: 
https://dev.azure.com/borisstaletic/3ce92110-caa5-4c49-b8c3-44a433da676b/_apis/build/builds/1338/logs/6
Repository for testing the bug: 
https://github.com/bstaletic/ycmd/tree/python-error

--
components: Interpreter Core
files: test.c
messages: 379790
nosy: bstaletic
priority: normal
severity: normal
status: open
title: Valgrind reports "Conditional jump or move depends on uninitialised 
value(s)" in `PyUnicode_AsEncodedString` and `PyUnicode_Decode`
type: compile error
versions: Python 3.9
Added file: https://bugs.python.org/file49542/test.c

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



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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=5, size=0)]

Current Result:
[Match(a=0, b=3, size=2), Match(a=5, b=5, size=0)]

--
messages: 330175
nosy: Boris Yang
priority: normal
severity: normal
status: open
title: wrong result for difflib.SequenceMatcher
type: behavior
versions: Python 3.7

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



[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-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 be expected 
behavior. If anyone is interested I can attach my test files.

--
nosy: +borisompol
versions: +Python 3.3

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



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
prn_.txt
npr.txt
...

Happens on Windows 7, Python3.3, both 32 bit and 64 bit
This should be easy to replicate.

--
components: IO
messages: 243219
nosy: borisompol
priority: normal
severity: normal
status: open
title: Fail to create file if name starts with prn.
type: behavior
versions: Python 3.3

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



[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 on socket before bind. The problem is that I 
don't have access on socket, it's created inside asyncio method 
_create_connection_transport.

I've seen that SO_REUSEADDR is already set 
(https://github.com/gvanrossum/tulip-try3/blob/7b2d8abfce1d7ef18ef516f9b1b7032172630375/asyncio/base_events.py#L720),
 so maybe we could also set SO_REUSEPORT only on platforms where it's 
available. `if hasattr(socket, 'SO_REUSEPORT')` should works.

Or we could add an optional arguments with could be used to set some socket 
options, it could be more flexible that set SO_REUSEPORT.

I could provide a patch for the best solution selected.

--
components: asyncio
messages: 241213
nosy: Boris.FELD, gvanrossum, haypo, yselivanov
priority: normal
severity: normal
status: open
title: Asyncio reuseport
type: behavior
versions: Python 3.4, Python 3.5, Python 3.6

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



[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  # A
- Open IDLE
- Open the debugger
- Open the file
- Delete the A, type shiftaltA
- type commands to save. This triggers the problem.

Application hangs (not responding) and needs to force quit. Sometimes the 
graphics memory of other applications gets corrupted.

--
components: IDLE
messages: 231338
nosy: steipe
priority: normal
severity: normal
status: open
title: IDLE - MacOS: freeze on non-ASCII save with open debugger
type: behavior
versions: Python 2.7

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



[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 list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mypkg - doesn't works

Looks like HTTPretty is using __file__ variable in setup.py 
(https://github.com/gabrielfalcao/HTTPretty/blob/master/setup.py#L35) and pip 
seems to pass the file as unicode:

http://0bin.net/paste/dQfsSAmguWNYyY7w#0O/gcrWA44wKicfTdsGT4KqRYhbZLyhN9BUXNQD1XZA=

At the last line: 
__file__=u'/home/lothiraldan/.virtualenvs/test/build/httpretty/setup.py'

--
nosy: +Boris.FELD

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



[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/unittest_docstring.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8906
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
(all the tests with more than 20% of performance regression):
- (A*1000).find(B) (*1000): -30.379747%
- Hello\t   \t.rstrip() (*1000): -33.33%
- this\nis\na\ntest\n.rsplit(\n) (*1000): -23.437500%
- \nHello!\n.strip() (*1000): -33.33%
- dna.split(ACTAT) (*10): -21.07%
- Andrew.endswith(w) (*1000): -23.529412%
- ...text.with.2000.lines...replace(\n,  ) (*10): -37.668161%
- \t   \tHello.rstrip() (*1000): -33.33%
- (A*1000).rpartition(A) (*1000): -21.212121%
- (Here are some words. *2).split() (*1000): -22.105263%
- Hello!\n.rstrip() (*1000): -35.714286%
- B in A*1000 (*1000): -32.089552%
- Hello!\n.strip() (*1000): -35.714286%
- \nHello!.strip() (*1000): -28.571429%
- this\nis\na\ntest\n.split(\n) (*1000): -23.437500%
- Andrew.startswith(A) (*1000): -20.588235%
- \nHello!.rstrip() (*1000): -35.714286%
- Andrew.endswith(Andrew) (*1000): -22.857143%
- Andrew.endswith(Anders) (*1000): -23.529412%
- The %(k1)s is %(k2)s the %(k3)s.%{k1:x,k2:y,k3:z,} (*1000): 
-49.411765%
- Andrew.startswith(Anders) (*1000): -23.529412%
- this--is--a--test--of--the--emergency--broadcast--system.split(--) 
(*1000): -22.429907%
- Andrew+Dalke (*1000): -23.076923%

--
assignee: collinwinter
components: Benchmarks
files: stringbench_log_cpython3.2
messages: 149681
nosy: Boris.FELD, collinwinter
priority: normal
severity: normal
status: open
title: Unicode performance regression in python3.3 vs python3.2
type: performance
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file23991/stringbench_log_cpython3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13621
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
(all the tests with more than 20% of performance regression):
- (bA*1000).find(bB) (*1000): -30.379747%
- bHello\t   \t.rstrip() (*1000): -33.33%
- bthis\nis\na\ntest\n.rsplit(b\n) (*1000): -23.437500%
- b\nHello!\n.strip() (*1000): -33.33%
- dna.split(bACTAT) (*10): -21.07%
- bAndrew.endswith(bw) (*1000): -23.529412%
- b...text.with.2000.lines...replace(b\n, b ) (*10): -37.668161%
- b\t   \tHello.rstrip() (*1000): -33.33%
- (bA*1000).rpartition(bA) (*1000): -21.212121%
- (bHere are some words. *2).split() (*1000): -22.105263%
- bthis\nis\na\ntest\n.split(b\n) (*1000): -23.437500%
- bHello!\n.rstrip() (*1000): -35.714286%
- bB in bA*1000 (*1000): -32.089552%
- bHello!\n.strip() (*1000): -35.714286%
- b\nHello!.strip() (*1000): -28.571429%
- bAndrew.startswith(bA) (*1000): -20.588235%
- b\nHello!.rstrip() (*1000): -35.714286%
- bAndrew.endswith(bAndrew) (*1000): -22.857143%
- bAndrew.endswith(bAnders) (*1000): -23.529412%
- bAndrew.startswith(bAnders) (*1000): -23.529412%
- bthis--is--a--test--of--the--emergency--broadcast--system.split(b--) 
(*1000): -22.429907%
- bAndrew+bDalke (*1000): -23.076923%

Hope it help

--
assignee: collinwinter
components: Benchmarks
files: stringbench_log_cpython3.2
messages: 149683
nosy: Boris.FELD, collinwinter
priority: normal
severity: normal
status: open
title: Bytes performance regression in python3.3 vs python3.2
type: performance
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file23995/stringbench_log_cpython3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13622
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13622
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13621
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
(all the tests with more than 20% of performance regression):
- (bA*1000).rfind(bA) (*1000): -70.103093%
- (bA*1000).find(bB) (*1000): -48.372093%
- (bA*1000).rindex(bA) (*1000): -68.89%
- s=bABC*33; (s+bE+(bD+s)*500).rfind(s+bE) (*100): -28.982301%
- (bC+bAB*300).rfind(bCA) (*1000): -29.565217%
- (bAB*1000).index(bAB) (*1000): -68.539326%
- bAndrew.endswith(bw) (*1000): -21.212121%
- (bA*1000).index(bA) (*1000): -71.11%
- (bBC+bAB*300).rfind(bBC) (*1000): -42.788462%
- bAndrew.startswith(bAndrew) (*1000): -20.588235%
- (bAB*1000).find(bAB) (*1000): -69.318182%
- (bAB*1000).rfind(bAB) (*1000): -69.791667%
- (bA*1000).rfind(bB) (*1000): -37.988827%
- (bAB*300+C).index(bBC) (*1000): -28.75%
- bB in bA*1000 (*1000): -24.479167%
- (bAB*300+CA).find(bCA) (*1000): -33.673469%
- (bAB*1000).rindex(bAB) (*1000): -67.78%
- (bC+AB*300).rindex(bCA) (*1000): -29.017857%
- (bAB*300+C).find(bBC) (*1000): -28.451883%
- bAndrew.startswith(bA) (*1000): -21.212121%
- bAndrew.startswith(bAnders) (*1000): -21.212121%
- (bA*1000).partition(bB) (*1000): -30.656934%
- (bAB*1000).rfind(bCA) (*1000): -20.603015%
- (bAB*1000).rfind(bBC) (*1000): -35.645472%
- (bA*1000).find(bA) (*1000): -70.454545%

My environment is:
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

--
assignee: collinwinter
components: Benchmarks
files: stringbench_log_cpython3.2
messages: 149689
nosy: Boris.FELD, collinwinter
priority: normal
severity: normal
status: open
title: Bytes performance regression in python3.3 vs python3.2
type: performance
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file23999/stringbench_log_cpython3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13623
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the test for traceback.print_exception.

--
keywords: +patch
nosy: +Boris.FELD
Added file: 
http://bugs.python.org/file24011/new_traceback_test_print_traceback.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10805
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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...@bugs.python.org
http://bugs.python.org/issue10154
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--
assignee: tarek
components: Distutils2
files: METADATA
messages: 127190
nosy: Boris.FELD, eric.araujo, tarek, tarek-ziade
priority: normal
severity: normal
status: open
title: Distutils2 install command without setup.py or setup.cfg create an 
UNKNOWN-UNKNOWN.dist-info distribution
versions: Python 2.6
Added file: http://bugs.python.org/file20545/METADATA

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11025
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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] ...]
   or: run.py --help [cmd1 cmd2 ...]
   or: run.py --help-commands
   or: run.py cmd --help

error: Invalid command install

$ python -V
Python 2.7.1
$ python -m distutils2.run install
usage: run.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: run.py --help [cmd1 cmd2 ...]
   or: run.py --help-commands
   or: run.py cmd --help

error: Invalid command install

It fail it a setup.cfg exists or not in the current directory.

--
assignee: tarek
components: Distutils2
messages: 127192
nosy: Boris.FELD, eric.araujo, tarek, tarek-ziade
priority: normal
severity: normal
status: open
title: Distutils2 install command fail with python 2.5/2.7
versions: Python 2.5, Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11026
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com