[issue11994] [2.7/gcc-4.4.3] Segfault under valgrind in string.split()

2011-05-03 Thread Stefan Krah
New submission from Stefan Krah : I can reproduce this only with gcc-4.4.3, so it could also be a compiler bug. Also, the segfault only occurs when python is compiled with optimizations and run under valgrind. hg up 2.7 make distclean ./configure make valgrind --suppressions=Misc/valgrind-pytho

[issue11987] queue.Queue.put should acquire mutex for unfinished_tasks

2011-05-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue11987] queue.Queue.put should acquire mutex for unfinished_tasks

2011-05-03 Thread patrick vrijlandt
patrick vrijlandt added the comment: I agree. Please close the ticket. Thanks, Patrick 2011/5/3 Raymond Hettinger > > Raymond Hettinger added the comment: > > > This line should be protected by acquiring the all_tasks_done lock. > > All of three of the condition variables share the same un

[issue6721] Locks in python standard library should be sanitized on fork

2011-05-03 Thread Charles-François Natali
Charles-François Natali added the comment: Oops, for liunxthreads, you should of course read "different PIDs", not "same PID". -- ___ Python tracker ___

[issue6721] Locks in python standard library should be sanitized on fork

2011-05-03 Thread Charles-François Natali
Charles-François Natali added the comment: > Yes, we would need to keep track of the thread id and process id inside > the lock. We also need a global variable of the main thread id after > fork, and a per-lock "taken" flag. > > Synopsis: > >    def _reinit_if_needed(self): >        # Call this

[issue11834] wrong module installation dir on Windows

2011-05-03 Thread Brian Curtin
Brian Curtin added the comment: Thanks for the patches and reviews! -- assignee: -> brian.curtin resolution: -> fixed stage: needs patch -> committed/rejected type: -> behavior ___ Python tracker __

[issue11834] wrong module installation dir on Windows

2011-05-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 175dcc8c4b23 by Brian Curtin in branch '3.1': Fix #11834. Correct site-packages paths. http://hg.python.org/cpython/rev/175dcc8c4b23 New changeset 03d511dec224 by Brian Curtin in branch '3.2': Fix #11834. Correct site-packages paths. http://hg.pyth

[issue11993] Is it desired to distinguish new files from old with sub-second resolution?

2011-05-03 Thread John S. Gruber
John S. Gruber added the comment: Thanks for writing so quickly. This topic arose as part of issue 11933 (similar number). Éric Araujo asked that I bring this up in either mail to the fellowship of the packaging or as a separate bug report, so I chose to file this. Please see msg 134634 from

[issue11993] Is it desired to distinguish new files from old with sub-second resolution?

2011-05-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: Is this proposing some sort of change or problem? -- nosy: +benjamin.peterson ___ Python tracker ___ ___

[issue11993] Is it desired to distinguish new files from old with sub-second resolution?

2011-05-03 Thread John S. Gruber
New submission from John S. Gruber : This report is meant to prompt discussion, if desired, on the advisability of distinguishing new files from old using subsecond data. (It isn't clear to me that it is important to do this.) Some file systems keep sub-second modification times, but the numbe

[issue11992] sys.settrace doesn't disable tracing if a local trace function returns None

2011-05-03 Thread Ned Batchelder
Changes by Ned Batchelder : -- assignee: -> nedbat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue11992] sys.settrace doesn't disable tracing if a local trace function returns None

2011-05-03 Thread Ned Batchelder
New submission from Ned Batchelder : The docs say: The trace function is invoked (with event set to 'call') whenever a new local scope is entered; it should return a reference to a local trace function to be used that scope, or None if the scope shouldn’t be traced. The local trace fu

[issue7546] msvc9compiler.py: add .asm extension

2011-05-03 Thread Zooko O'Whielacronx
Zooko O'Whielacronx added the comment: Thanks, Stefan Krah. I posted your comment to the tahoe-dev mailing list: http://tahoe-lafs.org/pipermail/tahoe-dev/2011-May/006336.html Also Samuel Neves has posted on that thread. -- ___ Python tracker

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-03 Thread STINNER Victor
STINNER Victor added the comment: > Since the commit c9207c6ce24a, test_signal fails on OpenIndiana: > > http://www.python.org/dev/buildbot/all/builders/x86%20OpenIndiana%203.x/builds/1179 > == > ERROR: test_block_unlock (test.

