[issue45860] Mutithread leads to Illegal instruction crashing CPython

2022-01-23 Thread Xinmeng Xia
Change by Xinmeng Xia : -- title: UnboundLocalError leads to Illegal instruction crashing CPython -> Mutithread leads to Illegal instruction crashing CPython ___ Python tracker <https://bugs.python.org/issu

[issue45860] UnboundLocalError leads to Illegal instruction crashing CPython

2022-01-23 Thread Xinmeng Xia
Xinmeng Xia added the comment: A simpler example to reproduce it: test.py import threading import ctypes from test import test_code def test_free_different_thread(): f = test_code.CoExtra().get_func() class ThreadTest(threading.Thread

[issue46211] Recursively calling makepasv() finally leads to core dumped.

2021-12-30 Thread Xinmeng Xia
New submission from Xinmeng Xia : See the following 'test.py', we call client.makepasv() in socket, and then create_connection. Recursively calling makepasv() finally leads to core dumped. System: Python 3.10.1, 3.11.0a3 ,master on Ubuntu 18.04 Reproduce step: 1. executing "python te

[issue46115] Interrupting subprocess.popen in recursive calls by KeyboardInterrupt causes Fatal Python error.

2021-12-17 Thread Xinmeng Xia
New submission from Xinmeng Xia : Popen works when stdio fds are available. However, when interrupting popen in a recursive function call. The Python interpreter reports a Fatal Python error. test.py import subprocess import os import sys def

[issue45860] UnboundLocalError leads to Illegal instruction crashing CPython

2021-11-21 Thread Xinmeng Xia
New submission from Xinmeng Xia : The following code can lead to a crash and report Illegal instruction (core dumped)(few times) or Trace/breakpoint trap (core dumped) (very few times) or Segmentation fault (core dumped) (most times) on Python 3.11. test_free_different_thread.py

[issue45813] Importing asyncio after deleting a coroutine object and before cleaning it up leads to crashing on Python3.11

2021-11-20 Thread Xinmeng Xia
Xinmeng Xia added the comment: Thanks for testing it. Maybe it only crashes on Unix-like operating systems. I also try it on MacOS 11.6.1. with -i to ensure that python survives running the test code. On MacOS, it reports the following crashing information: --- xxm$ Python

[issue45826] unittest.assertRaisesRegex is broken in Python 3.11 and leading to crashing if tested regex does not match name.

2021-11-16 Thread Xinmeng Xia
New submission from Xinmeng Xia : In Python 3.11, unittest.assertRaisesRegex is broken and leading to crashing if tested regex does not match name. See the following example: test.py = import unittest class uTest(unittest.TestCase): pass uTest

[issue45813] Importing asyncio after deleting a coroutine object and before cleaning it up leads to crashing on Python3.11

2021-11-16 Thread Xinmeng Xia
New submission from Xinmeng Xia : The following crashing can only reproduce on Python3.11. In this case, we import "asyncio" after deleting a coroutine object and before cleaning it up, leading to crashing. test.py === async def f(): pass f = f() frame =

[issue45707] Variable reassginment triggers incorrect behaviors of locals()

2021-11-03 Thread Xinmeng Xia
New submission from Xinmeng Xia : Normally after executing a piece of code in a function, locals() should contain the local variables and these variables can be reassigned next. In the following code, "attr" should be found in locals(). Actually, it can not be found in eit

[issue44720] Finding string in iteratively deleted object cause segfault

2021-07-22 Thread Xinmeng Xia
New submission from Xinmeng Xia : This piece of code is originally from https://github.com/python/cpython/tree/main/Lib/test/test_weakref.py. In function test_proxy_iter(), we change the original data dependency and then this generated test case (see the following "test.py") cras

[issue44719] Incorrect callable object crashes Python 3.11.0a0

2021-07-22 Thread Xinmeng Xia
New submission from Xinmeng Xia : This program can trigger "Aborted (core dumped)" on Python 3.9.0, Python 3.8.0, Python3.10.0a2. It trigger " segmentation fault" on the master (Python 3.11.0a0). == import weakref class Object: de

[issue44718] Incorrect arguments in function select() cause segfault

2021-07-22 Thread Xinmeng Xia
New submission from Xinmeng Xia : The following program can trigger segfault on all releases of Python. I think it may be caused by incorrect arguments. Version of Python: 3.6 - master(3.11.0a0) system: ubuntu 16.04 test.py import select def

[issue42813] Extra spaces cause unexpected EOF error in "compile" function with mode "single"

2021-07-04 Thread Xinmeng Xia
Xinmeng Xia added the comment: Program like following reports error on CPython(master branch), however this program can work well on PyPy. I think this is a bug in CPython == string =""" if 1: print("hello") "

[issue42889] Incorrect behavior after ast node visits

2021-07-04 Thread Xinmeng Xia
Xinmeng Xia added the comment: This crash cannot be reproduced again on the master branch of CPython. It seems that this bug has been fixed. Should we close this issue and mark it as "fixed"? -- ___ Python tracker <https://bu

[issue43909] Fuzz dis module and find crashes for dis.dis(), dis.get_instructions() dis.show_code()

2021-04-21 Thread Xinmeng Xia
New submission from Xinmeng Xia : We write a fuzz tool to fuzz Python standard libraries, and find three crashes: dis.dis(), dis.get_instructions() dis.show_code() in dis module. dis.dis() == xiaxinmeng:~ xiaxinmeng$ python3.10 Python 3.10.0a3

[issue43740] Long paths in imp.load_dynamic() lead to segfault

2021-04-06 Thread Xinmeng Xia
New submission from Xinmeng Xia : Long paths as arguments of imp.load_dynamic() lead to interpreter crashes. Crash example = Python 3.10.0a2 (default, Nov 24 2020, 14:18:46) [GCC 7.5.0] on linux Type "help", "copyright", &

[issue43664] Long computations in pdb.run() lead to segfault

2021-04-06 Thread Xinmeng Xia
Xinmeng Xia added the comment: pdb.run() seems crashing different positions of Python (Python/ast_opt.c:488 for pdb.run, Python/ast_opt.c:494 for compile()). But the commit 364d0d20f924071b749e5a889eca22628f4892a3, PR 23744, bpo-42609 for compile() also fix this bug in pdb.run(). Should we

[issue43599] Setting long domain of locale.dgettext() crashes Python interpreter

2021-04-05 Thread Xinmeng Xia
Xinmeng Xia added the comment: Attached testing results of gdb and valgrind. (No error is reported for locale.dgettext('abs'*10,'')) $gdb ./python (gdb) run >>> locale.dgettext('abs'*1000,'') Program received signal SIGSEGV, Segmentation fault. __dcigettext ( domainname=d

[issue43549] Outdated descriptions for configuring valgrind.

2021-04-01 Thread Xinmeng Xia
Change by Xinmeng Xia : -- type: behavior -> enhancement ___ Python tracker <https://bugs.python.org/issue43549> ___ ___ Python-bugs-list mailing list Un

[issue43664] Long computations in pdb.run() lead to segfault

2021-03-29 Thread Xinmeng Xia
New submission from Xinmeng Xia : Long computations in pdb.run() lead to interpreter crashes. Crash example === Python 3.9.2 (default, Mar 12 2021, 15:08:35) [GCC 7.5.0] on linux Type "help", "copyright", "credi

[issue43663] Python interpreter works abnormally after interrupting logging.config.fileConfig()

2021-03-29 Thread Xinmeng Xia
New submission from Xinmeng Xia : Python interpreter cannot work well and report errors after interrupting logging.config.fileConfig() Reproduce step: 1. type python3 in console 2. type import logging.config; logging.config.fileConfig({2,2,'sdf'},'') 3. ctrl C 4. type 1/0

[issue43611] Function tcflow() in module termios can not be interupted when the second argument is 0

2021-03-23 Thread Xinmeng Xia
New submission from Xinmeng Xia : In Ubuntu 16.04, termios.tcflow(1, 0) cannot be interrupted by Ctrl C, Ctrl D, Ctrl Z. It work well on mac OS. (Ctrl C can interrupt it on Mac OS). Reproduce: 1. type 'python3' in command console; 2. type ‘import termios; termios.tcflow(1, 0)’ 3. try “ctrl

[issue43610] Ctrl C makes interpreter exit

2021-03-23 Thread Xinmeng Xia
New submission from Xinmeng Xia : Python interpreter will exit when using Ctrl C to interrupt some Python module functions with read operations. e.g. sndhdr.what(0), pdb.find_function('abs/'*10,False), mimetypes.read_mime_types(0). This is not the expected behavior. Ctrl C is to raise

[issue43599] Setting long domain of locale.dgettext() crashes Python interpreter

2021-03-22 Thread Xinmeng Xia
New submission from Xinmeng Xia : Setting the first argument of locale.dgettext() long string, Python interpreter crashes. == Python 3.10.0a6 (default, Mar 19 2021, 11:45:56) [GCC 7.5.0] on linux Type "help", "copyr

[issue43587] Long string arguments cause nis.map() segfault

2021-03-22 Thread Xinmeng Xia
New submission from Xinmeng Xia : nis.maps() with long string argument will lead to segfault of interpreter. See the following example: = Python 3.10.0a6 (default, Mar 19 2021, 11:45:56) [GCC 7.5.0] on linux Type "help",

[issue43509] CFunctionType object should be hashable in Python

2021-03-22 Thread Xinmeng Xia
Change by Xinmeng Xia : -- type: compile error -> enhancement ___ Python tracker <https://bugs.python.org/issue43509> ___ ___ Python-bugs-list mailing list Un

[issue43549] Outdated descriptions for configuring valgrind.

2021-03-18 Thread Xinmeng Xia
New submission from Xinmeng Xia : At line 12-20, cpython/Misc/README.valgrind, the descriptions are out of date. File "Objects/obmalloc.c" does not contain Py_USING_MEMORY_DEBUGGER any more since Python 3.6. The descriptions should be modified for Python 3.6-3.10 Attached

[issue43537] interpreter crashes when handling long text in input()

2021-03-18 Thread Xinmeng Xia
Change by Xinmeng Xia : -- title: nterpreter crashes when handling long text in input() -> interpreter crashes when handling long text in input() ___ Python tracker <https://bugs.python.org/issu

[issue43537] nterpreter crashes when handling long text in input()

2021-03-18 Thread Xinmeng Xia
New submission from Xinmeng Xia : When the argument of input() is very long text, the interpreter crashes. This bug can be reproduced Python 3.9.2 and Python 2.7.18 on Ubuntu 3.9.2 with GCC7.5.0. I try to reproduce this bug on other version of Python and Operating System, but it fails

[issue43509] CFunctionType object should be hashable in Python

2021-03-15 Thread Xinmeng Xia
New submission from Xinmeng Xia : See the following examples, ctypes.resize is a built-in function and it's hashable. ctypes.memset is a C function (CFunctionType object) and it's “unhashable”. However, ctypes.resize and ctypes.memset are both immutable. They should act the same

[issue43508] Miscompilation information for tarfile.open() when given too many arguments

2021-03-15 Thread Xinmeng Xia
New submission from Xinmeng Xia : In following example, we only give 10 arguments to tarfile.open(). The error message shows "11 arguments were given".We give it 5 arguments and the error message shows "6 were given".

[issue43507] Variables in locals scope fails to be printed.

2021-03-15 Thread Xinmeng Xia
New submission from Xinmeng Xia : The following code 1 calls function 'compile' and 'exec' and execute a statement "s=1". Then we print the value of 's'. This code can perform well on Python 3.9.2 and output the expected result. However, we pack the whole code into a functi

[issue43471] Fails to import bz2 on Ubuntu

2021-03-10 Thread Xinmeng Xia
New submission from Xinmeng Xia : Module bz2 fails to be imported on Ubuntu due to lack of '_bz2'. We try "import bz2" on Mac, it can work well. Errors on Ubuntu == >>import bz2 Traceback (most recent call last): File "/hom

[issue43470] Installation of Python 3.6.13 fails on MacOS Big Sur 11.2.3

2021-03-10 Thread Xinmeng Xia
New submission from Xinmeng Xia : Installation of latest Python 3.6.13 fails on MacOS Big Sur 11.2.3. The source code is downloaded from python.org. Then we try to install it by commands "./configure;sudo make;sudo make install". However the installation crashes. The installatio

[issue43469] Python 3.6 fails to run on MacOS (Big Sur 11.2.3)

2021-03-10 Thread Xinmeng Xia
New submission from Xinmeng Xia : Python 3.6 can work well on old version of MacOS. When I upgrade MacOS to the latest version Big Sur 11.2.3. Python 3.6 fails to start and crashes. Python 3.7, 3.8, 3.9 can perform well on the new version MacOS Big Sur 11.2.3. The crash information attached

[issue43081] Recursive call crash module multiprocessing

2021-01-30 Thread Xinmeng Xia
New submission from Xinmeng Xia : The following code recursively calls function test_forkserver(). However, the output is not expected RecursionError(recursively calling) or OSError(too many open files). An unexpected EOFError ( inside module multiprocessing, not this code itself

[issue42951] Random and infinite loop in dealing with recursion error for "try-except "

2021-01-19 Thread Xinmeng Xia
Xinmeng Xia added the comment: oh,I see. By the way, I set the argument of sys.setrecursionlimit to 10 in this program and a segmentation fault is reported. Is that normal? -- ___ Python tracker <https://bugs.python.org/issue42

[issue42888] Not installed “libgcc_s.so.1” causes exit crash.

2021-01-18 Thread Xinmeng Xia
Xinmeng Xia added the comment: I think the crash is fixed by this PR. I try other arguments. No crash is reported. Thank you! -- ___ Python tracker <https://bugs.python.org/issue42

[issue42888] Not installed “libgcc_s.so.1” causes exit crash.

2021-01-18 Thread Xinmeng Xia
Xinmeng Xia added the comment: No crash is reported anymore. The result is like following: - ... OSError: [Errno 24] Too many open files OSError: [Errno 24] Too many open files OSError: [Errno 24] Too many open files OSError: [Errno 24] Too many

[issue42717] The python interpreter crashed with "_enter_buffered_busy"

2021-01-17 Thread Xinmeng Xia
Xinmeng Xia added the comment: It seems that this bug won't be fixed. Should this issue be closed now? -- ___ Python tracker <https://bugs.python.org/issue42

[issue42951] Random and infinite loop in dealing with recursion error for "try-except "

2021-01-17 Thread Xinmeng Xia
New submission from Xinmeng Xia : In issue 42500, recursive calls in "Try-except" are resolved. This PR has fixed the crashes of some programs, such as program 1. And the core dump error is replaced with RecursiveError. However, program 2 will not report a RecursiveError. T

[issue42950] Incorrect exception behavior in handling recursive call.

2021-01-17 Thread Xinmeng Xia
New submission from Xinmeng Xia : Seeing the following programs, we try to catch a recursive call error in exception handling. The behaviors between Python 3.10.0a4 and older version are inconsistent. The outputs are attached in the end. The output on Python 3.10.0a4 is very weird. Two

[issue42889] Incorrect behavior after ast node visits

2021-01-15 Thread Xinmeng Xia
Xinmeng Xia added the comment: Thank you for your kindly explanations! The output of the first program in msg384799 behaves as expected from the view of AST compiling. Yes,I see now. But for the second example in msg384879, the behaviors are inconsistent between old Python version

[issue42887] 100000 assignments of .__sizeof__ cause a segfault on del

2021-01-15 Thread Xinmeng Xia
Xinmeng Xia added the comment: Thank you. But I am not sure this is a recursion problem. Please see the following example, I replace "__sizeof__" with "__class__". No segmentation fault. Everything goes well. mystr = "hello123" pr

[issue42762] infinite loop resulted by "yield"

2021-01-13 Thread Xinmeng Xia
Xinmeng Xia added the comment: I see,Thank you! -- ___ Python tracker <https://bugs.python.org/issue42762> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42918] Nested multi-line expression will lead to "compile()" fails

2021-01-12 Thread Xinmeng Xia
Xinmeng Xia added the comment: For sure! As soon as we validate this technique, we will open source it on GitHub. -- ___ Python tracker <https://bugs.python.org/issue42

[issue42918] Nested multi-line expression will lead to "compile()" fails

2021-01-12 Thread Xinmeng Xia
Xinmeng Xia added the comment: The bytecode of c is as following: 0 LOAD_CONST 0 (1) 2 STORE_NAME 0 (d) 4 LOAD_CONST 1 (None) 6 RETURN_VALUE === Yes

[issue42918] Nested multi-line expression will lead to "compile()" fails

2021-01-12 Thread Xinmeng Xia
Change by Xinmeng Xia : -- components: +Interpreter Core ___ Python tracker <https://bugs.python.org/issue42918> ___ ___ Python-bugs-list mailing list Unsub

[issue42919] Blank in multiline “if expressions” will lead to EOF errors

2021-01-12 Thread Xinmeng Xia
New submission from Xinmeng Xia : In build-in function compile() of mode 'single', single statement can be well compiled. (see program 1 and program 2). However, if we leave 4 blank spaces before the end of triple-quotation mark of "if expression",(see program 3), The parser

[issue42918] Nested multi-line expression will lead to "compile()" fails

2021-01-12 Thread Xinmeng Xia
New submission from Xinmeng Xia : For build-in function compile() in mode 'single', only single statement can be well compiled. If we compile multiple statements, the parser will raise a syntaxError. Seeing the following two programs, In program 1, 2 statement are compiled. So the parser

[issue42889] Incorrect behavior of Python parser after ast node of test program being modified

2021-01-12 Thread Xinmeng Xia
Xinmeng Xia added the comment: Nice suggestion! I change the argument and I can' find segfault program in transforming ast.Name. But I do find a segfault program in transforming ast.BinOp! Seeing the following example, this program will cause a segmentation fault on Python 3.10. No error

[issue42889] Incorrect behavior of Python parser after ast node of test program being modified

2021-01-11 Thread Xinmeng Xia
Xinmeng Xia added the comment: Sorry, my description is a little confusing. My points lie on function 'compile' and 'exec'. Yes, I agree. AST can be modified and don't correspond to valid programs. But I don't think this invaild program can be compiled and exec without any check. It's

[issue42888] Not installed “libgcc_s.so.1” causes parser crash.

2021-01-11 Thread Xinmeng Xia
Xinmeng Xia added the comment: >>uname -a Linux xxm-System-Product-Name 4.15.0-64-generic #73~16.04.1-Ubuntu SMP Fri Sep 13 09:56:18 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux >>uname -r 4.15.0-64-generic >>lsb_release -a No LSB modules are available. Distributor ID:

[issue42888] Not installed “libgcc_s.so.1” causes parser crash.

2021-01-11 Thread Xinmeng Xia
Xinmeng Xia added the comment: >>python310 -V Python 3.10.0a2 >>uname -v #73~16.04.1-Ubuntu SMP Fri Sep 13 09:56:18 UTC 2019 Thank you! -- ___ Python tracker <https://bugs.python

[issue42889] Incorrect behavior of Python parser after ast node of test program being modified

2021-01-10 Thread Xinmeng Xia
New submission from Xinmeng Xia : The following program will lead to a incorrect behavior of Python parser. We change all variable to integer( forcely transformed to string) via ast.NodeTransformer. Then we compile the new code and execute it. It's surprising that code like "1=2; pr

[issue42888] Not installed “libgcc_s.so.1” causes parser crash.

2021-01-10 Thread Xinmeng Xia
New submission from Xinmeng Xia : The following thread program will cause Python3.10 parser "core dump" due to missing “libgcc_s.so.1”. "pthread_cancel" cannot work correctly. I am wondering is there any possible to install or link to libgcc_s.so.1 during

[issue42887] Multiple assignments of attribute "__sizeof__" will cause a segfault

2021-01-10 Thread Xinmeng Xia
New submission from Xinmeng Xia : In the following program 1, method "__sizeof__()" is called and assigned multiple times. The program can work well on Python 3.10. However if I change "__sizeof__()" to "__sizeof__". Then a segmentation fault is repo

[issue42762] infinite loop resulted by "yield"

2021-01-07 Thread Xinmeng Xia
Xinmeng Xia added the comment: I get a little confused. So is it a bug in Python 3.5 and 3.6? -- ___ Python tracker <https://bugs.python.org/issue42762> ___ ___

[issue42858] Incorrect return value for os.system() in recognizing import error

2021-01-07 Thread Xinmeng Xia
Change by Xinmeng Xia : -- type: -> compile error ___ Python tracker <https://bugs.python.org/issue42858> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue42858] Incorrect return value for os.system() in recognizing import error

2021-01-07 Thread Xinmeng Xia
New submission from Xinmeng Xia : Running attached "test_zipfile.py" on Python 3.10 will lead to the following error messages: Exception ignored in: Traceback (most recent call las

[issue42857] Fails to construct paths lead to "python is likely shutting down"

2021-01-07 Thread Xinmeng Xia
New submission from Xinmeng Xia : The attached file "test_zipfile.py" is from test directory in cPython. We delete irrelevant code. Running this code on Python 3.10 will lead to the following erro

[issue42852] pprint fails in transformming non-breaking space

2021-01-06 Thread Xinmeng Xia
New submission from Xinmeng Xia : "pprint" can transform unicode like "print". However, pprint fails to transform non-breaking space('\240') . See the following example: Python 3.10.0a2 (default, Nov 24 2020, 14:18:46) [GCC 7.5.0] on linux Type "help", &quo

[issue42813] Extra spaces cause unexpected EOF error in "compile" function with mode "single"

2021-01-03 Thread Xinmeng Xia
New submission from Xinmeng Xia : Running the following program will lead to an unexpected EOF error. If we delete the space before triple-quotation mark("""), the error will gone. If we replace the content of snippet with "a = 1", the program will work well

