[issue22126] mc68881 fpcr inline asm breaks clang -flto build

2014-08-03 Thread ivank
New submission from ivank: Build cpython master with clang -flto results in: [...] ar rc libpython3.5m.a Modules/_threadmodule.o Modules/signalmodule.o Modules/posixmodule.o Modules/errnomodule.o Modules/pwdmodule.o Modules/_sre.o Modules/_codecsmodule.o Modules/_weakref.o Modules

[issue21090] File read silently stops after EIO I/O error

2014-06-29 Thread ivank
ivank added the comment: This problem happens with Python 3.4 as well. $ cat read_error_file.py from __future__ import print_function import os fname = "/usr/bin/Xorg" size = os.stat(fname).st_size print(fname, "stat size:", size) f = open(fname, "rb") print

[issue21090] File read silently stops after EIO I/O error

2014-06-29 Thread ivank
ivank added the comment: I managed to reproduce this again, this time by corrupting data on a btrfs filesystem. $ cat read_error_file.py import os fname = "/usr/bin/Xorg" size = os.stat(fname).st_size print fname, "stat size:", size f = open(fname, "rb"

[issue21090] File read silently stops after EIO I/O error

2014-04-26 Thread ivank
ivank added the comment: I'm finding it hard to reproduce the bug again with more zpool corruption. (I see the `IOError: [Errno 5] Input/output error` exception now.) I do remember that in the reported case, Python 3.4, node.js, and OpenJDK 7 threw an EIO exception, but Python 2.7 di

[issue21090] File read silently stops after EIO I/O error

2014-03-28 Thread ivank
New submission from ivank: I intentionally corrupted a zpool to induce an I/O error in a file, in this case, /usr/lib/x86_64-linux-gnu/gconv/IBM1390.so # ls -l /usr/lib/x86_64-linux-gnu/gconv/IBM1390.so -rw-r--r-- 1 root root 231,496 2014-03-24 06:26 /usr/lib/x86_64-linux-gnu/gconv/IBM1390.so

[issue12017] Decoding a highly-nested object with json (_speedups enabled) causes segfault

2011-05-06 Thread ivank
ivank added the comment: any opinions here on what the default max_depth should be? is there any safe number? I'm curious as to how many C stack frames I can use after reaching the Python recursion limit and what ulimit -s looks like on every platform http://hg.python.org/cpython/fil

[issue12017] Decoding a highly-nested object with json (_speedups enabled) causes segfault

2011-05-06 Thread ivank
New submission from ivank : Decoding a highly-nested object with json (_speedups enabled) can cause a segfault due to a stack overflow: # python -c "import json; json.loads('[' * 10 + '1' + ']' * 10)" zsh: segmentation fault python -c &q

[issue10240] dict.update.__doc__ is misleading

2010-10-29 Thread ivank
ivank added the comment: CPython's dict(obj) ignores `keys` and `__iter__` if obj is a subclass of dict. I thought this was an important language detail, not just an implementation quirk. But, I just tested pypy 1.3, and it is calling .keys() on dicts. Oh well. I think the __doc_

[issue10240] dict.update.__doc__ is misleading

2010-10-29 Thread ivank
New submission from ivank : It would be nice if dict.update.__doc__ conveyed some of the subtleties of the update algorithm. See the patch. I changed __doc__ to mention the fast path for dicts, and changed one instance of E: -> E.keys(): -- components: Interpreter Core fi

[issue8403] dis.dis gives different results if Ctrl-C is pressed

2010-04-14 Thread ivank
New submission from ivank : If you run >>> dis.dis(lambda: 99**103) and press Ctrl-C immediately, you'll see the numbers without constant folding: 1 0 LOAD_CONST 1 (99) 3 LOAD_CONST 2 (103)

[issue7686] redundant open modes 'rbb', 'wbb', 'abb' no longer work on Windows

2010-01-12 Thread ivank
New submission from ivank : This probably only applies to Windows. The redundant 'b' modes still work on Linux. These worked on Windows in 2.6.4: open('test', 'rbb') open('test', 'wbb') open('test', 'abb') and possibl

[issue6071] no longer possible to hash arrays

2010-01-03 Thread ivank
ivank added the comment: I believe this was fixed in r77252, which was fixing http://bugs.python.org/issue3745 -- ___ Python tracker <http://bugs.python.org/issue6

[issue7616] test_memoryview test_setitem_writable failures with Intel ICC

2009-12-31 Thread ivank
New submission from ivank : 3 memoryview tests fail with Intel ICC 11.1. They don't fail with gcc 4.4.1-4ubuntu8 on the same machine. == FAIL: test_setitem_writable (__main__.BytesMemorySliceSlic

[issue7513] many source files contaminated with form feed (\f) characters

2009-12-15 Thread ivank
New submission from ivank : In a checkout of Python 2.7 r76831, a large amount of files contain the form feed character (\f, \x0C, octal \014) $ grep --binary-files=without-match -P '\f' **/* | sort | uniq build/scripts-2.7/smtpd.py: Lib/base64.py: Lib/email/base64mime.py:

[issue7431] UnboundLocalError during test.test_linecache.LineCacheTests

2009-12-03 Thread ivank
ivank added the comment: This error is just masking a Permission denied error during source = open(source_name, 'w') so I guess it's not very important, just annoying. -- ___ Python tracker <http://bugs.py

[issue7431] UnboundLocalError during test.test_linecache.LineCacheTests

2009-12-03 Thread ivank
New submission from ivank : Python 2.7, svn r76655. I ran the tests with python2.7 Lib/test/testall.py > test-results.txt test_linecache test_checkcache (test.test_linecache.LineCacheTests) ... ERROR test_clearcache (test.test_linecache.LineCacheTests) ... ok test_getl

[issue6906] Tkinter sets an unicode environment variable on win32

2009-11-16 Thread ivank
ivank added the comment: The bug on the Twisted side may be of interest: http://twistedmatrix.com/trac/ticket/3964 -- nosy: +ivank ___ Python tracker <http://bugs.python.org/issue6

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-05 Thread ivank
ivank added the comment: That trac link should be http://twistedmatrix.com/trac/changeset/27062 -- nosy: +ivank ___ Python tracker <http://bugs.python.org/issue6

[issue6769] in xmlrpclib.py: NameError: global name 'HTTPSConnection' is not defined

2009-08-23 Thread ivank
New submission from ivank : Line 1491 of xmlrpclib.py should be self._connection = host, httplib.HTTPSConnection(chost, None, **(x509 or {})) instead of self._connection = host, HTTPSConnection(chost, None, **(x509 or {})) File "/opt/Python-latest/lib/python2.7/site-packages/bzrlib/pl

[issue6071] no longer possible to hash arrays

2009-07-13 Thread ivank
ivank added the comment: It no longer works with objects created with buffer() either: >>> hashlib.sha1(buffer("x")).hexdigest() Traceback (most recent call last): File "", line 1, in TypeError: object suppo

[issue6403] distutils builds extension modules to root package directory

2009-07-02 Thread ivank
New submission from ivank : When I built Twisted, I noticed that 'python2.7 setup.py build' created _c_urlang.so in the wrong place: $ find . | grep _c_url ./twisted/protocols/_c_urlarg.c ./build/lib.linux-x86_64-2.7/_c_urlarg.so ./build/temp.linux-x86_64-2.7/twisted/protocols/_c_u

[issue6072] unittest.TestCase._result is very likely to collide (and break) with application-defined TestCase attributes

2009-05-20 Thread ivank
Changes by ivank : -- nosy: +ivank ___ Python tracker <http://bugs.python.org/issue6072> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue6071] no longer possible to hash arrays

2009-05-20 Thread ivank
Changes by ivank : -- nosy: +ivank ___ Python tracker <http://bugs.python.org/issue6071> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth