[New-bugs-announce] [issue44472] ltrace functionality doesn't work if there is an exception set

Pablo Galindo Salgado report at bugs.python.org
Mon Jun 21 06:18:55 EDT 2021


New submission from Pablo Galindo Salgado <pablogsal at gmail.com>:

Using lltrace results in this crash because we are getting the repl with an exception set:

pop None
Assertion failed: (!_PyErr_Occurred(tstate)), function PyObject_Repr, file Objects/object.c, line 431.
pop Fatal Python error: Aborted

Current thread 0x00000001060eddc0 (most recent call first):
  File "/Users/pgalindo3/github/cpython/Lib/test/test_sys_settrace.py", line 1999 in gen
  File "/Users/pgalindo3/github/cpython/Lib/test/test_sys_settrace.py", line 2001 in test_jump_from_yield
  File "/Users/pgalindo3/github/cpython/Lib/test/test_sys_settrace.py", line 1248 in run_test
  File "/Users/pgalindo3/github/cpython/Lib/test/test_sys_settrace.py", line 1276 in test
  File "/Users/pgalindo3/github/cpython/Lib/unittest/case.py", line 549 in _callTestMethod
  File "/Users/pgalindo3/github/cpython/Lib/unittest/case.py", line 592 in run
  File "/Users/pgalindo3/github/cpython/Lib/unittest/case.py", line 652 in __call__
  File "/Users/pgalindo3/github/cpython/Lib/unittest/suite.py", line 122 in run
  File "/Users/pgalindo3/github/cpython/Lib/unittest/suite.py", line 84 in __call__
  File "/Users/pgalindo3/github/cpython/Lib/unittest/suite.py", line 122 in run
  File "/Users/pgalindo3/github/cpython/Lib/unittest/suite.py", line 84 in __call__
  File "/Users/pgalindo3/github/cpython/Lib/unittest/suite.py", line 122 in run
  File "/Users/pgalindo3/github/cpython/Lib/unittest/suite.py", line 84 in __call__
  File "/Users/pgalindo3/github/cpython/Lib/unittest/runner.py", line 176 in run
  File "/Users/pgalindo3/github/cpython/Lib/test/support/__init__.py", line 960 in _run_suite
  File "/Users/pgalindo3/github/cpython/Lib/test/support/__init__.py", line 1083 in run_unittest
  File "/Users/pgalindo3/github/cpython/Lib/test/libregrtest/runtest.py", line 210 in _test_module
  File "/Users/pgalindo3/github/cpython/Lib/test/libregrtest/runtest.py", line 246 in _runtest_inner2
  File "/Users/pgalindo3/github/cpython/Lib/test/libregrtest/runtest.py", line 282 in _runtest_inner
  File "/Users/pgalindo3/github/cpython/Lib/test/libregrtest/runtest.py", line 154 in _runtest
  File "/Users/pgalindo3/github/cpython/Lib/test/libregrtest/runtest.py", line 194 in runtest
  File "/Users/pgalindo3/github/cpython/Lib/test/libregrtest/main.py", line 423 in run_tests_sequential
  File "/Users/pgalindo3/github/cpython/Lib/test/libregrtest/main.py", line 521 in run_tests
  File "/Users/pgalindo3/github/cpython/Lib/test/libregrtest/main.py", line 694 in _main
  File "/Users/pgalindo3/github/cpython/Lib/test/libregrtest/main.py", line 641 in main
  File "/Users/pgalindo3/github/cpython/Lib/test/libregrtest/main.py", line 719 in main
  File "/Users/pgalindo3/github/cpython/Lib/test/__main__.py", line 2 in <module>
  File "/Users/pgalindo3/github/cpython/Lib/runpy.py", line 86 in _run_code
  File "/Users/pgalindo3/github/cpython/Lib/runpy.py", line 196 in _run_module_as_main

----------
messages: 396220
nosy: pablogsal
priority: normal
severity: normal
status: open
title: ltrace functionality doesn't work if there is an exception set

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44472>
_______________________________________


More information about the New-bugs-announce mailing list