Issue 34811: test_gdb fails with latest gdb (original) (raw)

FAIL: test_NULL_ob_type (test.test_gdb.PrettyPrintTests) Ensure that a PyObject* with NULL ob_type is handled gracefully

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 485, in test_NULL_ob_type 'set v->ob_type=0') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 456, in assertSane cmds_after_breakpoint=cmds_after_breakpoint) File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_NULL_ptr (test.test_gdb.PrettyPrintTests) Ensure that a NULL PyObject* is handled gracefully

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 477, in test_NULL_ptr 'backtrace']) File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_builtin_method (test.test_gdb.PrettyPrintTests)

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 607, in test_builtin_method gdb_repr, gdb_output = self.get_gdb_repr('import sys; id(sys.stdout.readlines)') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_builtins_help (test.test_gdb.PrettyPrintTests) Ensure that the new-style class _Helper in site.py can be handled

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 513, in test_builtins_help gdb_repr, gdb_output = self.get_gdb_repr('id(builtins.help)', import_site=True) File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_bytes (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of bytes

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 301, in test_bytes self.assertGdbRepr(b'') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 266, in assertGdbRepr gdb_repr, gdb_output = self.get_gdb_repr('id(' + ascii(val) + ')') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_corrupt_ob_type (test.test_gdb.PrettyPrintTests) Ensure that a PyObject* with a corrupt ob_type is handled gracefully

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 491, in test_corrupt_ob_type exprepr='42') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 456, in assertSane cmds_after_breakpoint=cmds_after_breakpoint) File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_corrupt_tp_flags (test.test_gdb.PrettyPrintTests) Ensure that a PyObject* with a type with corrupt tp_flags is handled

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 497, in test_corrupt_tp_flags exprepr='42') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 456, in assertSane cmds_after_breakpoint=cmds_after_breakpoint) File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_corrupt_tp_name (test.test_gdb.PrettyPrintTests) Ensure that a PyObject* with a type with corrupt tp_name is handled

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 503, in test_corrupt_tp_name exprepr='42') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 456, in assertSane cmds_after_breakpoint=cmds_after_breakpoint) File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_dicts (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of dictionaries

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 289, in test_dicts self.assertGdbRepr({}) File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 266, in assertGdbRepr gdb_repr, gdb_output = self.get_gdb_repr('id(' + ascii(val) + ')') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_exceptions (test.test_gdb.PrettyPrintTests)

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 387, in test_exceptions ''') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_frames (test.test_gdb.PrettyPrintTests)

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 626, in test_frames 'Unexpected gdb representation: %r\n%s' % (gdb_output, gdb_output)) AssertionError: None is not true : Unexpected gdb representation: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_frozensets (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of frozensets

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 373, in test_frozensets self.assertGdbRepr(frozenset(), "frozenset()") File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 266, in assertGdbRepr gdb_repr, gdb_output = self.get_gdb_repr('id(' + ascii(val) + ')') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_int (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of various int values

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 275, in test_int self.assertGdbRepr(42) File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 266, in assertGdbRepr gdb_repr, gdb_output = self.get_gdb_repr('id(' + ascii(val) + ')') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_lists (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of lists

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 296, in test_lists self.assertGdbRepr([]) File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 266, in assertGdbRepr gdb_repr, gdb_output = self.get_gdb_repr('id(' + ascii(val) + ')') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_modern_class (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of new-style class instances

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 409, in test_modern_class id(foo)''') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_selfreferential_dict (test.test_gdb.PrettyPrintTests) Ensure that a reference loop involving a dict doesn't lead proxyval

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 534, in test_selfreferential_dict self.get_gdb_repr("a = {} ; b = {'bar':a} ; a['foo'] = b ; id(a)") File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_selfreferential_list (test.test_gdb.PrettyPrintTests) Ensure that a reference loop involving a list doesn't lead proxyval

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 523, in test_selfreferential_list self.get_gdb_repr("a = [3, 4, 5] ; a.append(a) ; id(a)") File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_selfreferential_new_style_instance (test.test_gdb.PrettyPrintTests)

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 558, in test_selfreferential_new_style_instance id(foo)''') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_selfreferential_old_style_instance (test.test_gdb.PrettyPrintTests)

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 545, in test_selfreferential_old_style_instance id(foo)''') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_sets (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of sets

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 355, in test_sets self.assertGdbRepr(set(), "set()") File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 266, in assertGdbRepr gdb_repr, gdb_output = self.get_gdb_repr('id(' + ascii(val) + ')') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_singletons (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of True, False and None

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 283, in test_singletons self.assertGdbRepr(True) File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 266, in assertGdbRepr gdb_repr, gdb_output = self.get_gdb_repr('id(' + ascii(val) + ')') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_strings (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of unicode strings

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 325, in test_strings self.assertGdbRepr('') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 266, in assertGdbRepr gdb_repr, gdb_output = self.get_gdb_repr('id(' + ascii(val) + ')') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_subclassing_list (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of an instance of a list subclass

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 422, in test_subclassing_list id(foo)''') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_subclassing_tuple (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of an instance of a tuple subclass

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 437, in test_subclassing_tuple id(foo)''') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_truncation (test.test_gdb.PrettyPrintTests) Verify that very long output is truncated

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 580, in test_truncation gdb_repr, gdb_output = self.get_gdb_repr('id(list(range(1000)))') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1".

FAIL: test_tuples (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of tuples

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 347, in test_tuples self.assertGdbRepr(tuple(), '()') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 266, in assertGdbRepr gdb_repr, gdb_output = self.get_gdb_repr('id(' + ascii(val) + ')') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 242, in get_gdb_repr self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) AssertionError: Unexpected gdb output: 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' Breakpoint 1 (builtin_id) pending. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". test test_gdb failed

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 "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 690, in test_down_at_bottom 'Unable to find a newer python frame\n') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 248, in assertEndsWith msg='%r did not end with %r' % (actual, exp_end)) AssertionError: False is not true : 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' did not end with 'Unable to find a newer python frame\n'

FAIL: test_up_at_top (test.test_gdb.StackNavigationTests) Verify handling of "py-up" at the top of the stack

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 698, in test_up_at_top 'Unable to find an older python frame\n') File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 248, in assertEndsWith msg='%r did not end with %r' % (actual, exp_end)) AssertionError: False is not true : 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n' did not end with 'Unable to find an older python frame\n'

FAIL: test_threads (test.test_gdb.PyBtTests) Verify that "py-bt" indicates threads that are waiting for the GIL

Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.7.0/Lib/test/test_gdb.py", line 777, in test_threads self.assertIn('Waiting for the GIL', gdb_output) AssertionError: 'Waiting for the GIL' not found in 'Breakpoint 1 (builtin_id) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n'

I've reproduced this on 3.7.1rc1: (...)

Oh. I reopen the issue.

It seems like the bug occurred on the debug build of Python:

Extract of commands to build Python in debug mode: