[issue12936] armv5tejl: random segfaults in getaddrinfo()

2011-09-11 Thread Stefan Krah
Stefan Krah added the comment: I completely removed faulthandler from e91ad9669c08 and the problem still occurs (with the same broken backtrace). $ getconf GNU_LIBPTHREAD_VERSION NPTL 2.7 It is a bit unsatisfying that the segfault isn't reproducible with the earlier revision, but ther

[issue12936] armv5tejl: random segfaults in getaddrinfo()

2011-09-12 Thread Stefan Krah
Stefan Krah added the comment: STINNER Victor wrote: > > Traceback with faulthandler disabled: ... > > How did you disabled faulthandler? That was a run with all faulthandler references removed from regrtest.py. But as I said in my previous mail, I also did a run using e91a

[issue12963] PyLong_AsSize_t returns (unsigned long)-1

2011-09-12 Thread Stefan Krah
New submission from Stefan Krah : In one of the error branches PyLong_AsSize_t() returns (unsigned long)-1 instead of (size_t)-1. -- components: Interpreter Core files: pylong_as_size_t.diff keywords: patch messages: 143896 nosy: mark.dickinson, skrah priority: normal severity: normal

[issue12965] longobject: documentation improvements

2011-09-12 Thread Stefan Krah
New submission from Stefan Krah : I think the integer objects documentation could be clearer on a couple of points: - Despite being listed under "Concrete Objects Layer", some functions implicitly accept anything with an __int__() method. Currently only the PyL

[issue12965] longobject: documentation improvements

2011-09-12 Thread Stefan Krah
Changes by Stefan Krah : -- assignee: docs@python -> mark.dickinson ___ Python tracker <http://bugs.python.org/issue12965> ___ ___ Python-bugs-list mai

[issue12963] PyLong_AsSize_t returns (unsigned long)-1

2011-09-12 Thread Stefan Krah
Stefan Krah added the comment: > Yep, clearly a bug. Please fix! Done, thanks for reviewing. Victor, I don't think we need a unit test for this. I plan to go over some modules with gcov in the future, and I'll include longobject.c. -- resolution: -> fixed status

[issue1172711] long long support for array module

2011-09-12 Thread Stefan Krah
Stefan Krah added the comment: I made the observation on Rietveld that the following code is never executed by the test suite. The same applies to similar existing passages in arraymodule.c: http://bugs.python.org/review/1172711/diff/3310/10310#newcode394 Meador correctly pointed out that

[issue12936] armv5tejl: random segfaults in getaddrinfo()

2011-09-13 Thread Stefan Krah
Stefan Krah added the comment: The failure was introduced by issue #12655. I attach a minimal script to reproduce the segfault. -- nosy: +benjamin.peterson Added file: http://bugs.python.org/file23138/crash.py ___ Python tracker <h

[issue12936] armv5tejl: random segfaults in getaddrinfo()

2011-09-13 Thread Stefan Krah
Stefan Krah added the comment: And here's a full backtrace of crash.py: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x400225f0 (LWP 633)] 0x40011d20 in __tls_get_addr () from /lib/ld-linux.so.2 (gdb) bt #0 0x40011d20 in __tls_get_addr () from /lib/ld-linux

[issue1813] Codec lookup failing under turkish locale

2011-09-13 Thread Stefan Krah
Stefan Krah added the comment: https://bugzilla.redhat.com/show_bug.cgi?id=726536 claims that the glibc issue (which is relevant for skipping the test case) is fixed in glibc-2.14.90-8. I suspect the only way of running the test case reliably is whitelisting a couple of known good glibc

[issue12936] armv5tejl: random segfaults in getaddrinfo()

2011-09-13 Thread Stefan Krah
Stefan Krah added the comment: I wonder whether it is http://sources.redhat.com/bugzilla/show_bug.cgi?id=12453. The demo script from there crashes both on debian-arm and Ubuntu Lucid, but this specific segfault only occurs on debian arm. Attached is a minimal C test case that only crashes on

[issue12936] armv5tejl segfaults: sched_setaffinity() vs. pthread_setaffinity_np()

2011-09-13 Thread Stefan Krah
Stefan Krah added the comment: I think I got it: pthread_setaffinity_np() does not crash. `man sched_setaffinity` is slightly ambiguous, but there is this remark: (If you are using the POSIX threads API, then use pthread_setaffinity_np(3) instead of sched_setaffinity().) I&#

[issue12936] armv5tejl segfaults: sched_setaffinity() vs. pthread_setaffinity_np()

2011-09-13 Thread Stefan Krah
Stefan Krah added the comment: Charles-François Natali wrote: > Out of curiosity, I just looked at the source code, and it just does > sched_setaffinity(thread->tid), so you can do the same with > sched_setaffinity(syscall(SYS_gettid)) for the current thread. sched_setaffi

[issue12973] int_pow() implementation is incorrect

2011-09-13 Thread Stefan Krah
Stefan Krah added the comment: I think this is related to issue #11149. Can you try compiling with -fwrapv? -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue12

[issue12973] int_pow() implementation is incorrect

2011-09-13 Thread Stefan Krah
Stefan Krah added the comment: I can reproduce your results with a recent clang. gcc has similar optimization behavior, but for gcc ./configure automatically adds -fwrapv, which prevents the incorrect results. I'm closing this as a duplicate of #11149. -- resolution: -> d