[issue42763] Exposing a race in the "_warnings" resulting Python parser crash

2020-12-29 Thread Xinmeng Xia
Xinmeng Xia added the comment: Now I see. By the way, I think this case should be moved back to "cpython/Lib/test/crashers/" since the bug still exists. It is not fixed completely, the old case is outdated. I suggest we can put the new case into directory

[issue42717] The python interpreter crashed with "_enter_buffered_busy"

2020-12-29 Thread Xinmeng Xia
Xinmeng Xia added the comment: Thank you for your patient reply. I see now. Hoping that some one can figure out a good idea to fix this problem. -- ___ Python tracker <https://bugs.python.org/issue42

[issue42717] The python interpreter crashed with "_enter_buffered_busy"

2020-12-28 Thread Xinmeng Xia
Xinmeng Xia added the comment: Could we try to limit the number of thread or state or something? I mean if we set parameter of "range", for example, to 1000 or less here, the crash will no longer happen. I think the parser can not handle too heavy loop so that i

[issue42763] Exposing a race in the "_warnings" resulting Python parser crash

2020-12-28 Thread Xinmeng Xia
Xinmeng Xia added the comment: Thank you, but I don't think this is a duplicate of issue42717. This crash is probably caused by the parameter "target" of Thread. "Target" accept the "callable object". Defaults to None. In this program, it's assigned to a "I

