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
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
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
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
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
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
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
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
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
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
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
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
12 matches
Mail list logo