[issue39345] Py_Initialize Hangs on Windows 10

2021-06-08 Thread Duane Griffin
Duane Griffin added the comment: I can reproduce this on Windows 10 with Python 3.9. See attached source. At least for us, it is hanging when one thread is doing a read on the file descriptor while a second calls Py_Initialize (or just dup directly). The windows kernel call stack shows the

[issue27482] heap-buffer-overflow on address 0x6250000078ff

2016-09-13 Thread Duane Griffin
Duane Griffin added the comment: There are a couple of places where the tokenizer code is not correctly handling \0 characters occurring at the start of the buffer. Patch attached. -- keywords: +patch nosy: +duaneg Added file: http://bugs.python.org/file44646/0001-Issue-27482-handle

[issue28024] fileinput causes RecursionErrors when dealing with large numbers of empty files

2016-09-12 Thread Duane Griffin
Duane Griffin added the comment: This was fixed in 2.7, 3.5 and head when #15068 was fixed. -- nosy: +duaneg, serhiy.storchaka ___ Python tracker <http://bugs.python.org/issue28

[issue27945] Various segfaults with dict

2016-09-11 Thread Duane Griffin
Duane Griffin added the comment: Note that I think most or all of these issues apply to 2.7 and while I didn't do a proper check I think the fixes also apply. -- ___ Python tracker <http://bugs.python.org/is

[issue27945] Various segfaults with dict

2016-09-11 Thread Duane Griffin
Changes by Duane Griffin : Removed file: http://bugs.python.org/file44573/0001-Issue-27945-fix-dictiter_iternextitem-use-after-free.patch ___ Python tracker <http://bugs.python.org/issue27

[issue27945] Various segfaults with dict

2016-09-11 Thread Duane Griffin
Duane Griffin added the comment: Ah, my first fix (for the fifth issue) was incomplete. Please see attached patch which I think correctly fixes the problem. -- Added file: http://bugs.python.org/file44585/0001-Issue-27945-fix-dictiter_iternextitem-use-after-free.patch

[issue27945] Various segfaults with dict

2016-09-11 Thread Duane Griffin
Duane Griffin added the comment: Fix for the second issue: with this fix there is no segfault or valgrind issue reported on during execution or on exit. -- Added file: http://bugs.python.org/file44582/0001-Issue-27945-fix-dictitems_contains-use-after-free.patch

[issue27945] Various segfaults with dict

2016-09-11 Thread Duane Griffin
Duane Griffin added the comment: Fix for the first issue: with this fix there is no segfault or valgrind issue reported on during execution or on exit. -- Added file: http://bugs.python.org/file44579/0001-Issue-27945-fix-PyDict_MergeFromSeq2-use-after-free.patch

[issue27945] Various segfaults with dict

2016-09-11 Thread Duane Griffin
Duane Griffin added the comment: Apologies: compiling python with --with-pydebug all of these issues are reproducible on head after all. Furthermore while my patch fixes the reported crash it still crashes on exit: Program received signal SIGSEGV, Segmentation fault. 0x00437193 in

[issue27945] Various segfaults with dict

2016-09-11 Thread Duane Griffin
Duane Griffin added the comment: I cannot reproduce the segfaults for the first four issues however valgrind still reports problems for all but the second. The fifth (last) one still segfaults. I have a patch for the fifth issue. The other remaining issues are all reporting the same invalid

[issue17582] xml.etree.ElementTree does not preserve whitespaces in attributes

2015-09-03 Thread Duane Griffin
Duane Griffin added the comment: Here is a patch with a unit test for the new escaping functionality. I believe it covers all the new cases. Additional code is not required for cElementTree as the serialisation code is all Python. -- nosy: +duaneg Added file: http://bugs.python.org

[issue1608818] Sloppy error checking in listdir() for Posix

2008-06-04 Thread Duane Griffin
Duane Griffin <[EMAIL PROTECTED]> added the comment: This bug hit one of our (Gentoo) users, causing random failures when running emerge (Gentoo's package management tool). See the bug report here for more information: http://bugs.gentoo.org/show_bug.cgi?id=218378 Unfortunately the