[issue42762] infinite loop resulted by "yield"

2020-12-28 Thread Xinmeng Xia
Xinmeng Xia added the comment: Thanks for your kind explanation! My description is a little confusing. Sorry about that. The problem here is that the program should stop when the exception is caught whatever the exception is. (I think bpo-25612 (#1773) fixed exception selection problems

[issue42763] Exposing a race in the "_warnings" resulting Python parser crash

2020-12-27 Thread Xinmeng Xia
New submission from Xinmeng Xia : This program is initially from "cpython/Lib/test/crashers/warnings_del_crasher.py" in Python 2.7. The original case is fixed for all version of Python and removed from "crashers" directory. However, if we replace the statement

[issue42762] infinite loop resulted by "yield"

2020-12-27 Thread Xinmeng Xia
New submission from Xinmeng Xia : Let's see the following program: def foo(): try: yield except: yield from foo() for m in foo(): print(i) === Expected output: On line"print(i)", NameErro

[issue42734] Outdated CodeType call in "bogus_code_obj.py"

2020-12-25 Thread Xinmeng Xia
Xinmeng Xia added the comment: Yes,you are right. I thought it was fixed,but it wasn't. Thanks. -- type: enhancement -> behavior ___ Python tracker <https://bugs.python.org/issu

[issue42735] "trace_at_recursion_limit.py" should be removed from "Python/Lib/test/crashers"

2020-12-25 Thread Xinmeng Xia
Change by Xinmeng Xia : -- type: enhancement -> behavior ___ Python tracker <https://bugs.python.org/issue42735> ___ ___ Python-bugs-list mailing list Un

[issue42735] "trace_at_recursion_limit.py" should be removed from "Python/Lib/test/crashers"

2020-12-24 Thread Xinmeng Xia
New submission from Xinmeng Xia : In "Python/Lib/test/crashers/", only tests for outstanding bugs that cause the interpreter to segfault should be included. The file "trace_at_recursion_limit.py" has been fixed on Python 3.7, 3.8, 3.9, 3.10. No segmentation fault will b

[issue42734] "bogus_code_obj.py" should be removed from "cPython/Lib/test/crashers"

2020-12-24 Thread Xinmeng Xia
New submission from Xinmeng Xia : In "Python/Lib/test/crashers/README", it said "This directory only contains tests for outstanding bugs that cause the interpreter to segfault. Once the crash is fixed, the test case should be moved into an appropriate test." The fil

[issue42717] The python interpreter crashed with "_enter_buffered_busy"

2020-12-22 Thread Xinmeng Xia
Xinmeng Xia added the comment: Thanks for your kind explanation! Now, I have understand the causes of this core dump. Considering it will not cause core dump in Python 2.x, I am wondering should we suggest an exception to catch it rather than "core

[issue42717] The python interpreter crashed with "_enter_buffered_busy"

2020-12-22 Thread Xinmeng Xia
New submission from Xinmeng Xia : The following program can work well in Python 2. However it crashes in Python 3( 3.6-3.10 ) with the following error messages. Program: import sys,time, threading class test: def test(self): pass

[issue42716] Segmentation fault in running ast.parse() with large expression size.

2020-12-22 Thread Xinmeng Xia
New submission from Xinmeng Xia : Calling function ast.parse() with large size can cause a segmentation fault in Python 3.5 -3.10. Please check the following two examples. The example 1 works as expected, while the second one triggers segmentation fault on Python 3.5,3.6,3.7,3.8,3.9,3.10

[issue42715] Segmentation fault in running exec() with large expression size.

2020-12-22 Thread Xinmeng Xia
New submission from Xinmeng Xia : Calling function exec() with large size can cause a segmentation fault in Python 3.7 -3.10. Please check the following two examples. The example 1 works as expected, while the second one triggers segmentation fault on Python 3.7,3.8,3.9,3.10. The primary

[issue42714] Segmentation fault in running compile() with large expression size.

2020-12-22 Thread Xinmeng Xia
New submission from Xinmeng Xia : Calling function compile() with large size can cause a segmentation fault in Python 3.7 -3.10. Please check the following two examples. The example 1 works as expected, while the second one triggers segmentation fault on Python 3.7,3.8,3.9,3.10. The primary

[issue42713] Segmentation fault in running eval() with large expression size.

2020-12-22 Thread Xinmeng Xia
New submission from Xinmeng Xia : Calling function eval() with large size can cause a segmentation fault in Python 3.7 -3.10. Please check the following two examples. The example 1 works as expected, while the second one triggers segmentation fault on Python 3.7,3.8,3.9,3.10. The primary

[issue42712] Segmentation fault in running ast.literal_eval() with large expression size.

2020-12-22 Thread Xinmeng Xia
New submission from Xinmeng Xia : Calling function ast.literal_eval() with large size can cause a segmentation fault in Python 3.5 -3.10. Please check the following two examples. The example 1 works as expected, while the second one triggers segmentation fault on Python

[issue42651] Recursive traceback crashes Python Interpreter

2020-12-22 Thread Xinmeng Xia
Xinmeng Xia added the comment: Thank you very much, looking forward to the new Python version. Could you please kindly change the resolution into fixed and close this issue? -- ___ Python tracker <https://bugs.python.org/issue42

[issue42652] recursive in finally clause cause Python interpreter crash.

2020-12-22 Thread Xinmeng Xia
Xinmeng Xia added the comment: Thanks for fixing this, looking forward to the new version. Could you please kindly change the resolution into fixed and close this report? -- ___ Python tracker <https://bugs.python.org/issue42

[issue42651] Recursive traceback crashes Python Interpreter

2020-12-17 Thread Xinmeng Xia
Xinmeng Xia added the comment: In issue#36272, they discuss a bug in logging module. They show an example which is similar as this one. So I think I think there might be a similar bug in traceback module. -- ___ Python tracker <ht

[issue42652] recursive in finally clause cause Python interpreter crash.

2020-12-17 Thread Xinmeng Xia
Xinmeng Xia added the comment: In issue #42500, crashes is resulted by recursion and try-except. Program like following will crash the interpreter. = def foo(): try: 1/0 except: pass foo() foo() = However with traceback module

[issue42651] Recursive traceback crashes Python Interpreter

2020-12-16 Thread Xinmeng Xia
Change by Xinmeng Xia : -- title: Title: Recursive traceback crashes Python Interpreter -> Recursive traceback crashes Python Interpreter ___ Python tracker <https://bugs.python.org/issu

[issue42652] recursive in finally clause cause Python interpreter crash.

2020-12-16 Thread Xinmeng Xia
New submission from Xinmeng Xia : Considering the following two program,running the program 1 will get expected output: RecursionError program 1 === import traceback def foo(): try: 1/0 except Exception as e

[issue42651] Title: Recursive traceback crashes Python Interpreter

2020-12-16 Thread Xinmeng Xia
New submission from Xinmeng Xia : = import traceback def foo(): traceback.print_exc() foo() foo() Try running the above program, the interpreter is crashed with the error message like the following: Fatal Python error: Cannot recover from stack

[issue42632] Reassgining ZeroDivisionError will lead to bug in Except clause

2020-12-13 Thread Xinmeng Xia
Xinmeng Xia added the comment: Similar bugs exist in other exceptions. -- ___ Python tracker <https://bugs.python.org/issue42632> ___ ___ Python-bugs-list mailin

[issue42632] Reassgining ZeroDivisionError will lead to bug in Except clause

2020-12-13 Thread Xinmeng Xia
New submission from Xinmeng Xia : Running the following program: == def foo(): try: 1/0 except ZeroDivisionError as e: ZeroDivisionError = 1 foo() == The expected output should be nothing. ZeroDivisionError

[issue42509] Recursive calls crash interpreter when checking exceptions

2020-11-30 Thread Xinmeng Xia
Xinmeng Xia added the comment: But program like following program 3 will not cause any core dump, RecursionError is also being caught in this Recursion. program 3 def rec(): try: rec() except: pass rec() Beside,I use sys.setrecursionlimit(80

[issue42509] Recursive calls crash interpreter when checking exceptions

2020-11-29 Thread Xinmeng Xia
New submission from Xinmeng Xia : The following program 1 can crash in Python 3. We have reproduce it in the Python version 3.5, 3.6, 3.7, 3.8, 3.9, 3.10. This bug seems to be similar to issue 36272, however, the tracking system shows issue 36272 has been fixed and the program 2, which

[issue42500] status() crashes on Python3.9 and 3.10

2020-11-28 Thread Xinmeng Xia
New submission from Xinmeng Xia : This program can work well on Python 3.5.2 and Python2.7 with the following output. "Invalid Entry, try again" However it will crash on Python3.9.0rc1, 3.10.0a2 with the following error message: " Fatal Python error: _Py_CheckRecursiveCall:

[issue42290] Unicode inconsistent display after concencated

2020-11-07 Thread Xinmeng Xia
New submission from Xinmeng Xia : When printing an assignment expression with unicode ܯ ( \U+072F) on the command line, we get an unexpected result. Example A: >>> print(chr(1839)+" = 1") ܯ = 1 Similar problems exist in plenty of characters of unicode. -- component

[issue42284] The grammar specification is inconsistent with the implementation of Python parser.

2020-11-07 Thread Xinmeng Xia
New submission from Xinmeng Xia : In full grammar specification of Python 3.6 official documentation (Python 3.6 official documentation: https://docs.python.org/3.6/reference/grammar.html ), we can find a very clear definition on the grammar about the usage of 'break'. According

[issue37753] 2to3 not handing "<="

2019-08-03 Thread Xinmeng Xia
New submission from Xinmeng Xia : After conversion of 2to3 , run simple-example.py and the following error will happen. Traceback (most recent call last): File "/home/xxm/Desktop/instrument/datasetpy3/nflgame/simple_example.py", line 15, in plays = nflgame.combine_plays(gam

[issue37718] 2to3 exception handling

2019-07-30 Thread Xinmeng Xia
New submission from Xinmeng Xia : we run the converted Python3 code, the following error will happen: Traceback (most recent call last): File "/home/xxm/Desktop/instrument/datasetpy3/Labeled-LDA-Python/example.py", line 50, in llda_model.save_model_to_dir(save_model_dir) Fi

[issue37716] 2to3 Accuracy of calculation

2019-07-30 Thread Xinmeng Xia
New submission from Xinmeng Xia : In Python 2,the output is 1366. After converting by 2to3, the output is 1197.1463275484991 There exists bug in the conversion of 2to3. The output should be consistent for original Python2 code and converted Python3 code. At line 10 of this python file

[issue37715] 2to3 set default encoding

2019-07-30 Thread Xinmeng Xia
New submission from Xinmeng Xia : There is a bug in lib2to3. When dealing with this project "struts-scan" by 2to3,the following bug will show up. Traceback (most recent call last): File "/home/xxm/Desktop/instrument/datasetpy3/struts-scan/struts-sca

[issue37714] 2to3 tab Problems

2019-07-29 Thread Xinmeng Xia
New submission from Xinmeng Xia : Traceback (most recent call last): File "/home/xxm/Desktop/instrument/datasetpy3/FrisPy/example.py", line 4, in import FrisPy File "/home/xxm/Desktop/instrument/datasetpy3/FrisPy/FrisPy/__init__.py", line 5, in from .disc im

  1   2   >