Author ZackerySpytz
Recipients ZackerySpytz, rhettinger
Date 2019-09-17.19:27:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
When running test_dictviews, I sometimes encounter a fatal error.

./python -m test test_dictviews
Run tests sequentially
0:00:00 load avg: 0.36 [1/1] test_dictviews
python: Objects/typeobject.c:3125: _PyType_Lookup: Assertion `!PyErr_Occurred()' failed.
Fatal Python error: Aborted

Current thread 0x00007fd5506de140 (most recent call first):
  File "/home/lubuntu2/cpython/Lib/test/", line 166 in test_items_set_operations
  File "/home/lubuntu2/cpython/Lib/unittest/", line 617 in _callTestMethod
  File "/home/lubuntu2/cpython/Lib/unittest/", line 663 in run
  File "/home/lubuntu2/cpython/Lib/unittest/", line 725 in __call__
  File "/home/lubuntu2/cpython/Lib/unittest/", line 122 in run
  File "/home/lubuntu2/cpython/Lib/unittest/", line 84 in __call__
  File "/home/lubuntu2/cpython/Lib/unittest/", line 122 in run
  File "/home/lubuntu2/cpython/Lib/unittest/", line 84 in __call__
  File "/home/lubuntu2/cpython/Lib/unittest/", line 122 in run
  File "/home/lubuntu2/cpython/Lib/unittest/", line 84 in __call__
  File "/home/lubuntu2/cpython/Lib/test/support/", line 162 in run
  File "/home/lubuntu2/cpython/Lib/test/support/", line 1996 in _run_suite
  File "/home/lubuntu2/cpython/Lib/test/support/", line 2092 in run_unittest
  File "/home/lubuntu2/cpython/Lib/test/libregrtest/", line 209 in _test_module
  File "/home/lubuntu2/cpython/Lib/test/libregrtest/", line 234 in _runtest_inner2
  File "/home/lubuntu2/cpython/Lib/test/libregrtest/", line 270 in _runtest_inner
  File "/home/lubuntu2/cpython/Lib/test/libregrtest/", line 153 in _runtest
  File "/home/lubuntu2/cpython/Lib/test/libregrtest/", line 193 in runtest
  File "/home/lubuntu2/cpython/Lib/test/libregrtest/", line 409 in run_tests_sequential
  File "/home/lubuntu2/cpython/Lib/test/libregrtest/", line 507 in run_tests
  File "/home/lubuntu2/cpython/Lib/test/libregrtest/", line 674 in _main
  File "/home/lubuntu2/cpython/Lib/test/libregrtest/", line 628 in main
  File "/home/lubuntu2/cpython/Lib/test/libregrtest/", line 695 in main
  File "/home/lubuntu2/cpython/Lib/test/", line 2 in <module>
  File "/home/lubuntu2/cpython/Lib/", line 85 in _run_code
  File "/home/lubuntu2/cpython/Lib/", line 192 in _run_module_as_main
Aborted (core dumped)

It seems that this is because the PyObject_GetIter() call in _PyDictView_Intersect() is not checked for failure.
Date User Action Args
2019-09-17 19:27:01ZackerySpytzsetrecipients: + ZackerySpytz, rhettinger
2019-09-17 19:27:01ZackerySpytzsetmessageid: <>
2019-09-17 19:27:01ZackerySpytzlinkissue38202 messages
2019-09-17 19:27:00ZackerySpytzcreate