New submission from Dong-hee Na <donghee.n...@gmail.com>:
When I copy and paste the pretty long text into REPL shell. REPL shell is crash down with segment fault. This issue is only reproducible on macOS, but Linux REPL doesn't look like normal behavior. [origin text] <?xml version="1.0" encoding="iso-8859-1"?> <test> <Users> <fun25> <limits> <total>0KiB</total> <kbps>0</kbps> <rps>1.3</rps> <connections>0</connections> </limits> <usages> <total>16738211KiB</total> <kbps>237.15</kbps> <rps>1.3</rps> <connections>0</connections> </usages> <time_to_refresh>never</time_to_refresh> <limit_exceeded_URL>none</limit_exceeded_URL> </fun25> </Users> </test> [macOS] Python 3.9.0a2+ (heads/master:7dc72b8d4f, Jan 4 2020, 23:22:45) [Clang 11.0.0 (clang-1100.0.33.16)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> a = """<?xml version="1.0" encoding="iso-8859-1"?> ... <test> ... <Users> ... <fun25> ... <limits> ... <total>0KiB</total> ... <kbps>0</kbps> ... <rps>1.3</rps> ... <connections>0</connections> ... </limits> ... <usages> ... <total>16738211KiB</total> ... <kbps>237.15</kbps> ... <rps>1.3</rps> ... <connections>0</connections> ... </usages> ... <time_to_refresh>never</time_to_refresh> ... <limit_exceeded_URL>none</limit_exceeded_URL> ... </fun25> ... </Users> ... </test> ... """ Assertion failed: ((intptr_t)(int)(a - line_start) == (a - line_start)), function parsetok, file Parser/parsetok.c, line 324. [1] 13389 abort ./python.exe [linux] Python 3.9.0a2+ (heads/master-dirty:7dc72b8, Jan 4 2020, 23:22:11) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> a = """<?xml version="1.0" encoding="iso-8859-1"?> <test> <Users> <fun25> <limits> <total>0KiB</total> <kbps>0</kbps> <rps>true</rps> <connections>0</connections> </limits> <usages> <total>16738211KiB</total> <kbps>237.15</kbps> <rps>true</rps> <connections>0</connections> </usages> <time_to_refresh>never</time_to_refresh> <limit_exceeded_URL>none</limit_exceeded_URL> </fun25> </Users> </test> ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... """ >>> a '<?xml version="1.0" encoding="iso-8859-1"?>\n<test>\n <Users>\n <fun25>\n <limits>\n <total>0KiB</total>\n <kbps>0</kbps>\n <rps>true</rps>\n <connections>0</connections>\n </limits>\n <usages>\n <total>16738211KiB</total>\n <kbps>237.15</kbps>\n <rps>true</rps>\n <connections>0</connections>\n </usages>\n <time_to_refresh>never</time_to_refresh>\n <limit_exceeded_URL>none</limit_exceeded_URL>\n </fun25>\n </Users>\n</test>\n' >>> ---------- messages: 359290 nosy: corona10, pablogsal priority: normal severity: normal status: open title: Crash on REPL mode with long text copy and paste type: crash versions: Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39209> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com