[issue45534] Failing test_exceptions and test_threading
New submission from Aritra Sarkar : While running `make test` on Python 3.11.0a1, I get this: == Tests result: FAILURE == 411 tests OK. 2 tests failed: test_exceptions test_threading 14 tests skipped: test_devpoll test_gdb test_ioctl test_kqueue test_msilib test_ossaudiodev test_startfile test_tix test_tk test_ttk_guionly test_winconsoleio test_winreg test_winsound test_zipfile64 0:06:19 load avg: 5.05 0:06:19 load avg: 5.05 Re-running failed tests in verbose mode 0:06:19 load avg: 5.05 Re-running test_exceptions in verbose mode (matching: test_name_error_suggestions_do_not_trigger_for_too_many_locals) test_name_error_suggestions_do_not_trigger_for_too_many_locals (test.test_exceptions.NameErrorTests) ... test test_exceptions failed FAIL == FAIL: test_name_error_suggestions_do_not_trigger_for_too_many_locals (test.test_exceptions.NameErrorTests) -- Traceback (most recent call last): File "/home/aritra/local/build/Python-3.11.0a1/Lib/test/test_exceptions.py", line 1843, in test_name_error_suggestions_do_not_trigger_for_too_many_locals self.assertNotIn("a1", err.getvalue()) ^^ AssertionError: 'a1' unexpectedly found in 'Traceback (most recent call last):\n File "/home/aritra/local/build/Python-3.11.0a1/Lib/test/test_exceptions.py", line 1838, in test_name_error_suggestions_do_not_trigger_for_too_many_locals\n f()\n^^^\n File "/home/aritra/local/build/Python-3.11.0a1/Lib/test/test_exceptions.py", line 1835, in f\nprint(a0)\n ^^\nNameError: name \'a0\' is not defined\n' -- Ran 1 test in 0.006s FAILED (failures=1) 0:06:19 load avg: 5.05 Re-running test_threading in verbose mode (matching: test_recursion_limit) test_recursion_limit (test.test_threading.ThreadingExceptionTests) ... test test_threading failed FAIL == FAIL: test_recursion_limit (test.test_threading.ThreadingExceptionTests) -- Traceback (most recent call last): File "/home/aritra/local/build/Python-3.11.0a1/Lib/test/test_threading.py", line 1290, in test_recursion_limit self.assertEqual(p.returncode, 0, "Unexpected error: " + stderr.decode()) ^ AssertionError: -11 != 0 : Unexpected error: -- Ran 1 test in 0.161s FAILED (failures=1) 2 tests failed again: test_exceptions test_threading == Tests result: FAILURE then FAILURE == 411 tests OK. 2 tests failed: test_exceptions test_threading 14 tests skipped: test_devpoll test_gdb test_ioctl test_kqueue test_msilib test_ossaudiodev test_startfile test_tix test_tk test_ttk_guionly test_winconsoleio test_winreg test_winsound test_zipfile64 2 re-run tests: test_exceptions test_threading Total duration: 6 min 19 sec Tests result: FAILURE then FAILURE Also here are the CFLAGS I used during the build: probook $ echo $CFLAGS -Wall -Wextra -g -O0 -std=c99 -- components: Tests messages: 404405 nosy: aritra1911 priority: normal severity: normal status: open title: Failing test_exceptions and test_threading type: crash versions: Python 3.11 ___ Python tracker <https://bugs.python.org/issue45534> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45534] Failing test_exceptions and test_threading
Aritra Sarkar added the comment: Linux on x86_64 hardware: probook $ uname -a Linux probook 5.14.12-arch1-1 #1 SMP PREEMPT Wed, 13 Oct 2021 16:58:16 + x86_64 GNU/Linux GCC version: probook $ gcc --version gcc (GCC) 11.1.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. GNU Binutils version: probook $ ld --version GNU ld (GNU Binutils) 2.36.1 Copyright (C) 2021 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty. -- ___ Python tracker <https://bugs.python.org/issue45534> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45534] Failing test_exceptions and test_threading
Aritra Sarkar added the comment: I should've given the configuration options I've used as well. They are as follows: probook $ ./configure --prefix=/opt/python \ > --with-openssl=/opt/openssl \ > --with-openssl-rpath=/opt/openssl/lib \ > --with-openssl-rpath=/opt/openssl/lib64 \ > --with-ssl-default-suites=openssl \ > --enable-optimizations -- type: behavior -> crash ___ Python tracker <https://bugs.python.org/issue45534> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45534] Failing test_exceptions and test_threading
Aritra Sarkar added the comment: Test results from another machine, running an Intel Pentium Dual Core: == Tests result: FAILURE == 412 tests OK. 1 test failed: test_exceptions 14 tests skipped: test_devpoll test_gdb test_ioctl test_kqueue test_msilib test_ossaudiodev test_startfile test_tix test_tk test_ttk_guionly test_winconsoleio test_winreg test_winsound test_zipfile64 0:18:40 load avg: 2.91 0:18:40 load avg: 2.91 Re-running failed tests in verbose mode 0:18:40 load avg: 2.91 Re-running test_exceptions in verbose mode (matching: test_name_error_suggestions_do_not_trigger_for_too_many_locals) test_name_error_suggestions_do_not_trigger_for_too_many_locals (test.test_exceptions.NameErrorTests) ... test test_exceptions failed FAIL == FAIL: test_name_error_suggestions_do_not_trigger_for_too_many_locals (test.test_exceptions.NameErrorTests) -- Traceback (most recent call last): File "/home/ray/local/build/Python-3.11.0a1/Lib/test/test_exceptions.py", line 1843, in test_name_error_suggestions_do_not_trigger_for_too_many_locals self.assertNotIn("a1", err.getvalue()) ^^ AssertionError: 'a1' unexpectedly found in 'Traceback (most recent call last):\n File "/home/ray/local/build/Python-3.11.0a1/Lib/test/test_exceptions.py", line 1838, in test_name_error_suggestions_do_not_trigger_for_too_many_locals\nf()\n ^^^\n File "/home/ray/local/build/Python-3.11.0a1/Lib/test/test_exceptions.py", line 1835, in f\nprint(a0)\n ^^\nNameError: name \'a0\' is not defined\n' -- Ran 1 test in 0.008s FAILED (failures=1) 1 test failed again: test_exceptions == Tests result: FAILURE then FAILURE == 412 tests OK. 1 test failed: test_exceptions 14 tests skipped: test_devpoll test_gdb test_ioctl test_kqueue test_msilib test_ossaudiodev test_startfile test_tix test_tk test_ttk_guionly test_winconsoleio test_winreg test_winsound test_zipfile64 1 re-run test: test_exceptions Total duration: 18 min 40 sec Tests result: FAILURE then FAILURE make: *** [Makefile:1318: test] Error 2 Here only `test_exceptions` fails. The previous report was from an Intel Core i5. System info: $ uname -a Linux archeract 5.15.0-rc6-archeract #1 SMP Mon Oct 18 14:15:15 IST 2021 x86_64 GNU/Linux $ gcc --version gcc (GCC) 11.1.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ ld --version GNU ld (GNU Binutils) 2.36.1 Copyright (C) 2021 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty. $ echo $CC /usr/bin/gcc $ echo $CFLAGS -Wall -Wextra -g -O0 -std=c99 $ echo $LDFLAGS -L/opt/openssl/lib -L/opt/openssl/lib64 -Wl,-rpath,/opt/openssl/lib -Wl,-rpath,/opt/openssl/lib64 -- type: behavior -> crash ___ Python tracker <https://bugs.python.org/issue45534> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45534] Failing test_exceptions and test_threading
Change by Aritra Sarkar : -- type: crash -> behavior ___ Python tracker <https://bugs.python.org/issue45534> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45534] Failing test_exceptions and test_threading
Aritra Sarkar added the comment: > Crash typically refers to a segfault or hang in c code, not an exception. > Please don't change the type again. I hadn't noticed that it was changed and I didn't refresh the page. Hence everytime I sent a message, it automatically changed it back to crash. Apologies! -- ___ Python tracker <https://bugs.python.org/issue45534> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com