[issue7546] msvc9compiler.py: add .asm extension

2011-05-03 Thread Stefan Krah
Stefan Krah added the comment: The poster should get the same error messages from: ml64 /c /Cx x64dll.asm Perhaps the assembly isn't MASM? -- ___ Python tracker ___ __

[issue11962] Buildbot reliability

2011-05-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: My Ubuntu PPC server is having hardware problems. It will just intermittently shut off. I've reset the SMU and the PRAM, vacuumed out the guts, reseated the RAM, pulled any possibly problematic 3rd party boards, and it still crashes. I was watching the sy

[issue11962] Buildbot reliability

2011-05-03 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue11962] Buildbot reliability

2011-05-03 Thread Stefan Krah
Stefan Krah added the comment: Another instance: 2011-05-03 20:18:08+0200 [Broker,client] closing stdin 2011-05-03 20:18:08+0200 [Broker,client] using PTY: False 2011-05-03 20:20:38+0200 [-] sending app-level keepalive Again this is missing: ... [-] command finished with signal None, exi

[issue6721] Locks in python standard library should be sanitized on fork

2011-05-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Also, this would imply keeping track of the thread currently owning > the lock, Yes, we would need to keep track of the thread id and process id inside the lock. We also need a global variable of the main thread id after fork, and a per-lock "taken" flag. Sy

[issue11988] special method lookup docs don't address some important details

2011-05-03 Thread R. David Murray
R. David Murray added the comment: Ah, that's what my problem is. My test example was poorly conceived (I used __del__!) so I *thought* the other special methods were triggering getattr. I'd have figured it out if I hadn't screwed up my test :( -- resolution: -> invalid stage: needs

[issue11990] redirected output - stdout writes newline as \n in windows

2011-05-03 Thread James Hutchison
James Hutchison added the comment: Nevermind, I have a workaround that didn't require rewriting all the print statements but its in the C# code not the python code -- ___ Python tracker __

[issue11988] special method lookup docs don't address some important details

2011-05-03 Thread R. David Murray
R. David Murray added the comment: Well, then I suppose my question is why isn't __contains__ looked up? Other special methods that don't exist on Y do cause __getattr__ to be called. Why is __contains__ special? The docs for __getattr__ don't hint at this possibility either. I think the

[issue6721] Locks in python standard library should be sanitized on fork

2011-05-03 Thread Charles-François Natali
Charles-François Natali added the comment: # A lock taken from the current thread should stay taken in the # child process. Note that I'm not sure of how to implement this. After a fork, even releasing the lock can be unsafe, it must be re-initialized, see following comment in glibc's

[issue11991] test_distutils fails because of bad filename match

2011-05-03 Thread Piotr Husiatyński
New submission from Piotr Husiatyński : I'm using Arch Linux, which instead of compress, provides symlink to gzip (AFAIK this will be replaced with xz). Because of that, instead of .Z extension, .gz is being used to create compressed file name. $ ./python -m test test_distutils [1/1] test_dist

[issue11990] redirected output - stdout writes newline as \n in windows

2011-05-03 Thread James Hutchison
James Hutchison added the comment: Sorry there isn't more info but I'm really busy right now In fact a workaround would be appreciated if known. -- ___ Python tracker ___ _

[issue11990] redirected output - stdout writes newline as \n in windows

2011-05-03 Thread James Hutchison
New submission from James Hutchison : In windows, 64-bit, python *mostly* writes only a \n to stdout even though it's mode is 'w'. However it sometimes writes a \r\n on certain print statements and erratically when I have multiple processes writing to stdout. Output looks fine in console, in I

[issue11988] special method lookup docs don't address some important details

2011-05-03 Thread Georg Brandl
Georg Brandl added the comment: Not sure I understand your issue here. How should "1 in y" get at X.__contains__ given the special method lookup rules? The __getattr__ is not called since y.__contains__ isn't looked up. -- nosy: +georg.brandl ___

[issue11988] special method lookup docs don't address some important details

2011-05-03 Thread Eric Snow
Eric Snow added the comment: In 2.7 I get the following (if Y does not inherit from object): >>> print('res:', 1 in y) ('X contains:', 1) ('res:', False) This makes sense with old style classes. With Y(object): >>> print('res:', 1 in y) Y iter ('res:', True) -- nosy: +ericsnow

[issue11989] deprecate shutil.copy2

