[issue33914] test_gdb fails for Python 2.7.15
New submission from Vibhuti : == FAIL: test_down_at_bottom (test.test_gdb.StackNavigationTests) Verify handling of "py-down" at the bottom of the stack -- Traceback (most recent call last): File "/home/test/Python-2.7.15/Lib/test/test_gdb.py", line 708, in test_down_at_bottom cmds_after_breakpoint=['py-down']) File "/home/test/Python-2.7.15/Lib/test/test_gdb.py", line 221, in get_stack_trace self.assertEqual(unexpected_errlines, []) AssertionError: Lists differ: ['Cannot create process: Opera... != [] First list contains 4 additional elements. First extra element 0: 'Cannot create process: Operation not permitted' + [] - ['Cannot create process: Operation not permitted', - 'During startup program exited with code 127.', - "Python Exception No frame is currently selected.: ", - 'Error occurred in Python command: No frame is currently selected.'] -- Ran 49 tests in 0.170s FAILED (failures=1, skipped=48) test test_gdb failed -- Traceback (most recent call last): File "/home/test/Python-2.7.15/Lib/test/test_gdb.py", line 708, in test_down_at_bottom cmds_after_breakpoint=['py-down']) File "/home/test/Python-2.7.15/Lib/test/test_gdb.py", line 221, in get_stack_trace self.assertEqual(unexpected_errlines, []) AssertionError: Lists differ: ['Cannot create process: Opera... != [] First list contains 4 additional elements. First extra element 0: 'Cannot create process: Operation not permitted' + [] - ['Cannot create process: Operation not permitted', - 'During startup program exited with code 127.', - "Python Exception No frame is currently selected.: ", - 'Error occurred in Python command: No frame is currently selected.'] 1 test failed: test_gdb -- components: Build messages: 320060 nosy: vibhutisawant priority: normal severity: normal status: open title: test_gdb fails for Python 2.7.15 type: compile error versions: Python 2.7 ___ Python tracker <https://bugs.python.org/issue33914> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33914] test_gdb fails for Python 2.7.15
Vibhuti added the comment: Hi ,sorry for the delayed reply The architecture is s390x and the OS is SLES 12 SP3 (however test_gdb fails on SLES 11 SP4 too) Python was installed using https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tar.xz The whole output of `./python -Werror -m test -v test_gdb` is as below: test@4e227cf6c7ae:~/Python-2.7.15> sudo ./python -Werror -m test -v test_gdb == CPython 2.7.15 (default, Jun 25 2018, 05:10:18) [GCC 4.8.5] == Linux-4.15.0-22-generic-s390x-with-SuSE-12-s390x big-endian == /home/test/Python-2.7.15/build/test_python_21830 == CPU count: 2 Run tests sequentially 0:00:00 load avg: 4.32 [1/1] test_gdb GDB version 8.0: GNU gdb (GDB; SUSE Linux Enterprise 12) 8.0.1 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "s390x-suse-linux". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://bugs.opensuse.org/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word". test_NULL_instance_dict (test.test_gdb.PrettyPrintTests) Ensure that a PyInstanceObject with with a NULL in_dict is handled ... skipped 'Python was compiled with optimizations' test_NULL_ob_type (test.test_gdb.PrettyPrintTests) Ensure that a PyObject* with NULL ob_type is handled gracefully ... skipped 'Python was compiled with optimizations' test_NULL_ptr (test.test_gdb.PrettyPrintTests) Ensure that a NULL PyObject* is handled gracefully ... skipped 'Python was compiled with optimizations' test_builtin_function (test.test_gdb.PrettyPrintTests) ... skipped 'Python was compiled with optimizations' test_builtin_method (test.test_gdb.PrettyPrintTests) ... skipped 'Python was compiled with optimizations' test_builtins_help (test.test_gdb.PrettyPrintTests) Ensure that the new-style class _Helper in site.py can be handled ... skipped 'Python was compiled with optimizations' test_classic_class (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of classic class instances ... skipped 'Python was compiled with optimizations' test_corrupt_ob_type (test.test_gdb.PrettyPrintTests) Ensure that a PyObject* with a corrupt ob_type is handled gracefully ... skipped 'Python was compiled with optimizations' test_corrupt_tp_flags (test.test_gdb.PrettyPrintTests) Ensure that a PyObject* with a type with corrupt tp_flags is handled ... skipped 'Python was compiled with optimizations' test_corrupt_tp_name (test.test_gdb.PrettyPrintTests) Ensure that a PyObject* with a type with corrupt tp_name is handled ... skipped 'Python was compiled with optimizations' test_dicts (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of dictionaries ... skipped 'Python was compiled with optimizations' test_exceptions (test.test_gdb.PrettyPrintTests) ... skipped 'Python was compiled with optimizations' test_frames (test.test_gdb.PrettyPrintTests) ... skipped 'Python was compiled with optimizations' test_frozensets (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of frozensets ... skipped 'Python was compiled with optimizations' test_getting_backtrace (test.test_gdb.PrettyPrintTests) ... skipped 'Python was compiled with optimizations' test_int (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of various "int" values ... skipped 'Python was compiled with optimizations' test_lists (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of lists ... skipped 'Python was compiled with optimizations' test_long (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of various "long" values ... skipped 'Python was compiled with optimizations' test_modern_class (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of new-style class instances ... skipped 'Python was compiled with optimizations' test_selfreferential_dict (test.test_gdb.PrettyPrintTests) Ensure that a reference loop involving a dict doesn't lead proxyval ... skipped 'Python was compiled with optimizations' test_selfreferential_list (test.test_gdb.PrettyPrintTests) Ensure that a reference loop involving a list doesn't lead proxyval ... skipped 'Python was compiled with optimizations' test_selfreferential_new_style_instance (test.test_gdb.PrettyPrintTest
[issue33914] test_gdb fails for Python 2.7.15
Vibhuti added the comment: STINNER Hi I tried the commit but it did not work.The same failure is observed. -- ___ Python tracker <https://bugs.python.org/issue33914> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33914] test_gdb fails for Python 2.7.15
Vibhuti added the comment: Thanks STINNER for your help.The issue has been resolved.It was related to gdb itself and not Python. -- ___ Python tracker <https://bugs.python.org/issue33914> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com