[issue33186] Memory corruption with urllib.parse

2018-03-31 Thread Ivan Zakharyaschev
Ivan Zakharyaschev added the comment: Actually, Alexey shared this problem with me orally first, and then asked to have a look at his report, and I felt that just describing the technical details about what is going on is not enough, and suggested to include a brief

[issue33186] Memory corruption with urllib.parse

2018-03-30 Thread Steven D'Aprano
Steven D'Aprano added the comment: Alexey, I'm afraid I can't make heads or tails of your bug report. You've gone into a detailed description of the "bad results" you have, but you haven't explained *why* they're bad, or what you were expecting. I'm afraid that I

[issue33186] Memory corruption with urllib.parse

2018-03-30 Thread Ivan Zakharyaschev
Ivan Zakharyaschev added the comment: > 1. The described result can be valid if there are "doubly quoted" strings in > the input list. To check this I've modified your testcase.py: diff --git a/testcase.py b/testcase.py index b597205..fefcef2 100755 --- a/testcase.py +++

[issue33186] Memory corruption with urllib.parse

2018-03-30 Thread Ivan Zakharyaschev
Ivan Zakharyaschev added the comment: > a list contains elements that have never been appended Why do we think that it's true? 1. The described result can be valid if there are "doubly quoted" strings in the input list. 2. Also, there could be a bug in unquote() which

[issue33186] Memory corruption with urllib.parse

2018-03-30 Thread Ivan Zakharyaschev
Ivan Zakharyaschev added the comment: The bad results are also reproducible with: # dpkg -l python3.2 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err:

[issue33186] Memory corruption with urllib.parse

2018-03-30 Thread Ivan Zakharyaschev
Ivan Zakharyaschev added the comment: I've tested this on a e2k machine (e2k is a VLIW/EPIC architecture, similar to ia64), where python3 3.5 has been compiled with a completely different proprietary compiler, and got the same bad result. python3-3.5.1-alt7.3 (This has

[issue33186] Memory corruption with urllib.parse

2018-03-30 Thread Ivan Zakharyaschev
Change by Ivan Zakharyaschev : -- nosy: +imz ___ Python tracker ___ ___ Python-bugs-list

[issue33186] Memory corruption with urllib.parse

2018-03-30 Thread ale...@altlinux.org
New submission from ale...@altlinux.org : There is a strange behavior while processing data in a "for" loop with urllib.parse.unquote() - looks like memory corruption - a list contains elements that have never been appended. I'll explain the testcase. I spotted the

[issue33186] Memory corruption with urllib.parse

2018-03-30 Thread ale...@altlinux.org
Change by ale...@altlinux.org : Added file: https://bugs.python.org/file47507/data.txt.gz ___ Python tracker ___