Message391878
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/test_gdb.py", line 947, in test_wrapper_call
self.assertRegex(gdb_output,
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/libthread_db.so.1".\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:16 | larry | set | recipients:
+ larry, pablogsal |
2021-04-26 05:02:16 | larry | set | messageid: <1619413336.26.0.680975027921.issue43941@roundup.psfhosted.org> |
2021-04-26 05:02:16 | larry | link | issue43941 messages |
2021-04-26 05:02:15 | larry | create | |
|