GeezerVison is showing github.com — gh-139653: Add PyUnstable_ThreadState_SetStackProtection() by vstinner · Pull Request #139668 · python/cpython
Conversation
vstinner
commented
Oct 6, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Add PyUnstable_ThreadState_SetStackProtection() and
PyUnstable_ThreadState_ResetStackProtection() functions to set the stack protection base address and stack protection size of a Python thread state.
📚 Documentation preview 📚: https://cpython-previews--139668.org.readthedocs.build/
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
This generally matches what I came up with :)
The start argument might be confusing, as the place usage grows towards.
Why not use bottom & top as in the internals?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
On systems like musl that just set top to the current stack pointer, PyUnstable_ThreadState_ResetStack has two issues:
- calling it “often” will essentially prevent stack protection
- returning from a function that called it will get you past the top of the stack, which should be fine but isn't really tested.
Would it be better to save the results of the initial _Py_InitializeRecursionLimits on the thread state, and have PyUnstable_ThreadState_ResetStack return to that?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The API looks good, but it can fail in a couple of ways.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
I have made the requested changes; please review again.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks for making the requested changes!
@markshannon: please review the changes made to this pull request.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
markshannon
commented
Oct 7, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
Can we please merge #139294 first before we add stuff on top of it?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Can we please merge #139294 first before we add stuff on top of it?
Yes. I approved your PR.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Add PyUnstable_ThreadState_SetStack() and
PyUnstable_ThreadState_ResetStack() functions to set the stack base
address and stack size of a Python thread state.
Can we please merge #139294 first before we add stuff on top of it?
PR gh-139294 has been merged. I rebased my PR on top of it.
I also modified my PR to use (base, top) internally instead of (start_address, size).
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Oh, TSan CI now fails with:
0:03:59 load avg: 5.34 [43/76/1] test_capi worker non-zero exit code (Exit code -6 (SIGABRT)) -- running (2): ...
python: Python/ceval.c:506: void tstate_set_stack(PyThreadState *, uintptr_t, uintptr_t):
Assertion `ts->c_stack_soft_limit < ts->c_stack_top' failed.
Fatal Python error: Aborted
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
@encukou @markshannon: Would you mind to review my latest PR?
I'm not sure if impacted applications can provide requested data: (stack start address, stack size). But it should help some applications which can easily retrieve these data.
It might be better to merge this first, then update #140028 and ask @stefanor to test on HPPA.
I can wait for #140028 if it's ready to be merged.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I'm not convinced that adding API is a good fix for the breakage, and I still think PyUnstable_ThreadState_SetStackLocation would be a slightly better name, but this PR does what it says on the tin.
#140028 needs testing on special hardware; I think it's best to test the merged version so that it doesn't need to be done twice.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Happy to test on HPPA either way around!
|
gpshead reacted with heart emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
I plan to merge this change tomorrow, unless someone has a good reason to not merge it.
|
encukou reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
@encukou:
I'm not convinced that adding API is a good fix for the breakage
Me neither, but it should unblock some of the projects impacted by #139653.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️
Hi! The buildbot AMD64 FreeBSD Refleaks 3.x (tier-3) has failed when building commit b99db92.
What do you need to do:
- Don't panic.
- Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
- Go to the page of the buildbot that failed (https://buildbot.python.org/#/builders/1613/builds/2346) and take a look at the build logs.
- Check if the failure is related to this commit (b99db92) or if it is a false positive.
- If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.
You can take a look at the buildbot page here:
https://buildbot.python.org/#/builders/1613/builds/2346
Failed tests:
- test_multiprocessing_main_handling
- test_import
- test.test_multiprocessing_spawn.test_processes
- test_repl
- test_capi
- test.test_multiprocessing_spawn.test_misc
- test_subprocess
- test_c_locale_coercion
- test.test_concurrent_futures.test_init
- test_hash
- test_interpreters
- test_tempfile
Failed subtests:
- test_badimport - test.test_pydoc.test_pydoc.PydocImportTest.test_badimport
- test_zipfile_compiled - test.test_multiprocessing_main_handling.ForkCmdLineTest.test_zipfile_compiled
- test_wait_slow - test.test_multiprocessing_spawn.test_misc.TestWait.test_wait_slow
- test_no_leaking - test.test_subprocess.ProcessTestCase.test_no_leaking
- test_randomized_hash - test.test_hash.DatetimeDatetimeTests.test_randomized_hash
- test_no_leaking - test.test_subprocess.ProcessTestCaseNoPoll.test_no_leaking
- test_pydatetime - test.test_zoneinfo.test_zoneinfo.MiscTests.test_pydatetime
- test_endline_and_columntable_none_when_no_debug_ranges_env - test.test_code.CodeTest.test_endline_and_columntable_none_when_no_debug_ranges_env
- test_assertion_error_location - test.test_exceptions.AssertionErrorTests.test_assertion_error_location
- test_no_stdin - test.test_cmd_line.CmdLineTest.test_no_stdin
- test_count_and_summary - test.test_trace.TestCommandLine.test_count_and_summary
- test_worker_finalization_via_atexit_handler_of_multiprocessing - test.test_multiprocessing_fork.test_processes.WithProcessesTestPoolWorkerLifetime.test_worker_finalization_via_atexit_handler_of_multiprocessing
- test_lltrace_different_module - test.test_lltrace.TestLLTrace.test_lltrace_different_module
- test_setsigdef - test.test_os.test_posix.TestPosixSpawnP.test_setsigdef
- test_spawn - test.test_concurrent_futures.test_init.FailingInitializerResourcesTest.test_spawn
- test_run_module_with_args - test.test_pdb.PdbTestCase.test_run_module_with_args
- test_no_test_ran_some_test_exist_some_not - test.test_regrtest.ArgsTestCase.test_no_test_ran_some_test_exist_some_not
- test_help - test.test_tools.test_msgfmt.CLITest.test_help
- test_subprocess_stderr_redirect_to_stdout - test.test_asyncio.test_events.PollEventLoopTests.test_subprocess_stderr_redirect_to_stdout
- test_dash_m_init_traceback - test.test_cmd_line_script.CmdLineTest.test_dash_m_init_traceback
- test_keyword_suggestions_from_command_string - test.test_traceback.TestKeywordTypoSuggestions.test_keyword_suggestions_from_command_string
- test_unraisable_exc - test.test_regrtest.ArgsTestCase.test_unraisable_exc
- test_randomized_hash - test.test_hash.DatetimeTimeTests.test_randomized_hash
- test_single_init_extension_compat - test.test_import.SubinterpImportTests.test_single_init_extension_compat
- test_directory_in_zipfile_compiled - test.test_argparse.TestProgName.test_directory_in_zipfile_compiled
- test_urandom_subprocess - test.test_os.test_os.URandomTests.test_urandom_subprocess
- test_that_shared_memory_name_with_colons_has_no_resource_tracker_errors - test.test_multiprocessing_forkserver.test_misc.TestSharedMemoryNames.test_that_shared_memory_name_with_colons_has_no_resource_tracker_errors
- test_lazy_import - test.test_gettext.MiscTestCase.test_lazy_import
- test_option_spacing - test.test_calendar.CommandLineTestCase.test_option_spacing
- test_create_command_compressed - test.test_tarfile.CommandLineTest.test_create_command_compressed
- test_stdio - test.test_utf8_mode.UTF8ModeTests.test_stdio
- test_del_on_shutdown - test.test_tempfile.TestTemporaryDirectory.test_del_on_shutdown
- test_map_buffersize_on_empty_iterable - test.test_concurrent_futures.test_process_pool.ProcessPoolSpawnProcessPoolExecutorTest.test_map_buffersize_on_empty_iterable
- test_close_stdin - test.test_repl.TestInteractiveInterpreter.test_close_stdin
- test_zipfile_compiled - test.test_multiprocessing_main_handling.SpawnCmdLineTest.test_zipfile_compiled
- test_directory - test.test_multiprocessing_main_handling.ForkServerCmdLineTest.test_directory
- test_thread_from_thread - test.test_threading.ThreadJoinOnShutdown.test_thread_from_thread
- test_sys_tracebacklimit - test.test_sys.SysModuleTest.test_sys_tracebacklimit
- test_stdin_stdout - test.test_json.test_tool.TestTool.test_stdin_stdout
- test_dump_ext_modules - test.test_faulthandler.FaultHandlerTests.test_dump_ext_modules
- test_script_compiled - test.test_multiprocessing_main_handling.SpawnCmdLineTest.test_script_compiled
- test_pickle - test.test_audit.AuditTest.test_pickle
- test_env_var_debug - test.test_asyncio.test_tasks.CoroutineGatherTests.test_env_var_debug
- test_PYTHONCOERCECLOCALE_not_zero - test.test_c_locale_coercion.LocaleCoercionTests.test_PYTHONCOERCECLOCALE_not_zero
- test_lazy_imports - test.test_site.ImportSideEffectTests.test_lazy_imports
- test_daemon_threads_fatal_error - test.test_threading.SubinterpThreadingTests.test_daemon_threads_fatal_error
- test_main_thread_during_shutdown - test.test_threading.ThreadTests.test_main_thread_during_shutdown
- test_cancel_futures - test.test_concurrent_futures.test_shutdown.ProcessPoolSpawnProcessPoolShutdownTest.test_cancel_futures
Summary of the results of the build (if available):
==
Click to see traceback logs
TracebackLegacyErrorCaretTests.test_basic_caret) ... ok
TracebackLegacyErrorCaretTests.test_byte_offset_wide_chars_subscript) ... ok
TracebackErrorCaretTests.test_caret_for_binary_operators_multiline_two_char) ... ok
TracebackErrorCaretTests.test_caret_for_binary_operators_with_unicode) ... ok
TracebackErrorCaretTests.test_caret_for_binary_operators) ... ok
TracebackLegacyErrorCaretTests.test_byte_offset_multiline) ... ok
TracebackException.test_lookup_lines) ... ok
TracebackFormat.test_traceback_format_with_cleared_frames) ... ok
TracebackException.test_locals) ... ok
TracebackLegacyErrorCaretTests.test_anchors_for_simple_assign_statements_are_elided) ... ok
TracebackException_ExceptionGroups.test_exception_group_construction) ... ok
TracebackException_ExceptionGroups.test_exception_group_format) ... ok
TracebackException.test_dont_swallow_cause_or_context_of_falsey_exception) ... ok
TracebackCases.test_recursion_error_during_traceback) ... ok
TracebackException.test_long_context_chain) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_traceback.py", line 1785, in test_keyword_suggestions_from_command_string
self.assertIn(f"Did you mean '{expected_kw}'", stderr_text)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Did you mean 'try'" not found in 'Assertion failed: (here_addr < ts->c_stack_top), function _Py_InitializeRecursionLimits, file Python/ceval.c, line 531.\n'
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_import/__init__.py", line 2424, in test_single_init_extension_compat
self.check_incompatible_fresh(module)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_import/__init__.py", line 2374, in check_incompatible_fresh
_, out, err = script_helper.assert_python_ok('-c', textwrap.dedent(f'''
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
import _testinternalcapi, sys
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<6 lines>...
assert ret == 0, ret
^^^^^^^^^^^^^^^^^^^^
'''))
^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-I', '-c', '\nimport _testinternalcapi, sys\nassert \'_testsinglephase\' not in sys.modules, \'_testsinglephase\'\nconfig = type(sys.implementation)(**{\'allow_fork\': False, \'allow_exec\': False, \'allow_threads\': True, \'allow_daemon_threads\': False, \'use_main_obmalloc\': True, \'gil\': \'shared\', \'check_multi_interp_extensions\': True})\nret = _testinternalcapi.run_in_subinterp_with_config(\n "\\nimport os, sys\\n\\ntry:\\n import _testsinglephase\\nexcept ImportError as exc:\\n text = \'ImportError: \' + str(exc)\\nelse:\\n text = \'okay\'\\nos.write(sys.stdout.fileno(), text.encode(\'utf-8\'))\\n",\n config,\n)\nassert ret == 0, ret\n']
TracebackLegacyErrorCaretTests.test_wide_characters_unicode_with_problematic_byte_offset) ... ok
Traceback.test_colorized_traceback_is_the_default) ... ok
TracebackException.test_limit) ... ok
TracebackException_ExceptionGroups.test_max_group_width) ... ok
TracebackTests.test_exec_failure) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line 5563, in test_wait_slow
self.test_wait(True)
~~~~~~~~~~~~~~^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line 5514, in test_wait
self.assertEqual(messages, expected)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
AssertionError: Lists differ: [(0, 12036), (0, 12038), (0, 12039), (1, 12036), (1, 12038), ([293 chars]039)] != [(0, 12036), (0, 12037), (0, 12038), (0, 12039), (1, 12036), ([413 chars]039)]
TracebackCases.test_format_exception_exc) ... ok
TracebackLegacyErrorCaretTests.test_caret_for_binary_operators) ... ok
TracebackCases.test_format_exception_group_multiline_messages) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_hash.py", line 194, in test_randomized_hash
run2 = self.get_hash(self.repr_, seed='random')
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_hash.py", line 185, in get_hash
out = assert_python_ok(
'-c', self.get_hash_command(repr_),
**env)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-c', 'import datetime; print(hash(datetime.datetime(1, 2, 3, 4, 5, 6, 7)))']
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/__init__.py", line 2934, in wrapper
return func(*args, **kwargs)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_eof.py", line 142, in test_line_continuation_EOF_from_file_bpo2180
self.assertEqual(err[-3:], [
~~~~~~~~~~~~~~~~^^^^^^^^^^^^
' ä = 6\\',
^^^^^^^^^^^^^^
' ^',
^^^^^^^^^^^^^^
'SyntaxError: unexpected EOF while parsing'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Lists differ: ['Assertion failed: (here_addr < ts->c_stac[75 chars]31.'] != [' ä = 6\\', ' ^', 'SyntaxError[27 chars]ing']
TracebackLegacyErrorCaretTests.test_caret_exception_group) ... ok
TracebackFormat.test_stack_format) ... ok
TracebackCases.test_format_exception_group_syntax_error_with_custom_values) ... ok
TracebackErrorCaretTests.test_caret_for_call_multiline) ... ok
TracebackLegacyErrorCaretTests.test_caret_for_binary_operators_multiline_with_unicode) ... ok
TracebackException.test_no_refs_to_exception_and_traceback_objects) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
cache[rtype].remove(name)
~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: '/mp-qybke2vy'
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
cache[rtype].remove(name)
~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: '/mp-my54noyf'
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
cache[rtype].remove(name)
~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: '/mp-j7msgjvy'
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
cache[rtype].remove(name)
~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: '/mp-qzdm2lsy'
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
cache[rtype].remove(name)
~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: '/mp-rdklxn76'
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
cache[rtype].remove(name)
~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: '/mp-dat2dydh'
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
cache[rtype].remove(name)
~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: '/mp-utj6l99b'
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
cache[rtype].remove(name)
~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: '/mp-pk28v8kr'
TracebackFormat.test_exception_group_deep_recursion_capi) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_zoneinfo/test_zoneinfo.py", line 1983, in test_pydatetime
assert_python_ok('-c', '''if 1:
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
import sys
^^^^^^^^^^
...<5 lines>...
''',
^^^^
PYTHONTZPATH=str(ZONEINFO_DATA.tzpath))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-c', "if 1:\n import sys\n sys.modules['_datetime'] = None\n import datetime\n import zoneinfo\n tzinfo = zoneinfo.ZoneInfo('Europe/London')\n datetime.datetime(2025, 10, 26, 2, 0, tzinfo=tzinfo)\n "]
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line 371, in _run_finalizers
finalizer()
~~~~~~~~~^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line 295, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line 86, in _cleanup
sem_unlink(name)
~~~~~~~~~~^^^^^^
FileNotFoundError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line 371, in _run_finalizers
finalizer()
~~~~~~~~~^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line 295, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line 86, in _cleanup
sem_unlink(name)
~~~~~~~~~~^^^^^^
FileNotFoundError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line 371, in _run_finalizers
finalizer()
~~~~~~~~~^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line 295, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line 86, in _cleanup
sem_unlink(name)
~~~~~~~~~~^^^^^^
FileNotFoundError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line 371, in _run_finalizers
finalizer()
~~~~~~~~~^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line 295, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line 86, in _cleanup
sem_unlink(name)
~~~~~~~~~~^^^^^^
FileNotFoundError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line 371, in _run_finalizers
finalizer()
~~~~~~~~~^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line 295, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line 86, in _cleanup
sem_unlink(name)
~~~~~~~~~~^^^^^^
FileNotFoundError: [Errno 2] No such file or directory
TracebackErrorCaretTests.test_caret_for_subscript_unicode) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line 295, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line 87, in _cleanup
unregister(name, "semaphore")
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 263, in unregister
self._send('UNREGISTER', name, rtype)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 290, in _send
self._ensure_running_and_write(msg)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 230, in _ensure_running_and_write
self._teardown_dead_process()
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 159, in _teardown_dead_process
warnings.warn('resource_tracker: process died unexpectedly, '
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'relaunching. Some resources might leak.')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UserWarning: resource_tracker: process died unexpectedly, relaunching. Some resources might leak.
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
cache[rtype].remove(name)
~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: '/mp-jklpj8ag'
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
cache[rtype].remove(name)
~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: '/mp-juosrlsm'
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
cache[rtype].remove(name)
~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: '/mp-67rjaved'
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
cache[rtype].remove(name)
~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: '/mp-k2er1of0'
k
TracebackCases.test_caret) ... ok
TracebackException_ExceptionGroups.test_dont_swallow_subexceptions_of_falsey_exceptiongroup) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/__init__.py", line 2934, in wrapper
return func(*args, **kwargs)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_sys.py", line 1264, in test_sys_tracebacklimit
check(10, traceback)
~~~~~^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_sys.py", line 1249, in check
self.assertEqual(out.splitlines(), expected)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Lists differ: [b'Assertion failed: (here_addr < ts->c_stac[75 chars]31.'] != [b'Traceback (most recent call last):', b' [227 chars]ero']
TracebackException.test_compact_with_cause) ... ok
TracebackErrorCaretTests.test_caret_for_binary_operators_multiline_with_unicode) ... ok
TracebackCases.test_print_exception) ... ok
TracebackTests.test_nonexistent_module) ... ok
Traceback (most recent call last):'
TracebackCases.test_no_caret_with_no_debug_ranges_flag) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_pdb.py", line 3979, in test_run_module_with_args
stdout, _ = self._run_pdb(["-m", "calendar", "1"], commands)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_pdb.py", line 3478, in _run_pdb
self.assertEqual(
~~~~~~~~~~~~~~~~^
proc.returncode,
^^^^^^^^^^^^^^^^
expected_returncode,
^^^^^^^^^^^^^^^^^^^^
f"Unexpected return code\nstdout: {stdout}\nstderr: {stderr}"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
AssertionError: -6 != 0 : Unexpected return code
stdout:
stderr: Assertion failed: (here_addr < ts->c_stack_top), function _Py_InitializeRecursionLimits, file Python/ceval.c, line 531.
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_multiprocessing_main_handling.py", line 209, in test_directory
self._check_script(script_dir)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_multiprocessing_main_handling.py", line 168, in _check_script
self._check_output(script_name, rc, out, err)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_multiprocessing_main_handling.py", line 159, in _check_output
self.assertEqual(err.decode('utf-8'), '')
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'Assertion failed: (here_addr < ts->c_stac[1815 chars]\'\n' != ''
- Assertion failed: (here_addr < ts->c_stack_top), function _Py_InitializeRecursionLimits, file Python/ceval.c, line 531.
- /buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py:159: UserWarning: resource_tracker: process died unexpectedly, relaunching. Some resources might leak.
- warnings.warn('resource_tracker: process died unexpectedly, '
- Traceback (most recent call last):
- File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
- cache[rtype].remove(name)
- ~~~~~~~~~~~~~~~~~~~^^^^^^
- KeyError: '/mp-udwqjim7'
- Traceback (most recent call last):
- File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
- cache[rtype].remove(name)
- ~~~~~~~~~~~~~~~~~~~^^^^^^
- KeyError: '/mp-naxb6nzx'
- Traceback (most recent call last):
- File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
- cache[rtype].remove(name)
- ~~~~~~~~~~~~~~~~~~~^^^^^^
- KeyError: '/mp-tr5wuyu9'
- Traceback (most recent call last):
- File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
- cache[rtype].remove(name)
- ~~~~~~~~~~~~~~~~~~~^^^^^^
- KeyError: '/mp-y3j3xwev'
- Traceback (most recent call last):
- File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
- cache[rtype].remove(name)
- ~~~~~~~~~~~~~~~~~~~^^^^^^
- KeyError: '/mp-1ava7gds'
- Traceback (most recent call last):
- File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
- cache[rtype].remove(name)
- ~~~~~~~~~~~~~~~~~~~^^^^^^
- KeyError: '/mp-zfj1yk93'
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line 6264, in test_resource_tracker_exit_code
self._test_resource_tracker_leak_resources(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
cleanup=cleanup,
^^^^^^^^^^^^^^^^
)
^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line 6254, in _test_resource_tracker_leak_resources
self.assertEqual(tracker._exitcode, expected_exit_code)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: -6 != 1
TracebackLegacyErrorCaretTests.test_caret_for_call_multiline) ... ok
TracebackLegacyErrorCaretTests.test_multiline_method_call_c) ... ok
TracebackTests.test_broken_parent) ... ok
TracebackLegacyErrorCaretTests.test_caret_for_subscript_multiline) ... ok
TracebackFormat.test_traceback_format) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_trace.py", line 557, in test_count_and_summary
status, stdout, _ = assert_python_ok('-m', 'trace', '-cs', filename,
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PYTHONIOENCODING='utf-8')
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-m', 'trace', '-cs', '@test_82596_tmpæ.py']
TracebackAttr (test.test_exceptions.ExceptionTests.testNoneClearsTracebackAttr) ... ok
TracebackException_ExceptionGroups.test_exception_group_format_exception_onlyi_recursive) ... ok
TracebackException_ExceptionGroups.test_max_group_depth) ... ok
TracebackException.test_comparison_basic) ... ok
TracebackLegacyErrorCaretTests.test_caret_for_call_with_spaces_and_parenthesis) ... ok
TracebackFormat.test_recursive_traceback) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line 5563, in test_wait_slow
self.test_wait(True)
~~~~~~~~~~~~~~^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line 5514, in test_wait
self.assertEqual(messages, expected)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
AssertionError: Lists differ: [(0, 89340), (0, 89342), (0, 89343), (1, 89340), (1, 89342), ([293 chars]343)] != [(0, 89340), (0, 89341), (0, 89342), (0, 89343), (1, 89340), ([413 chars]343)]
TracebackErrorCaretTests.test_caret_for_binary_operators_two_char) ... ok
TracebackFormat.test_print_exception_bad_type_capi) ... ok
TracebackCases.test_format_exception_group) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_multiprocessing_main_handling.py", line 236, in test_zipfile_compiled
self._check_script(zip_name)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_multiprocessing_main_handling.py", line 168, in _check_script
self._check_output(script_name, rc, out, err)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_multiprocessing_main_handling.py", line 159, in _check_output
self.assertEqual(err.decode('utf-8'), '')
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'Assertion failed: (here_addr < ts->c_stac[76 chars]1.\n' != ''
- Assertion failed: (here_addr < ts->c_stack_top), function _Py_InitializeRecursionLimits, file Python/ceval.c, line 531.
TracebackLegacyErrorCaretTests.test_anchors_for_simple_return_statements_are_elided) ... ok
TracebackCases.test_signatures) ... ok
Traceback (most recent call last):',
+ b' File "<string>", line 8, in <module>',
+ b' f2()',
+ b' ~~^^',
+ b' File "<string>", line 6, in f2',
+ b' f1()',
+ b' ~~^^',
+ b' File "<string>", line 4, in f1',
+ b' 1 / 0',
+ b' ~~^~~',
+ b'ZeroDivisionError: division by zero']
TracebackCases.test_format_base_exception_group) ... ok
TracebackTests.test_unencodable_filename) ... ok
TracebackErrorCaretTests.test_caret_for_call_with_spaces_and_parenthesis) ... ok
TracebackException.test_cause) ... ok
TracebackErrorCaretTests.test_caret_exception_group) ... ok
TracebackCases.test_format_exception_group_with_note) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_faulthandler.py", line 404, in test_dump_ext_modules
self.fail(f"Cannot find 'Extension modules:' in {stderr!r}")
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Cannot find 'Extension modules:' in 'Assertion failed: (here_addr < ts->c_stack_top), function _Py_InitializeRecursionLimits, file Python/ceval.c, line 531.'
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_repl.py", line 155, in test_close_stdin
self.assertEqual(process.returncode, 0)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: -6 != 0
TracebackLegacyErrorCaretTests.test_traceback_very_long_line) ... ok
TracebackLegacyErrorCaretTests.test_byte_offset_with_emojis_term_highlight) ... ok
TracebackLegacyErrorCaretTests.test_secondary_caret_not_elided) ... ok
TracebackLegacyErrorCaretTests.test_caret_multiline_expression_syntax_error) ... ok
TracebackCases.test_format_exception_group_multiple_exceptions) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_concurrent_futures/test_init.py", line 147, in test_spawn
self._test(ProcessPoolSpawnFailingInitializerTest)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_concurrent_futures/test_init.py", line 144, in _test
self.assertEqual(_resource_tracker._exitcode, 0)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: None != 0
TracebackErrorCaretTests.test_multiline_method_call_c) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_utf8_mode.py", line 131, in test_stdio
out = self.get_output('-X', 'utf8', '-c', code,
PYTHONIOENCODING='')
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_utf8_mode.py", line 35, in get_output
out = assert_python_ok(*args, **kw)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-X', 'utf8', '-c', '\nimport sys\nprint(f"stdin: {sys.stdin.encoding}/{sys.stdin.errors}")\nprint(f"stdout: {sys.stdout.encoding}/{sys.stdout.errors}")\nprint(f"stderr: {sys.stderr.encoding}/{sys.stderr.errors}")\n']
TracebackTests.test_syntax_error) ... ok
TracebackErrorCaretTests.test_multiline_method_call_a) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_concurrent_futures/util.py", line 55, in setUp
self.manager = self.get_context().Manager()
~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/context.py", line 57, in Manager
m.start()
~~~~~~~^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/managers.py", line 570, in start
self._address = reader.recv()
~~~~~~~~~~~^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/connection.py", line 256, in recv
buf = self._recv_bytes()
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/connection.py", line 447, in _recv_bytes
buf = self._recv(4)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/connection.py", line 416, in _recv
raise EOFError
EOFError
TracebackErrorCaretTests.test_specialization_variations) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_multiprocessing_main_handling.py", line 202, in test_script_compiled
self._check_script(pyc_file)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_multiprocessing_main_handling.py", line 168, in _check_script
self._check_output(script_name, rc, out, err)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_multiprocessing_main_handling.py", line 159, in _check_output
self.assertEqual(err.decode('utf-8'), '')
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'Assertion failed: (here_addr < ts->c_stac[76 chars]1.\n' != ''
- Assertion failed: (here_addr < ts->c_stack_top), function _Py_InitializeRecursionLimits, file Python/ceval.c, line 531.
TracebackFormat.test_format_stack) ... ok
TracebackLegacyErrorCaretTests.test_specialization_variations) ... ok
TracebackCases.test_bad_indentation) ... ok
TracebackTests.test_broken_submodule) ... ok
TracebackErrorCaretTests.test_caret_multiline_expression_bin_op) ... ok
TracebackCases.test_extract_stack) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_exceptions.py", line 2283, in test_assertion_error_location
self.assertEqual(result[-3:], expected)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Lists differ: ['Assertion failed: (here_addr < ts->c_stac[75 chars]31.'] != [' 1 > 2)', ' ^^^^^', 'AssertionError']
TracebackCases.test_format_exception_group_nested_with_notes) ... ok
TracebackLegacyErrorCaretTests.test_caret_for_call_unicode) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_audit.py", line 69, in test_pickle
self.do_test("test_pickle")
~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_audit.py", line 39, in do_test
self.fail(stderr)
~~~~~~~~~^^^^^^^^
AssertionError: Assertion failed: (here_addr < ts->c_stack_top), function _Py_InitializeRecursionLimits, file Python/ceval.c, line 531.
TracebackCases.test_no_caret_with_no_debug_ranges_flag_python_traceback) ... ok
TracebackCases.test_base_exception) ... ok
TracebackLegacyErrorCaretTests.test_caret_for_binary_operators_multiline) ... ok
TracebackTests.test_broken_from) ... ok
TracebackLegacyErrorCaretTests.test_many_lines_no_caret) ... ok
TracebackCases.test_nocaret) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/asyncio/base_subprocess.py", line 135, in __del__
_warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ResourceWarning: unclosed transport <_UnixSubprocessTransport pid=87745 returncode=-6 stdin=<_UnixWritePipeTransport closed fd=8 closed> stdout=<_UnixReadPipeTransport closed fd=9 closed>>
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_file_eintr.py", line 165, in test_readlines
self._test_reading(
~~~~~~~~~~~~~~~~~~^
data_to_write=b'hello\nworld!',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
read_and_verify_code=self._READING_CODE_TEMPLATE.format(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
read_method_name='readlines',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
expected=[b'hello\n', b'world!\n']))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_file_eintr.py", line 110, in _test_reading
self.fail_with_process_info('while awaiting a sign',
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
stderr=worm_sign)
^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_file_eintr.py", line 72, in fail_with_process_info
self.fail('Error from IO process %s:\nSTDOUT:\n%sSTDERR:\n%s\n' %
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(why, stdout.decode(), stderr.decode()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Error from IO process while awaiting a sign:
STDOUT:
STDERR:
Assertion f
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_c_locale_coercion.py", line 405, in _check_c_locale_coercion
self._check_child_encoding_details(var_dict,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
fs_encoding,
^^^^^^^^^^^^
...<2 lines>...
expected_warnings,
^^^^^^^^^^^^^^^^^^
coercion_expected)
^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_c_locale_coercion.py", line 229, in _check_child_encoding_details
result = EncodingDetails.get_child_details(env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_c_locale_coercion.py", line 155, in get_child_details
result.fail(py_cmd)
~~~~~~~~~~~^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-X', 'utf8=0', '-c', "import sys, os;print(sys.getfilesystemencoding());print(sys.stdin.encoding + ':' + sys.stdin.errors);print(sys.stdout.encoding + ':' + sys.stdout.errors);print(sys.stderr.encoding + ':' + sys.stderr.errors);print(os.environ.get('LANG', 'not set'));print(os.environ.get('LC_CTYPE', 'not set'));print(os.environ.get('LC_ALL', 'not set'))"]
TracebackFormat.test_print_exception_bad_type_python) ... ok
TracebackErrorCaretTests.test_secondary_caret_not_elided) ... ok
TracebackFormat.test_print_stack) ... ok
TracebackErrorCaretTests.test_caret_for_subscript) ... ok
TracebackLegacyErrorCaretTests.test_caret_for_binary_operators_with_unicode) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_asyncio/test_events.py", line 2208, in test_subprocess_stderr_redirect_to_stdout
self.assertStartsWith(proto.data[1], b'OUT:testERR:test')
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: b'Assertion failed: (here_addr < ts->c_stack_top), function _Py_InitializeRecurs [truncated]... doesn't start with b'OUT:testERR:test'
TracebackLegacyErrorCaretTests.test_many_lines_binary_op) ... ok
TracebackLegacyErrorCaretTests.test_multiline_method_call_a) ... ok
TracebackCases.test_print_last) ... ok
TracebackException.test_no_save_exc_type) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_lltrace.py", line 67, in test_lltrace_different_module
stdout = self.run_code("""
from test import test_lltrace
test_lltrace.__lltrace__ = 1
test_lltrace.example()
""")
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_lltrace.py", line 26, in run_code
status, stdout, stderr = assert_python_ok(os_helper.TESTFN)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-I', '@test_81461_tmpæ']
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_threading.py", line 1798, in test_daemon_threads_fatal_error
assert_python_ok("-c", script)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-I', '-c', "if 1:\n import _testcapi\n\n _testcapi.run_in_subinterp('if 1:\\n import os\\n import threading\\n import time\\n\\n def f():\\n # Make sure the daemon thread is still running when\\n # Py_EndInterpreter is called.\\n time.sleep(67.5)\\n threading.Thread(target=f, daemon=True).start()\\n ')\n "]
TracebackLegacyErrorCaretTests.test_caret_multiline_expression) ... ok
TracebackErrorCaretTests.test_caret_multiline_expression_syntax_error) ... ok
TracebackCases.test_format_exception_only_bad__str__) ... ok
TracebackCases.test_format_exception_group_with_cause) ... ok
TracebackCases.test_format_exception_only_exc) ... ok
TracebackLegacyErrorCaretTests.test_caret_for_subscript_unicode) ... ok
TracebackCases.test_format_exception_group_with_tracebacks) ... ok
TracebackException.test_smoke_user_exception) ... ok
TracebackFormat.test_exception_group_deep_recursion_traceback) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_gettext.py", line 937, in test_lazy_import
ensure_lazy_imports("gettext", {"re", "warnings", "locale"})
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/import_helper.py", line 335, in ensure_lazy_imports
assert_python_ok("-S", "-c", script)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-I', '-S', '-c', '\nimport sys\nmodules_to_block = frozenset({\'warnings\', \'locale\', \'re\'})\nif unexpected := modules_to_block & sys.modules.keys():\n startup = ", ".join(unexpected)\n raise AssertionError(f\'unexpectedly imported at startup: {startup}\')\n\nimport gettext\nif unexpected := modules_to_block & sys.modules.keys():\n after = ", ".join(unexpected)\n raise AssertionError(f\'unexpectedly imported after importing gettext: {after}\')\n']
TracebackErrorCaretTests.test_caret_for_call) ... ok
TracebackCases.test_format_exception_group_explicit_class) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_regrtest.py", line 1894, in test_unraisable_exc
output = self.run_tests("--fail-env-changed", "-v", testname,
exitcode=EXITCODE_ENV_CHANGED)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_regrtest.py", line 972, in run_tests
return self.run_python(cmdargs, **kw)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_regrtest.py", line 819, in run_python
proc = self.run_command(cmd, **kw)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_regrtest.py", line 807, in run_command
self.fail(msg)
~~~~~~~~~^^^^^
AssertionError: Command ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-I', '-m', 'test', '--testdir=/tmp/test_python_kw7iiqnq/tmpu98d9hm5', '--fail-env-changed', '-v', 'test_regrtest_noop276'] failed with exit code -6, but exit code 3 expected!
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line 3352, in test_worker_finalization_via_atexit_handler_of_multiprocessing
rc, out, err = test.support.script_helper.assert_python_ok('-c', cmd)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-I', '-c', 'if 1:\n from multiprocessing import Pool\n problem = None\n class A:\n def __init__(self):\n self.pool = Pool(processes=1)\n def test():\n global problem\n problem = A()\n problem.pool.map(float, tuple(range(10)))\n if __name__ == "__main__":\n test()\n ']
TracebackException.test_smoke_builtin) ... ok
TracebackErrorCaretTests.test_many_lines) ... ok
TracebackErrorCaretTests.test_line_with_unicode) ... ok
TracebackCases.test_format_exception_group_without_show_group) ... ok
TracebackException.test_compact_no_cause) ... ok
TracebackLegacyErrorCaretTests.test_caret_for_subscript_with_spaces_and_parenthesis) ... ok
TracebackCases.test_print_exception_exc) ... ok
TracebackErrorCaretTests.test_byte_offset_with_wide_characters_middle) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_tools/test_msgfmt.py", line 248, in test_help
res = assert_python_ok(msgfmt_py, option)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-I', PosixPath('/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Tools/i18n/msgfmt.py'), '-h']
TracebackException.test_unhashable) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_regrtest.py", line 1803, in test_no_test_ran_some_test_exist_some_not
output = self.run_tests(testname, testname2, "-m", "nosuchtest",
"-m", "test_other_bug", exitcode=0)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_regrtest.py", line 972, in run_tests
return self.run_python(cmdargs, **kw)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_regrtest.py", line 819, in run_python
proc = self.run_command(cmd, **kw)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_regrtest.py", line 807, in run_command
self.fail(msg)
~~~~~~~~~^^^^^
AssertionError: Command ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-I', '-m', 'test', '--testdir=/tmp/test_python_kw7iiqnq/tmpldoc0ec8', 'test_regrtest_noop250', 'test_regrtest_noop251', '-m', 'nosuchtest', '-m', 'test_other_bug'] failed with exit code -6, but exit code 0 expected!
TracebackLegacyErrorCaretTests.test_byte_offset_with_wide_characters_middle) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_hash.py", line 193, in test_randomized_hash
run1 = self.get_hash(self.repr_, seed='random')
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_hash.py", line 185, in get_hash
out = assert_python_ok(
'-c', self.get_hash_command(repr_),
**env)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-c', 'import datetime; print(hash(datetime.time(0, 0)))']
TracebackException.test_comparison_params_variations) ... ok
TracebackLegacyErrorCaretTests.test_byte_offset_with_wide_characters_term_highlight) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 228, in _ensure_running_and_write
self._write(to_send)
~~~~~~~~~~~^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 266, in _write
nbytes = os.write(self._fd, msg)
BrokenPipeError: [Errno 32] Broken pipe
TracebackErrorCaretTests.test_multiline_method_call_b) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/audit-tests.py", line 761, in <module>
globals()[test](*sys.argv[2:])
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/audit-tests.py", line 609, in test_time
time.sleep(0)
~~~~~~~~~~^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/audit-tests.py", line 606, in hook
raise AssertionError('hook failed')
AssertionError: hook failed
k
TracebackLegacyErrorCaretTests.test_caret_in_type_annotation) ... ok
TracebackCases.test_print_traceback_at_exit) ... ok
TracebackErrorCaretTests.test_traceback_very_long_line) ... ok
TracebackException.test_comparison_equivalent_exceptions_are_equal) ... ok
TracebackTests.test_nonexistent_module_nested) ... ok
TracebackLegacyErrorCaretTests.test_caret_for_binary_operators_multiline_two_char) ... ok
TracebackTests.test_import_bug) ... ok
TracebackLegacyErrorCaretTests.test_memory_error) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_calendar.py", line 1210, in test_option_spacing
output = run('--spacing', '8', '2004')
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_calendar.py", line 1100, in run_cmd_ok
return assert_python_ok('-m', 'calendar', *args)[1]
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-I', '-m', 'calendar', '--spacing', '8', '2004']
TracebackFormat.test_unhashable) ... ok
TracebackErrorCaretTests.test_anchors_for_simple_assign_statements_are_elided) ... ok
TracebackException_ExceptionGroups.test_comparison) ... ok
TracebackLegacyErrorCaretTests.test_many_lines) ... ok
TracebackTests.test_broken_parent_from) ... ok
Traceback (test.test_exceptions.ExceptionTests.testWithTraceback) ... ok
TracebackLegacyErrorCaretTests.test_caret_for_call) ... ok
TracebackErrorCaretTests.test_caret_for_call_unicode) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_asyncio/test_tasks.py", line 3359, in test_env_var_debug
sts, stdout, stderr = assert_python_ok('-E', '-c', code,
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
PYTHONASYNCIODEBUG='1',
^^^^^^^^^^^^^^^^^^^^^^^
PYTHONDEVMODE='')
^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-E', '-c', 'import asyncio.coroutines\nprint(asyncio.coroutines._is_debug_mode())']
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
cache[rtype].remove(name)
~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: '/mp-c2vr7aso'
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
cache[rtype].remove(name)
~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: '/mp-4ehta2dx'
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
cache[rtype].remove(name)
~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: '/mp-jqj9dpwb'
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
cache[rtype].remove(name)
~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: '/mp-qj1rwbdm'
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
cache[rtype].remove(name)
~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: '/mp-godvqri1'
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
cache[rtype].remove(name)
~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: '/mp-xirjqh57'
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
cache[rtype].remove(name)
~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: '/mp-k6d_x_pj'
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line 347, in main
cache[rtype].remove(name)
~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: '/mp-f_ivjop_'
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_subprocess.py", line 1271, in test_no_leaking
self.assertEqual(data, b"lime")
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
AssertionError: b'' != b'lime'
TracebackLegacyErrorCaretTests.test_caret_for_subscript) ... ok
TracebackException.test_no_locals) ... ok
TracebackException_ExceptionGroups.test_exception_group_format_exception_only) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/__init__.py", line 847, in gc_collect
gc.collect()
~~~~~~~~~~^^
ResourceWarning: unclosed <socket.socket fd=10, family=2, type=1, proto=6, laddr=('127.0.0.1', 48553), raddr=('127.0.0.1', 48554)>
Task was destroyed but it is pending!
task: <Task pending name='Task-803' coro=<BaseSelectorEventLoop._accept_connection2() done, defined at /buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/asyncio/selector_events.py:217> wait_for=<Future pending cb=[Task.task_wakeup()]>>
Warning -- Unraisable exception
Exception ignored while calling deallocator <function _SelectorTransport.__del__ at 0x8415aea50>:
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/asyncio/selector_events.py", line 873, in __del__
_warn(f"unclosed transport {self!r}", ResourceWarning, source=self)
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ResourceWarning: unclosed transport <_SelectorSocketTransport closing fd=10>
k
TracebackLegacyErrorCaretTests.test_caret_for_binary_operators_two_char) ... ok
TracebackCases.test_exception_is_None) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line 7406, in test_that_shared_memory_name_with_colons_has_no_resource_tracker_errors
rc, out, err = assert_python_ok("-c", test_script)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-I', '-c', '\nimport sys\nfrom multiprocessing import shared_memory\nimport time\n\n# Test various patterns of colons in names\ntest_names = [\n "a:b",\n "a:b:c",\n "test:name:with:many:colons",\n ":starts:with:colon",\n "ends:with:colon:",\n "::double::colons::",\n "name\\nwithnewline",\n "name-with-trailing-newline\\n",\n "\\nname-starts-with-newline",\n "colons:and\\nnewlines:mix",\n "multi\\nline\\nname",\n]\n\nfor name in test_names:\n try:\n shm = shared_memory.SharedMemory(create=True, size=100, name=name)\n shm.buf[:5] = b\'hello\' # Write something to the shared memory\n shm.close()\n shm.unlink()\n\n except Exception as e:\n print(f"Error with name \'{name}\': {e}", file=sys.stderr)\n sys.exit(1)\n\nprint("SUCCESS")\n']
TracebackLegacyErrorCaretTests.test_traceback_specialization_with_syntax_error) ... ok
TracebackErrorCaretTests.test_many_lines_binary_op) ... ok
TracebackException.test_context) ... ok
TracebackCases.test_format_exception_group_multiline2_messages) ... ok
TracebackException.test_print) ... ok
TracebackException.test_from_exception) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_threading.py", line 879, in test_main_thread_during_shutdown
_, out, err = assert_python_ok("-c", code)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-I', '-c', 'if 1:\n import gc, threading\n\n main_thread = threading.current_thread()\n assert main_thread is threading.main_thread() # sanity check\n\n class RefCycle:\n def __init__(self):\n self.cycle = self\n\n def __del__(self):\n print("GC:",\n threading.current_thread() is main_thread,\n threading.main_thread() is main_thread,\n threading.enumerate() == [main_thread])\n\n RefCycle()\n gc.collect() # sanity check\n x = RefCycle()\n ']
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_cmd_line_script.py", line 527, in test_dash_m_init_traceback
err = self.check_dash_m_failure('test_pkg')
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_cmd_line_script.py", line 461, in check_dash_m_failure
self.assertEqual(rc, 1)
~~~~~~~~~~~~~~~~^^^^^^^
AssertionError: -6 != 1
TracebackErrorCaretTests.test_caret_for_binary_operators_multiline) ... ok
TracebackErrorCaretTests.test_byte_offset_with_wide_characters_term_highlight) ... ok
TracebackErrorCaretTests.test_many_lines_no_caret) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_tempfile.py", line 1885, in test_del_on_shutdown
rc, out, err = script_helper.assert_python_ok("-c", code)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-I', '-c', 'if True:\n import builtins\n import os\n import shutil\n import sys\n import tempfile\n import warnings\n\n tmp = tempfile.TemporaryDirectory(dir=\'/tmp/test_python_z5x9htol/fxe1jewc\')\n sys.stdout.buffer.write(tmp.name.encode())\n\n tmp2 = os.path.join(tmp.name, \'test_dir\')\n os.mkdir(tmp2)\n with open(os.path.join(tmp2, "test0.txt"), "w") as f:\n f.write("Hello world!")\n\n os.tmp = tmp\n\n warnings.filterwarnings("always", category=ResourceWarning)\n ']
TracebackErrorCaretTests.test_memory_error) ... ok
TracebackLegacyErrorCaretTests.test_caret_multiline_expression_bin_op) ... ok
TracebackErrorCaretTests.test_caret_for_subscript_multiline) ... ok
Traceback.test_colorized_syntax_error) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_os/test_posix.py", line 2083, in test_setsigdef
support.wait_process(pid, exitcode=-signal.SIGUSR1)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/__init__.py", line 2300, in wait_process
raise AssertionError(f"process {pid} exited with code {exitcode2}, "
f"but exit code {exitcode} is expected")
AssertionError: process 99609 exited with code -6, but exit code -30 is expected
TracebackErrorCaretTests.test_caret_for_binary_operators_with_spaces_and_parenthesis) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line 371, in _run_finalizers
finalizer()
~~~~~~~~~^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line 295, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line 86, in _cleanup
sem_unlink(name)
~~~~~~~~~~^^^^^^
FileNotFoundError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line 371, in _run_finalizers
finalizer()
~~~~~~~~~^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line 295, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line 86, in _cleanup
sem_unlink(name)
~~~~~~~~~~^^^^^^
FileNotFoundError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line 371, in _run_finalizers
finalizer()
~~~~~~~~~^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line 295, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line 86, in _cleanup
sem_unlink(name)
~~~~~~~~~~^^^^^^
FileNotFoundError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line 371, in _run_finalizers
finalizer()
~~~~~~~~~^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line 295, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line 86, in _cleanup
sem_unlink(name)
~~~~~~~~~~^^^^^^
FileNotFoundError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line 371, in _run_finalizers
finalizer()
~~~~~~~~~^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line 295, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line 86, in _cleanup
sem_unlink(name)
~~~~~~~~~~^^^^^^
FileNotFoundError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line 371, in _run_finalizers
finalizer()
~~~~~~~~~^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line 295, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line 86, in _cleanup
sem_unlink(name)
~~~~~~~~~~^^^^^^
FileNotFoundError: [Errno 2] No such file or directory
TracebackLegacyErrorCaretTests.test_caret_for_binary_operators_with_spaces_and_parenthesis) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_site.py", line 580, in test_lazy_imports
import_helper.ensure_lazy_imports("site", [
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
"io",
^^^^^
...<4 lines>...
"textwrap",
^^^^^^^^^^^
])
^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/import_helper.py", line 335, in ensure_lazy_imports
assert_python_ok("-S", "-c", script)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-I', '-S', '-c', '\nimport sys\nmodules_to_block = frozenset({\'warnings\', \'io\', \'atexit\', \'textwrap\', \'traceback\', \'locale\'})\nif unexpected := modules_to_block & sys.modules.keys():\n startup = ", ".join(unexpected)\n raise AssertionError(f\'unexpectedly imported at startup: {startup}\')\n\nimport site\nif unexpected := modules_to_block & sys.modules.keys():\n after = ", ".join(unexpected)\n raise AssertionError(f\'unexpectedly imported after importing site: {after}\')\n']
TracebackException.test_traceback_header) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_pydoc/test_pydoc.py", line 1264, in test_badimport
self.assertEqual(expected, result)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
AssertionError: "problem in testmod_xyzzy - ModuleNotFoun[35 chars]ere'" != ''
- problem in testmod_xyzzy - ModuleNotFoundError: No module named 'i_am_not_here'
TracebackErrorCaretTests.test_anchors_for_simple_return_statements_are_elided) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_tarfile.py", line 2970, in test_create_command_compressed
out = self.tarfilecmd('-c', tar_name, *files)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_tarfile.py", line 2809, in tarfilecmd
rc, out, err = script_helper.assert_python_ok('-m', 'tarfile', *args,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
**kwargs)
^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-I', '-m', 'tarfile', '-c', '/buildbot/buildarea/3.x.ware-freebsd.refleak/build/build/test_python_80933æ/@test_80933_tmpæ-tardir/tmp.tar.bz2', '/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/tokenizedata/tokenize_tests.txt', '/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/tokenizedata/tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt']
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_concurrent_futures/test_shutdown.py", line 92, in test_cancel_futures
fs = [self.executor.submit(time.sleep, .1) for _ in range(50)]
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/concurrent/futures/process.py", line 813, in submit
raise BrokenProcessPool(self._broken)
concurrent.futures.process.BrokenProcessPool: A child process terminated abruptly, the process pool is not usable anymore
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/process.py", line 320, in _bootstrap
self.run()
~~~~~~~~^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line 524, in _sleep_some_event
time.sleep(100)
~~~~~~~~~~^^^^^
KeyboardInterrupt
k
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_tempfile.py", line 1885, in test_del_on_shutdown
rc, out, err = script_helper.assert_python_ok("-c", code)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-I', '-c', 'if True:\n import builtins\n import os\n import shutil\n import sys\n import tempfile\n import warnings\n\n tmp = tempfile.TemporaryDirectory(dir=\'/tmp/test_python_rv39oogh/19hm6wwc\')\n sys.stdout.buffer.write(tmp.name.encode())\n\n tmp2 = os.path.join(tmp.name, \'test_dir\')\n os.mkdir(tmp2)\n with open(os.path.join(tmp2, "test0.txt"), "w") as f:\n f.write("Hello world!")\n\n warnings.tmp = tmp\n\n warnings.filterwarnings("always", category=ResourceWarning)\n ']
TracebackCases.test_encoded_file) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_cmd_line.py", line 545, in test_no_stdin
self._test_no_stdio(['stdin'])
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_cmd_line.py", line 541, in _test_no_stdio
self.assertEqual(err, b'')
~~~~~~~~~~~~~~~~^^^^^^^^^^
AssertionError: b'Assertion failed: (here_addr < ts->c_stac[76 chars]1.\n' != b''
TracebackErrorCaretTests.test_byte_offset_multiline) ... ok
TracebackErrorCaretTests.test_caret_multiline_expression) ... ok
TracebackErrorCaretTests.test_caret_for_subscript_with_spaces_and_parenthesis) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_code.py", line 579, in test_endline_and_columntable_none_when_no_debug_ranges_env
assert_python_ok('-c', code, PYTHONNODEBUGRANGES='1')
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-c', '\ndef f():\n pass\n\npositions = f.__code__.co_positions()\nfor line, end_line, column, end_column in positions:\n assert line == end_line\n assert column is None\n assert end_column is None\n']
TracebackCases.test_clear) ... ok
Traceback.test_colorized_traceback_from_exception_group) ... ok
TracebackLegacyErrorCaretTests.test_line_with_unicode) ... ok
TracebackTests.test_exec_failure_nested) ... ok
TracebackErrorCaretTests.test_byte_offset_with_emojis_term_highlight) ... ok
TracebackLegacyErrorCaretTests.test_decorator_application_lineno_correct) ... ok
Traceback.test_colorized_traceback) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/__init__.py", line 2934, in wrapper
return func(*args, **kwargs)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_json/test_tool.py", line 95, in test_stdin_stdout
process = subprocess.run(args, input=self.data, capture_output=True, text=True, check=True)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/subprocess.py", line 576, in run
raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '('/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-m', 'json.tool')' died with <Signals.SIGABRT: 6>.
TracebackErrorCaretTests.test_basic_caret) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line 2266, in test_wait_return
self.run_threads(self._test_wait_return_f, (self.barrier, queue))
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line 2218, in run_threads
f(*args)
~^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line 2257, in _test_wait_return_f
res = barrier.wait()
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/managers.py", line 1118, in wait
return self._callmethod('wait', (timeout,))
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/managers.py", line 848, in _callmethod
raise convert_to_error(kind, result)
threading.BrokenBarrierError
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/process.py", line 320, in _bootstrap
self.run()
~~~~~~~~^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line 2165, in task
self.f(*self.args)
~~~~~~^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line 2257, in _test_wait_return_f
res = barrier.wait()
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/managers.py", line 1118, in wait
return self._callmethod('wait', (timeout,))
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/managers.py", line 848, in _callmethod
raise convert_to_error(kind, result)
threading.BrokenBarrierError
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/process.py", line 320, in _bootstrap
self.run()
~~~~~~~~^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line 2165, in task
self.f(*self.args)
~~~~~~^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line 2257, in _test_wait_return_f
res = barrier.wait()
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/managers.py", line 1118, in wait
return self._callmethod('wait', (timeout,))
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/managers.py", line 848, in _callmethod
raise convert_to_error(kind, result)
threading.BrokenBarrierError
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/process.py", line 320, in _bootstrap
self.run()
~~~~~~~~^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line 2165, in task
self.f(*self.args)
~~~~~~^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line 2257, in _test_wait_return_f
res = barrier.wait()
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/managers.py", line 1118, in wait
return self._callmethod('wait', (timeout,))
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/managers.py", line 848, in _callmethod
raise convert_to_error(kind, result)
threading.BrokenBarrierError
ERROR
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_multiprocessing_main_handling.py", line 236, in test_zipfile_compiled
self._check_script(zip_name)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_multiprocessing_main_handling.py", line 167, in _check_script
rc, out, err = assert_python_ok(*run_args, __isolated=False)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-E', '/tmp/test_python_evop07t7/tmpn9xrobwy/test_zip.zip', 'fork']
TracebackErrorCaretTests.test_wide_characters_unicode_with_problematic_byte_offset) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_os/test_os.py", line 2364, in test_urandom_subprocess
data2 = self.get_urandom_subprocess(16)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_os/test_os.py", line 2357, in get_urandom_subprocess
out = assert_python_ok('-c', code)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-I', '-c', 'import os, sys\ndata = os.urandom(16)\nsys.stdout.buffer.write(data)\nsys.stdout.buffer.flush()']
TracebackErrorCaretTests.test_traceback_specialization_with_syntax_error) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/process.py", line 320, in _bootstrap
self.run()
~~~~~~~~^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line 523, in _sleep_some_event
event.set()
~~~~~~~~~^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line 344, in set
with self._cond:
^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line 242, in __exit__
return self._lock.__exit__(*args)
~~~~~~~~~~~~~~~~~~~^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line 100, in __exit__
return self._semlock.__exit__(*args)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyboardInterrupt
k
TracebackErrorCaretTests.test_byte_offset_wide_chars_subscript) ... ok
TracebackLegacyErrorCaretTests.test_multiline_method_call_b) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_import/__init__.py", line 2426, in test_single_init_extension_compat
self.check_incompatible_fresh(module, isolated=True)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_import/__init__.py", line 2374, in check_incompatible_fresh
_, out, err = script_helper.assert_python_ok('-c', textwrap.dedent(f'''
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
import _testinternalcapi, sys
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<6 lines>...
assert ret == 0, ret
^^^^^^^^^^^^^^^^^^^^
'''))
^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-I', '-c', '\nimport _testinternalcapi, sys\nassert \'_testsinglephase\' not in sys.modules, \'_testsinglephase\'\nconfig = type(sys.implementation)(**{\'allow_fork\': False, \'allow_exec\': False, \'allow_threads\': True, \'allow_daemon_threads\': False, \'use_main_obmalloc\': False, \'gil\': \'own\', \'check_multi_interp_extensions\': True})\nret = _testinternalcapi.run_in_subinterp_with_config(\n "\\nimport os, sys\\n\\ntry:\\n import _testsinglephase\\nexcept ImportError as exc:\\n text = \'ImportError: \' + str(exc)\\nelse:\\n text = \'okay\'\\nos.write(sys.stdout.fileno(), text.encode(\'utf-8\'))\\n",\n config,\n)\nassert ret == 0, ret\n']
Traceback (test.test_exceptions.ExceptionTests.testInvalidTraceback) ... ok
TracebackCases.test_format_exception_group_syntax_error) ... ok
TracebackErrorCaretTests.test_decorator_application_lineno_correct) ... ok
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_threading.py", line 1606, in test_thread_from_thread
rc, out, err = assert_python_ok('-c', script)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-I', '-c', 'if True:\n import threading\n import time\n\n def thread2():\n time.sleep(0.05)\n print("OK")\n\n def thread1():\n time.sleep(0.05)\n t2 = threading.Thread(target=thread2)\n t2.start()\n\n t = threading.Thread(target=thread1)\n t.start()\n # do not join() -- the interpreter waits for non-daemon threads to\n # finish.\n ']
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_argparse.py", line 7113, in test_directory_in_zipfile_compiled
self.test_directory_in_zipfile(compiled=True)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_argparse.py", line 7110, in test_directory_in_zipfile
self.check_usage(f'{py} {dirname}', dirname)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_argparse.py", line 7050, in check_usage
res = script_helper.assert_python_ok('-Xutf8', *args, '-h', **kwargs)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 182, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 167, in _assert_python
res.fail(cmd_line)
~~~~~~~~^^^^^^^^^^
File "/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line 80, in fail
raise AssertionError(f"Process return code is {exitcode}\n"
...<10 lines>...
f"---")
AssertionError: Process return code is -6 (SIGABRT)
command line: ['/buildbot/buildarea/3.x.ware-freebsd.refleak/build/python', '-X', 'faulthandler', '-I', '-Xutf8', 'packageæ/test_zip.zip/package/subpackage', '-h']
TracebackErrorCaretTests.test_caret_in_type_annotation) ... ok
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Sorry, @vstinner, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker b99db92dde38b17c3fba3b5db76a383ceddfce49 3.14
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
encukou
added a commit
to encukou/cpython
that referenced
this pull request
Nov 17, 2025
…honGH-139668)
Add PyUnstable_ThreadState_SetStackProtection() and
PyUnstable_ThreadState_ResetStackProtection() functions
to set the stack base address and stack size of a Python
thread state.
Co-authored-by: Petr Viktorin <[email protected]>
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
hroncok
pushed a commit
to hroncok/cpython
that referenced
this pull request
Nov 24, 2025
…hon#139668)
Add PyUnstable_ThreadState_SetStackProtection() and
PyUnstable_ThreadState_ResetStackProtection() functions
to set the stack base address and stack size of a Python
thread state.
Co-authored-by: Petr Viktorin <[email protected]>
(cherry picked from commit b99db92)
StanFromIreland
pushed a commit
to StanFromIreland/cpython
that referenced
this pull request
Dec 6, 2025
…hon#139668)
Add PyUnstable_ThreadState_SetStackProtection() and
PyUnstable_ThreadState_ResetStackProtection() functions
to set the stack base address and stack size of a Python
thread state.
Co-authored-by: Petr Viktorin <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|