This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author larry
Recipients larry, pablogsal
Date 2021-04-26.05:02:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Recent Python source trees fail a regression test in test_gdb.  Oddly, the behavior only appears up when optimization is turned off.

To reproduce:

% git clone cpython buildtrunk
% cd buildtrunk
% ./configure
% vi Makefile  # change "-O3" to "-O0" !!
% make -j
% ./python -m test -v test_gdb

You'll be rewarded with one failure:

FAIL: test_wrapper_call (test.test_gdb.PyBtTests)
Traceback (most recent call last):
  File "/home/larry/src/python/buildtrunk/Lib/test/", line 947, in test_wrapper_call
AssertionError: Regex didn't match: "<method-wrapper u?'__init__' of MyList object at " not found in 'Breakpoint 1 at 0x281f5a: file Python/bltinmodule.c, line 1207.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib/x86_64-linux-gnu/".\n\nBreakpoint 1, builtin_id (self=<cfunction_enter_call+35>, v=<unknown at remote 0x7fffffffc7b0>) at Python/bltinmodule.c:1207\n1207\t{\nBreakpoint 2: file Objects/descrobject.c, line 1386.\n\nBreakpoint 2, wrapper_call (wp=<unknown at remote 0x555555973820>, args=<unknown at remote 0x55555581dee8>, kwds=<unknown at remote 0x5555555bde85>) at Objects/descrobject.c:1386\n1386\t{\nTraceback (most recent call first):\n  <unknown at remote 0x555555973820>\n  File "<string>", line 4, in __init__\n  File "<string>", line 7, in <module>\n'


I just reproduced this with version 3c4850e222388889426e250ff43308e4802dc582 .  Note that if you don't change the Makefile, and leave the optimization level at "-O3", you won't see this test failure.

Pablo, I nosied you just to get it on your radar.  Good luck with getting Python 3.10 over the finish line!
Date User Action Args
2021-04-26 05:02:16larrysetrecipients: + larry, pablogsal
2021-04-26 05:02:16larrysetmessageid: <>
2021-04-26 05:02:16larrylinkissue43941 messages
2021-04-26 05:02:15larrycreate