[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-04-04 Thread Stefan Krah
Stefan Krah added the comment: For the new FreeBSD bot, the issue was simply insufficient swap space. With 1GB of memory and 2GB of swap test_zlib runs fine. -- ___ Python tracker _

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-04-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, at this point I think we could simply skip the test on BSDs and OS X. The tested functionality is cross-platform, so testing under a limited set of systems should be ok. -- ___ Python tracker

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-04-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: The new FreeBSD buildbot had a sporadic SIGKILL in http://www.python.org/dev/buildbot/all/builders/AMD64%20FreeBSD%208.2%203.x/builds/1/steps/test/logs/stdio (apparently, faulthandler didn't dump a traceback) By the way, we can be fairly certain now that the

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-04-04 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: Is the SIGBUS generated on the first page access ? How much memory does this buildbot have ? -- ___ Python tracker ___ ___

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-04-04 Thread STINNER Victor
STINNER Victor added the comment: Issue #11760 has been marked as a duplicate of this issue. -- ___ Python tracker ___ ___ Python-bug

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-04-04 Thread STINNER Victor
STINNER Victor added the comment: This issue is not dead: test_zlib failed twice on "AMD64 Snow Leopard 3.x" buildbot: build 30 (024967cdc2f0e850f0b338e7593a12d965017a6a, Mar 31 01:40:00 2011) and 44 (ebc03d7e711052c0b196aacdbec6778c0a6d5c0c, Apr 4 10:11:20 2011). Build 44 has a traceback tha

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-26 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-26 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: I'll give you the same result again but with additional clock(), just for a heart's pleasure: clock(): 0.100958 , fstat(): posix.stat_result(st_mode=33184, st_ino=10075508, st_dev=234881025, st_nlink=1, st_uid=502, st_gid=20, st_size=4294967300, st_a

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-26 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: 11:12 ~/tmp $ python3 ~/usr/opt/py3k/lib/python3.3/test_zlib.py Bus error Your code snippet: 11:21 ~/tmp $ /usr/bin/time -lp python3 test.py posix.stat_result(st_mode=33184, st_ino=10066605, st_dev=234881025, st_nlink=1, st_uid=502, st_gid=20, st_siz

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-25 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: Could you try with this:  def setUp(self):           with open(support.TESTFN, "wb+") as f:               f.seek(_4G)               f.write(b"asdf")               f.flush() +            os.fsync(f.fileno())               self.mapping = mmap.mmap(f.file

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Sorry, i've got that kid running around which sometimes doesn't know what it is doing. But this documentation patch may really be a help. It's my first doc-patch, so it surely needs to be revised, if interest exists in such a patch for mmap at all,

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-23 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso : Removed file: http://bugs.python.org/file20859/doc_lib_mmap.patch ___ Python tracker ___ ___ Python-bugs-l

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-23 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: I append a doc_lib_mmap.patch which may be helpful for those poor creatures who plan to write Python scripts for Mac OS X. (It may be a useful add-on anyway.) -- Added file: http://bugs.python.org/file20859/doc_lib_mmap.patch

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r88511 (3.3) and r88514 (3.2). -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine, your msg129093 patch of test_zlib.py does it (with and > without fprintf(3)s). CRC ok etc., it just works. Indeed, and it also seems to work on the buildbot. I will commit the patch soon. Thanks for your help! > (Seems mmap(2) has a problem here, i

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: neologix: even with 2 GB RAM top(1) shows more than 600 MB free memory with the 4 GB test up and running ... in an Mac OS X environment ... Lucky me, i don't believe them a single word... -- ___ Python tra

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: (neologix: SIGBUS is not the same as SIGSEGV. You know. Thanks for this nice bug report. Eight years is a .. time in computer programming - unbelievable, thinking of all these nervous wrecks who ever reported a bug to Apple! Man!!!) -- __

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: (That is to say: i think it's better not to assume that these boys plan to *ever* fix it. (Though mmap(2) is not CoreAudio/AudioUnit.)) -- ___ Python tracker ___

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: I have a MacBook with 2 GB RAM. Of course i'm a little bit messy, so an entry is half written before it comes to an ... end. msg129091 is real life, though. Antoine, your msg129093 patch of test_zlib.py does it (with and without fprintf(3)s). CRC o

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: > .. even with a self-compiled 1.2.3, INT_MAX/1000 ... nothing. > The problem is not crc32(), but the buffer itself: > >if (pbuf.len > 1024*5) { > unsigned char *buf = pbuf.buf; > Py_ssize_t len = pbuf.len; > Py_ssize_t i; >

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Out of curiosity, could you try the following patch? Index: Lib/test/test_zlib.py === --- Lib/test/test_zlib.py (révision 88500) +++ Lib/test/test_zlib.py (copie de travail) @@ -70,7 +7

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Snippet if (pbuf.len > 1024*5) { volatile unsigned char *buf = pbuf.buf; Py_ssize_t len = pbuf.len; Py_ssize_t i = 0; volatile unsigned char au[100]; volatile unsigned char*x = au; fprintf(stderr, "CRC ENTER, buffer=%p\n", bu

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > .. even with a self-compiled 1.2.3, INT_MAX/1000 ... nothing. > The problem is not crc32(), but the buffer itself: > >if (pbuf.len > 1024*5) { > unsigned char *buf = pbuf.buf; > Py_ssize_t len = pbuf.len; > Py_ssize_t i; > fprintf(

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: (P.S.: of course talking about ChecksumBigBufferTestCase and the 4GB, say.) -- ___ Python tracker ___ _

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: .. even with a self-compiled 1.2.3, INT_MAX/1000 ... nothing. The problem is not crc32(), but the buffer itself: if (pbuf.len > 1024*5) { unsigned char *buf = pbuf.buf; Py_ssize_t len = pbuf.len; Py_ssize_t i; fprintf(stderr,

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Just stepping ... with c8d1f99f25eb/r88476: Right, that's what we should investigate :) Could try to diagnose the crash? -- ___ Python tracker _

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Just stepping ... with c8d1f99f25eb/r88476: == CPython 3.3a0 (py3k, Feb 22 2011, 14:18:19) [GCC 4.2.1 (Apple Inc. build 5664)] == Darwin-10.6.0-i386-64bit little-endian == /private/var/folders/Da/DaZX3-k5G8a57zw6MSmjJTM/-Tmp-/test_python_5126 T

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: (Is not that much help for a >4GB error, huh?) -- ___ Python tracker ___ ___ Python-bugs-li

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso : Removed file: http://bugs.python.org/file20837/issue11277.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: So here is this (with my patch, but this is for real: issue11277.2.patch): == CPython 3.3a0 (py3k, Feb 22 2011, 14:00:52) [GCC 4.2.1 (Apple Inc. build 5664)] == Darwin-10.6.0-i386-64bit little-endian == /private/var/folders/Da/DaZX3-k5G8a57zw6MSmjJ

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: No, i've got no idea of this framework... Just did 'python3 test_zlib.py' directly. Thanks for the switch. But i can't test your thing due to issue11285, so this may take a while (others have more knowledge anyway).. (P.S.: your constant-folding sta

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > This is on Snow Leopard 64 bit, 02b70cb59701 (r88451) -> Python 3.3a0. > Is there a switch i must trigger? Just pulled 24 changesets, > recompiling and trying again with r88460. Have you tried "./python -m test -v -uall test_zlib" ? --

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: test_zlib.py (with my patch but that's somewhat identical in the end, say) does .s... -- Ran 37 tests in 1.809s OK (skipped=1) This is on Snow Leopard

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: I guess not at all. Well. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > File: issue11277.patch. > Hmm. Two non-register constants and equal code on 32 and 64 bit. > Does Python has a '64 bit' switch or the like - PY_SSIZE_T_MAX is not > preprocessor-clean, i would guess. Er, how is this patch different from r88460? --

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Sorry - that was a mess. -- Added file: http://bugs.python.org/file20837/issue11277.patch ___ Python tracker ___ __

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso : Removed file: http://bugs.python.org/file20836/issue11277.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: File: issue11277.patch. Hmm. Two non-register constants and equal code on 32 and 64 bit. Does Python has a '64 bit' switch or the like - PY_SSIZE_T_MAX is not preprocessor-clean, i would guess. -- keywords: +patch Added file: http://bugs.pyt

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Wait a few minutes, i'll write this simple patch for adler and crc. But excessive testing and such is beyond my current capabilities. -- ___ Python tracker _

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, it's not a patch, just a traceback :) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: 'Have no glue, but Ned Daily's patch (msg129011) seems to be required for adler, too. (You know...) -- nosy: +sdaoden ___ Python tracker

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Does it matter that _4G < UINT_MAX? You mean _4G > UINT_MAX, right? Yes, it matters, otherwise that defeats the point of the test :) -- ___ Python tracker _

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-21 Thread Brett Cannon
Brett Cannon added the comment: Does it matter that _4G < UINT_MAX? -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-21 Thread Ned Deily
Ned Deily added the comment: >>> from test.support import _4G >>> _4G 4294967296 >>> mapping.size() 4294967300 pbuf.len = 4294967300, len = 4294967300 UINT_MAX = 4294967295 -- ___ Python tracker _

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-21 Thread Brett Cannon
Brett Cannon added the comment: So on my system, that 'while' loop is executed once (put a printf() after the bug and len adjustments and it was never hit). -- ___ Python tracker _

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-21 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-21 Thread Ned Deily
Ned Deily added the comment: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: 10 at address: 0x00010170e000 0x0001016eeaa0 in crc32 () (gdb) backtrace #0 0x0001016eeaa0 in crc32 () #1 0x0001016e806d in PyZlib_crc32 (self=0x1016aa588, args=0x1016bf220) a

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-21 Thread Ned Deily
Ned Deily added the comment: Current OS X zlib is 1.2.3. Test crashes with most recently released zlib, 1.2.5, as well. -- ___ Python tracker ___ _

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've tried INT_MAX and it didn't change anything. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-21 Thread STINNER Victor
STINNER Victor added the comment: Do adler32() and crc32() support length up to UINT32_MAX? Or should we maybe limit the length to INT32_MAX? -- nosy: +haypo ___ Python tracker ___

[issue11277] test_zlib crashes under Snow Leopard buildbot

2011-02-21 Thread Antoine Pitrou
New submission from Antoine Pitrou : Following r88460 (issue10276), test_zlib crashes on the Snow Leopard buildbot (apparently in the new "test_big_buffer" test case). -- messages: 129002 nosy: ixokai, ned.deily, pitrou priority: critical severity: normal status: open title: test_zlib c