2011-05-03 Thread Danijel
New submission from Danijel : The function name is really ugly. The attached patch introduces an optional parameter to shutil.copy. -- components: Library (Lib) files: shutil.py.diff keywords: patch messages: 135073 nosy: datamuc priority: normal severity: normal status: open title: dep

[issue10276] zlib crc32/adler32 buffer length truncation (64-bit)

2011-05-03 Thread Nadeem Vawda
Nadeem Vawda added the comment: Changeset a0681e7a6ded fixes this bug for 2.7 - too-large buffers cause an OverflowError during argument parsing, so there is no possibility of truncation happening. -- status: open -> closed ___ Python tracker

[issue11970] distutils command 'upload' crashes when --show-response is selected

2011-05-03 Thread Chris Rose
Chris Rose added the comment: I can see that this is only an error in the 2.7.1 release, and is fixed in distutils on the 2.7 branch (along with other bugs, too, from what I can see.) I'm closing it as invalid, given that. -- resolution: -> invalid status: open -> closed ___

[issue8498] Cannot use backlog = 0 for sockets

2011-05-03 Thread Charles-François Natali
Charles-François Natali added the comment: > To revive this issue, I tried to write a unit test to verify the behaviour. > Onfurtunately, the test doesn't work and I don't understand why. I hope, > someone here is more enlightend than me... The semantic of listen's backlog argument has always b

[issue11988] special method lookup docs don't address some important details

2011-05-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue11988] special method lookup docs don't address some important details

2011-05-03 Thread Andreas Stührk
Changes by Andreas Stührk : -- nosy: +Trundle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue6721] Locks in python standard library should be sanitized on fork

2011-05-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: Those tests make sense to me. -- Added file: http://bugs.python.org/file21875/unnamed ___ Python tracker ___Those tests make sense to me.

[issue11988] special method lookup docs don't address some important details

2011-05-03 Thread R. David Murray
New submission from R. David Murray : The following code: class X(list): def __contains__(self, key): print('X contains:', key) class Y(): def __init__(self, x): self.x = x def __getattr__(self, key): return getattr(self.x

[issue6721] Locks in python standard library should be sanitized on fork

2011-05-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch with tests for the issue (some of which fail of course). Do we agree that these tests are right? -- keywords: +patch Added file: http://bugs.python.org/file21874/forklocktests.patch ___ Python tracker

[issue10276] zlib crc32/adler32 buffer length truncation (64-bit)

2011-05-03 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Ha! I always knew it! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue11982] json.loads() returns str instead of unicode for empty strings

2011-05-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue11987] queue.Queue.put should acquire mutex for unfinished_tasks

2011-05-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: > This line should be protected by acquiring the all_tasks_done lock. All of three of the condition variables share the same underlying lock. The increment occurs only with the lock has been acquired. > Theoretically, the increment could occur somewhere

[issue11987] queue.Queue.put should acquire mutex for unfinished_tasks

2011-05-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11987] queue.Queue.put should acquire mutex for unfinished_tasks

2011-05-03 Thread patrick vrijlandt
New submission from patrick vrijlandt : Line 154 in standard library's queue.py, in the definition of Queue.put() is: self.unfinished_tasks += 1 This line should be protected by acquiring the all_tasks_done lock. Theoretically, the increment could occur somewhere during task_done()! Additional

[issue11986] Min/max not symmetric in presence of NaN

2011-05-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: The report is invalid because min/max make no guarantees about values without a total ordering. Your other tracker item correctly focused on the behavior of float('NaN') itself, rather than on the behavior of everything else in the Python world that compa

[issue11982] json.loads() returns str instead of unicode for empty strings

2011-05-03 Thread Ezio Melotti
Ezio Melotti added the comment: Attached patch should fix the problem. -- keywords: +patch Added file: http://bugs.python.org/file21873/issue11982.diff ___ Python tracker ___ __

[issue11949] Make float('nan') unorderable

2011-05-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Also, if you're going to make a change, please consult the scipy/numpy community. They are the most knowledgeable on the subject and the most affected by any change. Given that they have not made any feature requests or bug reports about the current beha

[issue11949] Make float('nan') unorderable

2011-05-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Alexander, I urge you to take a good deal of care with this tracker item and not make any changes lightly. Take a look at how other languages have dealt with the issue. Also, consider that "unorderable" may not be the right answer at all. The most commo