[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-09-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +a...@netbsd.org, skrah ___ Python tracker <http://bugs.python.org/issue11149> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-09-13 Thread Stefan Krah
Stefan Krah added the comment: Recent clang and Python2.7 (without the patch): Python 2.7.2+ (2.7:e8d8eb9e05fd, Sep 14 2011, 00:35:51) [GCC 4.2.1 Compatible Clang 3.0 (trunk 139637)] on freebsd8 Type "help", "copyright", "credits" or "licen

[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-09-14 Thread Stefan Krah
Stefan Krah added the comment: > Does the test suite catch this bug? I think all of those fail due to the bug in pow(): 20 tests failed: test_array test_builtin test_bytes test_decimal test_float test_fractions test_getargs2 test_index test_int test_itertools test_list test_l

[issue12720] Expose linux extended filesystem attributes

2011-09-14 Thread Stefan Krah
Stefan Krah added the comment: The OS X buildbots fail to compile posixmodule.c: gcc -fno-strict-aliasing -g -O0 -Wall -Wstrict-prototypes-I. -I./Include -DPy_BUILD_CORE -c ./Modules/posixmodule.c -o Modules/posixmodule.o ./Modules/posixmodule.c: In function ‘try_getxattr’: ./Modules

[issue12936] armv5tejl segfaults: sched_setaffinity() vs. pthread_setaffinity_np()

2011-09-14 Thread Stefan Krah
Stefan Krah added the comment: I'd prefer to disable the misbehaving functions entirely on arm. With the patch this combination of tests now works: ./python -m test -uall test_posix test_nntplib If you think the patch is good, I can run the whole test suite, too. [I'd rathe

[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-09-14 Thread Stefan Krah
Stefan Krah added the comment: No, that's me playing around. I tried to use clang as the compiler for the build slave. I can't figure out yet why the segfaults occur. When I'm running the test manually, everything seems to work. -- ___

[issue12980] segfault in test_json on AMD64 FreeBSD 8.2 2.7

2011-09-14 Thread Stefan Krah
Stefan Krah added the comment: I'm completely puzzled by this. I ran *all* tests manually on the same machine with clang with the same parameters as the buildbot (--with-pydebug, make buildbottest) and they pass. I reverted the buildbot to gcc, it'll be green again soon. Closing

[issue12973] int_pow() implementation is incorrect

2011-09-14 Thread Stefan Krah
Stefan Krah added the comment: == CPython 2.7.2+ (2.7:a698ad2741da+, Sep 15 2011, 00:17:28) [GCC 4.2.1 Compatible Clang 3.0 (trunk 139637)] == FreeBSD-8.0-RELEASE-amd64-64bit-ELF little-endian == /usr/home/stefan/pydev/cpython/build/test_python_71451 With clang 3.0 from trunk, the pow

[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-09-15 Thread Stefan Krah
Stefan Krah added the comment: The buildbots are fine, though I think that in this instance Gentoo-Non-Debug-3.x is the only bot that actually exercises the new code path. So I tested manually on FreeBSD/clang-3.0 and I don't see anything surprising. -- resolution: -> fix

[issue12985] Check signed arithmetic overflow in ./configure

2011-09-15 Thread Stefan Krah
New submission from Stefan Krah : I'm not sure if this is a good idea: I wonder if it would be an option to check for overflow behavior at the bottom of ./configure and print a warning. The patch appears to work for gcc, clang and suncc. It would have caught the problem in #12973. The

[issue12985] Check signed arithmetic overflow in ./configure

2011-09-15 Thread Stefan Krah
Changes by Stefan Krah : -- versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue12985> ___ ___ Python-bug

[issue12973] int_pow() implementation is incorrect

2011-09-15 Thread Stefan Krah
Changes by Stefan Krah : Added file: http://bugs.python.org/file23164/listobject_overflow.diff ___ Python tracker <http://bugs.python.org/issue12973> ___ ___ Python-bug

[issue12973] int_pow() implementation is incorrect

2011-09-15 Thread Stefan Krah
Changes by Stefan Krah : Added file: http://bugs.python.org/file23165/itertools_overflow.diff ___ Python tracker <http://bugs.python.org/issue12973> ___ ___ Python-bug

[issue12973] int_pow() implementation is incorrect

2011-09-15 Thread Stefan Krah
Stefan Krah added the comment: With issue12975.diff, listobject_overflow.diff and itertools_overflow.diff I don't get any more failures. Also, of course issue12975.diff looks correct to me if we assume: http://mail.python.org/pipermail/python-dev/2009-December/094392.html http://yarchiv

[issue12985] Check signed arithmetic overflow in ./configure

2011-09-15 Thread Stefan Krah
Stefan Krah added the comment: My rationale was something like this: If a compiler optimizes away signed arithmetic overflow, this particular comparison will most likely be in the set of optimizations, since it seems like low hanging fruit. Of course it doesn't guarantee wrapping behavi

[issue12973] int_pow() implementation is incorrect

2011-09-15 Thread Stefan Krah
Stefan Krah added the comment: Mark Dickinson wrote: > Well, they're all in the standard, which is publicly available. I have the real thing. :) > The correctness of the patch depends on: > (2) an assumption that the C implementation will never raise an > 'implemen

[issue12974] array module: deprecate '__int__' conversion support for array elements

2011-09-16 Thread Stefan Krah
Stefan Krah added the comment: I just discovered that struct packs pointers from objects with an __index__() method. Is that intentional? >>> import struct >>> class IDX(object): ... def __init__(self, value): ... self.value = value ... def __index__(self): .

[issue1172711] long long support for array module

2011-09-16 Thread Stefan Krah
Stefan Krah added the comment: > I am OK with applying the fix for this issue first. I also think this should be committed first. -- ___ Python tracker <http://bugs.python.org/issue1

[issue12974] array module: deprecate '__int__' conversion support for array elements

2011-09-16 Thread Stefan Krah
Stefan Krah added the comment: Mark Dickinson wrote: > Yes, that's intentional. When use of __int__ was deprecated, a bug > report popped up from someone who wanted to be able to have their own > objects treated as integers for the purposes of struct.pack. > (I don

[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler

2011-09-16 Thread Stefan Krah
Stefan Krah added the comment: I think you may want to ask these questions on the Python mailing list: http://mail.python.org/mailman/listinfo/python-list This is the Python bug-tracker, and it's not obvious to me that any of your points is a bug in Python. -- nosy: +

[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler

2011-09-16 Thread Stefan Krah
Stefan Krah added the comment: 1) I cannot reproduce this. 2) ld is the linker and not the compiler. 3) and 4) Should definitely be asked on python-list. -- resolution: -> works for me stage: -> committed/rejected status: open -&g

[issue12974] array module: deprecate '__int__' conversion support for array elements

2011-09-16 Thread Stefan Krah
Stefan Krah added the comment: Meador Inge wrote: > The behavior around '__int__' in previous versions seems somewhat accidental. I think struct followed the functions in longobject.c, which is not really consistent with respect to duck typing. See also #12965 or http://bu

[issue12936] armv5tejl segfaults: sched_setaffinity() vs. pthread_setaffinity_np()

2011-09-16 Thread Stefan Krah
Stefan Krah added the comment: I cannot reproduce the crash on: Linux debian-armel 2.6.32-5-versatile #1 Wed Jan 12 23:05:11 UTC 2011 armv5tejl GNU/Linux Since the old (arm) port is deprecated, I'm closing this. -- resolution: -> wont fix stage: test needed -> committ

[issue12998] Memory leak with CTypes Structure

2011-09-17 Thread Stefan Krah
Stefan Krah added the comment: I can reproduce the leak with Python 2.5.4, but not with Python 2.6.5 or Python 3.2. Python 2.5.4 is an ancient version. Please upgrade to Python 2.7 or Python 3.2. If the leak still exists, just respond to this issue and it will be opened again automatically

[issue13002] peephole.c: unused parameter

2011-09-17 Thread Stefan Krah
New submission from Stefan Krah : peephole.c: CONST_STACK_TOP(x) has an unused parameter. -- components: Interpreter Core files: peephole_unused_parameter.diff keywords: patch messages: 144189 nosy: skrah priority: normal severity: normal stage: patch review status: open title

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-09-18 Thread Stefan Krah
Changes by Stefan Krah : Added file: http://bugs.python.org/file23185/4492afe05a07.diff ___ Python tracker <http://bugs.python.org/issue10181> ___ ___ Python-bugs-list m

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-09-18 Thread Stefan Krah
Stefan Krah added the comment: Revision 4492afe05a07 allows memoryview to handle objects with an __index__() method. This is for compatibility with the struct module (See also #8300). -- ___ Python tracker <http://bugs.python.org/issue10

[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler

2011-09-20 Thread Stefan Krah
Stefan Krah added the comment: The README looks outdated. This isn't surprising, since probably no one here has access to the HP compiler. If you want to improve it, please try this: make distclean ./configure CC=cc CFLAGS="+DD64" make test I don't think the linker shou

[issue13014] Resource is not released before returning from the functiion

2011-09-21 Thread Stefan Krah
Stefan Krah added the comment: This doesn't look right to me: If (rdn != NULL) && (PyList_Size(rdn) > 0), rdn is already decremented. There is a leak though if (rdn != NULL) && (PyList_Size(rdn) == 0). -- nosy: +skrah _

[issue13014] _ssl.c: resource is not released before returning from the function

2011-09-21 Thread Stefan Krah
Changes by Stefan Krah : -- title: Resource is not released before returning from the functiion -> _ssl.c: resource is not released before returning from the function ___ Python tracker <http://bugs.python.org/issu

[issue12991] Python 64-bit build on HP Itanium - Executable built successfully but modules failed with HP Compiler

2011-09-21 Thread Stefan Krah
Stefan Krah added the comment: > I think, it is a good idea to improve the Readme for this issue. +1. Wah Meng: Building everything is not enough, does 'make test' complete successfully? For gcc, Python2.7 relies on two critical options, -fno-strict-aliasing and -fwrapv. Th

[issue13020] structseq.c: refleak

2011-09-21 Thread Stefan Krah
Changes by Stefan Krah : -- title: Resource is not released before returning from the functiion -> structseq.c: refleak ___ Python tracker <http://bugs.python.org/issu

[issue13013] _ctypes.c: refleak

2011-09-21 Thread Stefan Krah
Changes by Stefan Krah : -- title: Resource is not released before returning from the functiion -> _ctypes.c: refleak ___ Python tracker <http://bugs.python.org/issu

[issue13017] pyexpat.c: refleak

2011-09-21 Thread Stefan Krah
Changes by Stefan Krah : -- title: Resource is not released before returning from the functiion -> pyexpat.c: refleak ___ Python tracker <http://bugs.python.org/issu

[issue13018] dictobject.c: refleak

2011-09-21 Thread Stefan Krah
Changes by Stefan Krah : -- title: Resource is not released before returning from the functiion -> dictobject.c: refleak ___ Python tracker <http://bugs.python.org/issu

[issue13017] pyexpat.c: refleak

2011-09-21 Thread Stefan Krah
Changes by Stefan Krah : -- components: +Extension Modules stage: -> patch review versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issu

[issue13018] dictobject.c: refleak

2011-09-21 Thread Stefan Krah
Changes by Stefan Krah : -- components: +Interpreter Core stage: -> patch review versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issu

[issue13014] _ssl.c: refleak

2011-09-21 Thread Stefan Krah
Changes by Stefan Krah : -- components: +Extension Modules title: _ssl.c: resource is not released before returning from the function -> _ssl.c: refleak versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issu

[issue13016] selectmodule.c: refleak

2011-09-21 Thread Stefan Krah
Changes by Stefan Krah : -- components: +Extension Modules stage: -> patch review title: Resource is not released before returning from the functiion -> selectmodule.c: refleak versions: +Python 3.3 ___ Python tracker <http://bugs.p

[issue13015] _collectionsmodule.c: refleak

2011-09-21 Thread Stefan Krah
Changes by Stefan Krah : -- components: +Extension Modules stage: -> patch review title: Resource is not released before returning from the functiion -> _collectionsmodule.c: refleak versions: +Python 3.3 ___ Python tracker <http://bugs.p

[issue13019] bytearrayobject.c: refleak

2011-09-21 Thread Stefan Krah
Changes by Stefan Krah : -- title: bytearrayobject.c: Resource is not released before returning from the functiion -> bytearrayobject.c: refleak ___ Python tracker <http://bugs.python.org/issu

[issue13002] peephole.c: unused parameter

2011-09-21 Thread Stefan Krah
Stefan Krah added the comment: Thanks for checking the patch! Closing this now. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64

2011-09-29 Thread Stefan Krah
Stefan Krah added the comment: > However, the new binary is still not able to start a new thread from the > thread module. Traceback? mach/cthreads.h is only relevant for Hurd, as far as I can see. > configure:8572: cc +DD64 -I/home/r32813/local/include -o conftest -g > -L

[issue13060] allow other rounding modes in round()

2011-09-29 Thread Stefan Krah
Stefan Krah added the comment: > If the C accelerator for decimal gets decimal performance close to > floats (which I doubt, because it has to do much more), it could be > very useful for me. What is its estimated time to completion? It is finished and awaiting review (See #7652). Th

[issue11457] os.stat(): add new fields to get timestamps as Decimal objects with nanosecond resolution

2011-09-29 Thread Stefan Krah
Stefan Krah added the comment: > BTW, what is the status of cdecimal? I just wrote the same in another issue, but not everyone is subscribed to that: I think cdecimal is finished and production ready. The version in http://hg.python.org/features/cdecimal#py3k-cdecimal is the same as w

[issue13061] Decimal module yields incorrect results when Python compiled with llvm

2011-09-29 Thread Stefan Krah
Stefan Krah added the comment: > Possibly related to http://bugs.python.org/issue11149? Maybe I missed it in the links you gave, but that is easily settled by compiling with and without -fwrapv. -- nosy: +skrah ___ Python tracker &l

[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64

2011-09-29 Thread Stefan Krah
Stefan Krah added the comment: To me this looks like stdio.h should be included as well. Could you try the patch? -- keywords: +patch Added file: http://bugs.python.org/file23262/issue-13057.diff ___ Python tracker <http://bugs.python.

[issue13061] Decimal module yields incorrect results when Python compiled with llvm

2011-09-29 Thread Stefan Krah
Stefan Krah added the comment: It's more a straight duplicate of #12973, but the underlying cause (signed integer overflow) is the same. For people who are finding this via a search engine: A lot of bugs have been fixed in #12973, but even if the test suite passes without -fwrapv it is *

[issue13057] Thread not working for python 2.7.1 built with HP Compiler on HP-UX 11.31 ia64

2011-09-30 Thread Stefan Krah
Stefan Krah added the comment: Wah Meng: I think there are a couple of misconceptions that need to be cleared up: 1) Georg's complaint was about the links to http://dyno.freescale.net/ in you posts. 2) This is not a support hotline but a *bug tracker*. Since the bug in configur

[issue13080] test_email fails in refleak mode

2011-09-30 Thread Stefan Krah
Stefan Krah added the comment: I think this is a duplicate of #12788. -- nosy: +skrah resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> test_email fails with -R ___ Python tracker <http://

[issue13084] test_signal failure

2011-10-01 Thread Stefan Krah
New submission from Stefan Krah : Got this failure on Debian lenny amd64: [1/1] test_signal test test_signal failed -- Traceback (most recent call last): File "/home/stefan/cpython/Lib/test/test_signal.py", line 339, in test_pending """, *signals) File "

[issue13085] : memory leaks

2011-10-01 Thread Stefan Krah
New submission from Stefan Krah : I think a couple of leaks were introduced by the pep-393 changes (see the patch). -- components: Interpreter Core files: pep-393-leaks.diff keywords: patch messages: 144719 nosy: haypo, loewis, skrah priority: normal severity: normal stage: patch review

[issue13085] pep-393: memory leaks

2011-10-01 Thread Stefan Krah
Changes by Stefan Krah : -- title: : memory leaks -> pep-393: memory leaks ___ Python tracker <http://bugs.python.org/issue13085> ___ ___ Python-bugs-list mai

[issue13084] test_signal failure

2011-10-01 Thread Stefan Krah
Changes by Stefan Krah : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue13084> ___ ___ Python-bugs-list mailing list Unsubscri

[issue6632] Include more fullwidth chars in the decimal codec

2011-10-01 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue6632> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10156] Initialization of globals in unicodeobject.c

2011-10-01 Thread Stefan Krah
Stefan Krah added the comment: The PEP-393 changes apparently fix this leak; at least I can't reproduce it in default any longer (but still in 3.2). -- ___ Python tracker <http://bugs.python.org/is

[issue13089] parsetok.c: memory leak

2011-10-02 Thread Stefan Krah
New submission from Stefan Krah : Seen in test_mailbox: ==31621== 6 bytes in 2 blocks are definitely lost in loss record 27 of 10,370 ==31621==at 0x4C2154B: malloc (vg_replace_malloc.c:236) ==31621==by 0x5271A5: parsetok (parsetok.c:179) ==31621==by 0x526E8A

[issue13090] posix_read: memory leak

2011-10-02 Thread Stefan Krah
New submission from Stefan Krah : Seen in test_multiprocessing: ==31662== 37 bytes in 1 blocks are definitely lost in loss record 629 of 10,548 ==31662==at 0x4C2154B: malloc (vg_replace_malloc.c:236) ==31662==by 0x53BBE9: PyBytes_FromStringAndSize (bytesobject.c:98) ==31662==by

[issue13091] ctypes: memory leak

2011-10-02 Thread Stefan Krah
New submission from Stefan Krah : Seen in test_multiprocessing: ==31662== 44 bytes in 1 blocks are definitely lost in loss record 687 of 10,548 ==31662==at 0x4C2154B: malloc (vg_replace_malloc.c:236) ==31662==by 0x41CC27: PyMem_Malloc (object.c:1699) ==31662==by 0x127D9F51: resize

[issue13092] pep-393: memory leaks #2

2011-10-02 Thread Stefan Krah
New submission from Stefan Krah : I found a couple of additional leaks related to the PEP-393 changes. -- components: Interpreter Core files: pep-393-leaks-2.diff keywords: patch messages: 144767 nosy: loewis, skrah priority: normal severity: normal stage: patch review status: open

[issue13084] test_signal failure

2011-10-02 Thread Stefan Krah
Stefan Krah added the comment: Patch looks good to me (and it fixes the problem). -- ___ Python tracker <http://bugs.python.org/issue13084> ___ ___ Python-bug

[issue13093] Redundant code in PyUnicode_EncodeDecimal()

2011-10-02 Thread Stefan Krah
New submission from Stefan Krah : I can't see what this code is supposed to accomplish (see patch): while (collend < end) { if ((0 < *collend && *collend < 256) || !Py_UNICODE_ISSPACE(*collend) || Py_UNICODE_TODECIMAL(*collend)) break

[issue13072] Getting a buffer from a Unicode array uses invalid format

2011-10-03 Thread Stefan Krah
Stefan Krah added the comment: The automatic conversion of 'u' to 'I' or 'L' causes test_buffer (PEP-3118 repo) to fail: # Not implemented formats. Ugly, but inevitable. This is the same as # issue #2531: equality is also used for membership testing and must # re

[issue13072] Getting a buffer from a Unicode array uses invalid format

2011-10-03 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +meador.inge ___ Python tracker <http://bugs.python.org/issue13072> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13072] Getting a buffer from a Unicode array uses invalid format

2011-10-03 Thread Stefan Krah
Stefan Krah added the comment: >It would be better to use a format for a Py_UCS4 string, but struct doesn't >support such type. PEP-3118 suggests for the extended struct syntax: 'c' -> ucs-1 (latin-1) encoding &

[issue13072] Getting a buffer from a Unicode array uses invalid format

2011-10-03 Thread Stefan Krah
Stefan Krah added the comment: STINNER Victor wrote: > > # Not implemented formats. Ugly, but inevitable. This is the same as > > # issue #2531: equality is also used for membership testing and must > > # return a result. > > a = array.array('u&

[issue12210] test_smtplib: intermittent failures on FreeBSD

2011-10-03 Thread Stefan Krah
Stefan Krah added the comment: I haven't seen this in a while, so let's assume it's fixed. -- resolution: -> out of date stage: -> committed/rejected status: open -> closed ___ Python tracker <http:/

[issue3163] module struct support for ssize_t and size_t

2011-10-04 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue3163> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13108] test_urllib: buildbot failure

2011-10-05 Thread Stefan Krah
New submission from Stefan Krah : The FreeBSD-amd64 and Fedora buildbots are recently failing with: == ERROR: test_thishost (test.test_urllib.Utility_Tests) Test the urllib.request.thishost utility function returns a tuple

[issue13108] test_urllib: buildbot failure

2011-10-05 Thread Stefan Krah
Changes by Stefan Krah : -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> urllib.request.thishost() returns a garbage value type: -> behavior ___ Python tracker <http://bugs.pyt

[issue13104] urllib.request.thishost() returns a garbage value

2011-10-05 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker <http://bugs.python.org/issue13104> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13104] urllib.request.thishost() returns a garbage value

2011-10-06 Thread Stefan Krah
Stefan Krah added the comment: /etc/hosts was incomplete; works fine now. Closing again. -- resolution: -> fixed stage: test needed -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue12210] test_smtplib: intermittent failures on FreeBSD

2011-10-06 Thread Stefan Krah
Stefan Krah added the comment: Naturally, as soon as I declare it fixed, it occurs again: http://www.python.org/dev/buildbot/all/builders/AMD64%20FreeBSD%208.2%202.7/builds/326 -- status: closed -> open ___ Python tracker <http://bugs.pyth

[issue13124] Add "Running a Build Slave" page to the devguide

2011-10-07 Thread Stefan Krah
Stefan Krah added the comment: I think the whole security paragraph should be deleted. The discussion on python-dev has overstated the risks. Anyone who is *that* security conscious and in effect does not trust the Python committers should also audit the thousands of lines of ./configure and

[issue13130] test_gdb: attempt to dereference a generic pointer

2011-10-07 Thread Stefan Krah
New submission from Stefan Krah : The Fedora bot fails since yesterday: Breakpoint 1, builtin_id (self=, v=Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.krah-fedora/build/python-gdb.py", line 1329, in to_string return pyop.get_truncated_repr(MAX_

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2011-10-16 Thread Stefan Krah
Stefan Krah added the comment: I temporarily changed the Fedora bot to run Fedora-14-i386. The same failures can be observed: == ERROR: test_no_optimize_flag (distutils.tests.test_bdist_rpm.BuildRpmTestCase

[issue12367] select.error has no errno attribute

2011-10-17 Thread Stefan Krah
Stefan Krah added the comment: test_errno fails quite often on FreeBSD: == FAIL: test_errno (test.test_select.SelectTestCase) -- Traceback (most recent call

[issue12367] select.error has no errno attribute

2011-10-17 Thread Stefan Krah
Stefan Krah added the comment: Hmm, maybe this is a FreeBSD bug: http://osdir.com/ml/freebsd-bugs/2011-03/msg00201.html -- ___ Python tracker <http://bugs.python.org/issue12

[issue12367] select.error has no errno attribute

2011-10-17 Thread Stefan Krah
Stefan Krah added the comment: I'm not sure it's exactly the same FreeBSD bug as in kern/155606, since I can also reproduce the test_errno failure --without-threads. Seems good to skip the test though. -- ___ Python tracker <http://bu

[issue13307] test_bdist_rpm: INSTALLED_FILES does not use __pycache__

2011-10-31 Thread Stefan Krah
New submission from Stefan Krah : The failures seen on the Fedora buildbot are caused by the fact that INSTALLED_FILES does not use __pycache__: [stefan@fedora-14-i386 foo]$ cat build/bdist.linux-i686/rpm/BUILD/foo-0.1/INSTALLED_FILES /usr/local/lib/python3.3/site-packages/foo.py /usr/local

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2011-10-31 Thread Stefan Krah
Stefan Krah added the comment: For the buildbot failures see #13307. I think that it's indeed a different issue, since AFAIK __pycache__ didn't exist when this one was opened. -- ___ Python tracker <http://bugs.python.

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2011-11-03 Thread Stefan Krah
Stefan Krah added the comment: The buildbot runs as non-root, so it should reproduce this issue (but it's green). The original report was for 2.6/3.1, so I think closing this as out-of-date is reasonable. -- ___ Python tracker

[issue12998] Memory leak with CTypes Structure

2011-11-03 Thread Stefan Krah
Changes by Stefan Krah : -- status: pending -> closed ___ Python tracker <http://bugs.python.org/issue12998> ___ ___ Python-bugs-list mailing list Unsubscri

[issue13093] Redundant code in PyUnicode_EncodeDecimal()

2011-11-09 Thread Stefan Krah
Stefan Krah added the comment: Looking at it again, the intention was probably to increment collend so that it points to the first non-garbage character (or '\0'). If that's the case, the loop should be something like this: while (collend < end) { if ((0 < *coll

[issue7433] MemoryView memory_getbuf causes segfaults, double call to tp_releasebuffer

2011-11-19 Thread Stefan Krah
Stefan Krah added the comment: My last comment could be misinterpreted: This *is* actually already fixed in features/pep-3118. -- versions: +Python 3.3 -Python 3.1 ___ Python tracker <http://bugs.python.org/issue7

  1   2   3   4   5   6   7   8   9   10   >