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' >>> |