[issue11986] Min/max not symmetric in presence of NaN

2011-05-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, May 3, 2011 at 2:41 PM, Raymond Hettinger wrote: .. > Undefined ordering means just that. Means what? Compare float behavior to Decimal('1') >>> Decimal(1).max(Decimal('nan')) Decimal('1') >>> max(Decimal('1'), Decimal('nan')) Traceback (most r

[issue11986] Min/max not symmetric in presence of NaN

2011-05-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Undefined ordering means just that. -- nosy: +rhettinger resolution: -> invalid status: open -> closed ___ Python tracker ___ _

[issue11986] Min/max not symmetric in presence of NaN

2011-05-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Not specific to NaNs: >>> min({1}, {2}) {1} >>> min({2}, {1}) {2} -- nosy: +pitrou ___ Python tracker ___

[issue11986] Min/max not symmetric in presence of NaN

2011-05-03 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : >>> nan = float('nan') >>> min(nan, 5) nan >>> min(5, nan) 5 Good arguments can be made in favor of either result, but different value for min(x, y) depending on the order of arguments can hardly be justified. "In the face of ambiguity, refuse the tem

[issue11982] json.loads() returns str instead of unicode for empty strings

2011-05-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue11982] json.loads() returns str instead of unicode for empty strings

2011-05-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> ezio.melotti nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue11985] Document that platform.python_implementation supports PyPy

2011-05-03 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the info! -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue11985] Document that platform.python_implementation supports PyPy

2011-05-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset f6c85df15874 by Ezio Melotti in branch '2.7': #11985: document the return value of platform.python_implementation for PyPy. http://hg.python.org/cpython/rev/f6c85df15874 New changeset 4d946d4166fc by Ezio Melotti in branch '3.1': #11985: document t

[issue1856] shutdown (exit) can hang or segfault with daemon threads running

2011-05-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Victor pointed out that Py_Finalize() is not necessarily called in the main Python thread. This new patch records the thread state of the finalizing thread, and also includes a test case. -- Added file: http://bugs.python.org/file21872/finalizing2.pat

[issue11985] Document that platform.python_implementation supports PyPy

2011-05-03 Thread Alex Gaynor
Alex Gaynor added the comment: It returns "PyPy" on pypy. -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue11985] Document that platform.python_implementation supports PyPy

2011-05-03 Thread Éric Araujo
New submission from Éric Araujo : The docstring and reST doc of platform.python_implementation mention possible return values of CPython, IronPython and Jython, but if I understand the code correctly, PyPy is supported too. -- assignee: docs@python components: Documentation, Library (L

[issue4851] xml.dom.minidom.Element.cloneNode fails with AttributeError

2011-05-03 Thread Alexandre Zani
Changes by Alexandre Zani : -- nosy: +Alexandre.Zani ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue11849] glibc allocator doesn't release all free()ed memory

2011-05-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue11849] glibc allocator doesn't release all free()ed memory

2011-05-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset f8a697bc3ca8 by Antoine Pitrou in branch 'default': Issue #11849: Make it more likely for the system allocator to release http://hg.python.org/cpython/rev/f8a697bc3ca8 -- nosy: +python-dev ___ Python tra

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-03 Thread R. David Murray
R. David Murray added the comment: Running test_compileall with -F it failed on iteration 588 on my linux box. So this isn't platform specific. No idea why that particular test should be fragile, but I'll look in to it when I get some time if nobody beats me to it. -- stage: -> nee

[issue10496] "import site failed" when Python can't find home directory (sysconfig._getuserbase)

2011-05-03 Thread Tarek Ziadé
Tarek Ziadé added the comment: Paths that are starting with ~ should be extended with the right value with the user base. If the user base cannot be calculated, paths starting with ~ should not exist or be used at all in this context. Maybe we need to completely reset them to None like userba

[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.3" but "10.5" during configure

2011-05-03 Thread Éric Araujo
Éric Araujo added the comment: Looks acceptable to me. A few details in the code could be improved: +@unittest.skipUnless(sys.platform == 'darwin', 'MacOSX test') Skip messages generally use another form, like “test relevant only on Mac OS X”. +finally: +os.environ = o

[issue11949] Make float('nan') unorderable

2011-05-03 Thread Mark Dickinson
Mark Dickinson added the comment: I was thinking of something like the rAssertAlmostEqual method in test_cmath. -- ___ Python tracker ___ ___

[issue10496] "import site failed" when Python can't find home directory (sysconfig._getuserbase)

2011-05-03 Thread Éric Araujo
Éric Araujo added the comment: This is the one thing about which I wanted a call: “after the patch, paths returned by sysconfig may not be fully expanded paths” (i.e. they may start with '~'). -- ___ Python tracker

[issue7546] msvc9compiler.py: add .asm extension

2011-05-03 Thread Zooko O'Whielacronx
Zooko O'Whielacronx added the comment: I got a bug report from a user that they encountered this error: http://tahoe-lafs.org/pipermail/tahoe-dev/2011-April/006312.html Then a follow-up in which they say they applied the patch from http://bugs.python.org/issue8597 (this ticket is the superced

[issue10276] zlib crc32/adler32 buffer length truncation (64-bit)

2011-05-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset dd58f8072216 by Victor Stinner in branch '2.7': Issue #10276: Fix test_zlib, m may be undefined in the finally block http://hg.python.org/cpython/rev/dd58f8072216 -- ___ Python tracker

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 96a532eaa2d1 by Victor Stinner in branch 'default': Issue #8407: disable faulthandler timeout thread on all platforms http://hg.python.org/cpython/rev/96a532eaa2d1 -- ___ Python tracker

[issue11949] Make float('nan') unorderable

2011-05-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > There are lots of almost-equality tests in the test-suite already, > between test_math, test_float, test_cmath and test_complex. > Do you need to implement another one here, or can you reuse one > of the existing ones? I can probably use acc_check() in

[issue11980] zipfile.ZipFile.write should accept fp as argument

2011-05-03 Thread Johan Euphrosine
Johan Euphrosine added the comment: Here is a tentative implementation. Feel free to review it. -- keywords: +patch Added file: http://bugs.python.org/file21871/zipfile-add-writefp.patch ___ Python tracker __

[issue11981] dupe self.fp.tell() in zipfile.ZipFile.writestr

2011-05-03 Thread Johan Euphrosine
Changes by Johan Euphrosine : -- keywords: +patch title: duplicated self.fp.tell() in zipfile.ZipFile.writestr -> dupe self.fp.tell() in zipfile.ZipFile.writestr Added file: http://bugs.python.org/file21870/zipfile-fix-dupe-fp-tell.patch ___ Python t

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-03 Thread STINNER Victor
STINNER Victor added the comment: Since the commit c9207c6ce24a, test_signal fails on OpenIndiana: http://www.python.org/dev/buildbot/all/builders/x86%20OpenIndiana%203.x/builds/1179 == ERROR: test_block_unlock (test.test_signa

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-03 Thread STINNER Victor
STINNER Victor added the comment: I commited mmap fix for Mac OS X, crc test on 2 GB file, and issue #8651 fix into Python 2.7. Use PY_SSIZE_T_CLEAN in zlibmodule.c is a new feature. I don't want to implement it, I don't need it, and I don't feel confortable in zlibmodule.c. Open a new issue

[issue10276] zlib crc32/adler32 buffer length truncation (64-bit)

2011-05-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset f43213129ba8 by Victor Stinner in branch '2.7': Issue #10276: test_zlib checks that inputs of 2 GB are handled correctly by http://hg.python.org/cpython/rev/f43213129ba8 -- nosy: +python-dev status: pending -> open

[issue8651] "s#" and friends can silently truncate buffer length

2011-05-03 Thread STINNER Victor
STINNER Victor added the comment: > Reopen the issue if you would like a port to 2.7 > (I am too lazy to do it) I backported the fix to help issue #11277. While backporting the fix, I found another bug fixed by 509f1c15a1e1. -- ___ Python tracker

[issue8651] "s#" and friends can silently truncate buffer length

2011-05-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset a0681e7a6ded by Victor Stinner in branch '2.7': Issue #8651: PyArg_Parse*() functions raise an OverflowError if the file http://hg.python.org/cpython/rev/a0681e7a6ded -- ___ Python tracker

[issue8651] "s#" and friends can silently truncate buffer length

2011-05-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 509f1c15a1e1 by Victor Stinner in branch '2.7': Issue #8651: Fix "z#" format of PyArg_Parse*() function: the size was not http://hg.python.org/cpython/rev/509f1c15a1e1 -- ___ Python tracker

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset c9207c6ce24a by Victor Stinner in branch 'default': Issue #8407: pthread_sigmask() checks immediatly if signal handlers have been http://hg.python.org/cpython/rev/c9207c6ce24a -- ___ Python tracker

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 618c3e971e80 by Victor Stinner in branch '2.7': (Merge 3.1) Issue #11277: mmap.mmap() calls fcntl(fd, F_FULLFSYNC) on Mac OS X http://hg.python.org/cpython/rev/618c3e971e80 -- ___ Python tracker

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-03 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso : Removed file: http://bugs.python.org/file21855/11277-27.1.diff ___ Python tracker ___ ___ Python-bugs-list

[issue11277] Crash with mmap and sparse files on Mac OS X

2011-05-03 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: > Should we fix Python 2.7? > - backport issue #8651 > - use PY_SSIZE_T_CLEAN in zlibmodule.c I really thought about this over night. I'm a C programmer and thus: - Produce no bugs - If you've produced a bug, fix it at once - If you've fixed a bug, sc

[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset d003ce770ba1 by Victor Stinner in branch 'default': Issue #8407: Fix pthread_sigmask() tests on Mac OS X http://hg.python.org/cpython/rev/d003ce770ba1 -- ___ Python tracker

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2011-05-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > Killed by the user, or by an automatic device (such as the Linux OOM > > killer), or crashed. > > Crashed would be bad - it would indicate a bug in the > ProcessPoolExecutor code. I meant a crash in Python itself, or any third-party extension module. >

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2011-05-03 Thread Brian Quinlan
Brian Quinlan added the comment: > Killed by the user, or by an automatic device (such as the Linux OOM > killer), or crashed. Crashed would be bad - it would indicate a bug in the ProcessPoolExecutor code. > >> If the user kills a child then maybe all we want to do is raise an >> exception

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2011-05-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Under what circumstances do we expect a ProcessPoolExecutor child > process to be killed outside of the control of the > ProcessPoolExecutor? Killed by the user, or by an automatic device (such as the Linux OOM killer), or crashed. > If the user kills a chil

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2011-05-03 Thread Brian Quinlan
Brian Quinlan added the comment: Under what circumstances do we expect a ProcessPoolExecutor child process to be killed outside of the control of the ProcessPoolExecutor? If the user kills a child then maybe all we want to do is raise an exception rather than deadlock as a convenience. -

[issue10044] small int optimization

2011-05-03 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: Now me. (http://gcc.gnu.org/onlinedocs/gcc/Arrays-and-pointers-implementation.html#Arrays-and-pointers-implementation) > When casting from pointer to integer and back again, the resulting > pointer must reference the same object as the original pointer,

[issue11849] glibc allocator doesn't release all free()ed memory

2011-05-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch looks fine to me, thank you. -- stage: -> patch review versions: -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___

[issue10169] socket.sendto raises incorrect exception when passed incorrect types

2011-05-03 Thread Ezio Melotti
Ezio Melotti added the comment: Added tests and fixed all the problems they found. -- keywords: +needs review stage: patch review -> commit review Added file: http://bugs.python.org/file21868/issue10169-2.diff ___ Python tracker

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2011-05-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, it came to me that if a child process exists, the queues are not guaranteed to be a consistent state anymore (the child could have terminated in the middle of a partial read or write). So it may be better to simply declare the ProcessPoolExecutor te

[issue10169] socket.sendto raises incorrect exception when passed incorrect types

2011-05-03 Thread Ezio Melotti
Ezio Melotti added the comment: The original code was trying to call PyArg_ParseTuple assuming 2 args and in case of failure (*any* failure) was starting over assuming 3 args. The attached patch makes PyArg_ParseTuple accept 2 or 3 args and re-arranges the last two if 'flags' is passed. The te

[issue11866] race condition in threading._newname()

2011-05-03 Thread Peter Saveliev
Peter Saveliev added the comment: Ok, patch attached. Patch made for Python: 2.6 Tested Python versions: 2.6, 2.7 -- keywords: +patch versions: +Python 2.6 Added file: http://bugs.python.org/file21866/newname_race_fix.patch ___ Python tracker

[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.3" but "10.5" during configure

2011-05-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: This issue is very annoying when you use python's with different deployment targets and should IMHO be fixed in the next release. -- nosy: +benjamin.peterson, georg.brandl priority: normal -> release blocker ___ Py