Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-139653: Add PyUnstable_ThreadState_SetStackProtection()#139668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 13 commits intopython:mainfromvstinner:setstack
Nov 13, 2025

Conversation

@vstinner
Copy link
Member

@vstinnervstinner commentedOct 6, 2025
edited
Loading

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/

@encukou
Copy link
Member

This generally matches whatI came up with :)

Thestart argument might be confusing, as the place usage growstowards.
Why not usebottom &top as in the internals?

@vstinner
Copy link
MemberAuthor

This generally matches whatI came up with :)

Good!

The start argument might be confusing, as the place usage grows towards. Why not use bottom & top as in the internals?

APIs likemake_fcontext() orsigaltstack() usevoid *stack_start_address andsize_t stack_size.

pthread_attr_setstack() andpthread_attr_getstack() also usevoid *stack_start_address andsize_t stack_size.

@vstinner
Copy link
MemberAuthor

cc@markshannon@zooba

@encukou
Copy link
Member

On systems like musl that just settop 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, whichshould 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 havePyUnstable_ThreadState_ResetStack return to that?

markshannon
markshannon previously requested changesOct 7, 2025
Copy link
Member

@markshannonmarkshannon left a 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.

@bedevere-app
Copy link

When you're done making the requested changes, leave the comment:I have made the requested changes; please review again.

@vstinner
Copy link
MemberAuthor

I have made the requested changes; please review again.

@bedevere-app
Copy link

Thanks for making the requested changes!

@markshannon: please review the changes made to this pull request.

@markshannon
Copy link
Member

markshannon commentedOct 7, 2025
edited
Loading

Can we please merge#139294 first before we add stuff on top of it?

@vstinner
Copy link
MemberAuthor

Can we please merge#139294 first before we add stuff on top of it?

Yes. I approved your PR.

Add PyUnstable_ThreadState_SetStack() andPyUnstable_ThreadState_ResetStack() functions to set the stack baseaddress and stack size of a Python thread state.
@vstinner
Copy link
MemberAuthor

Can we please merge#139294 first before we add stuff on top of it?

PRgh-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).

@vstinner
Copy link
MemberAuthor

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

@vstinner
Copy link
MemberAuthor

@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.

Copy link
Member

@encukouencukou left a 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 thinkPyUnstable_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.

@stefanor
Copy link
Contributor

Happy to test on HPPA either way around!

gpshead reacted with heart emoji

@vstinner
Copy link
MemberAuthor

I plan to merge this change tomorrow, unless someone has a good reason to not merge it.

encukou reacted with thumbs up emoji

@vstinner
Copy link
MemberAuthor

@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.

@vstinnervstinner merged commitb99db92 intopython:mainNov 13, 2025
59 of 60 checks passed
@vstinnervstinner deleted the setstack branchNovember 13, 2025 16:30
@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure⚠️⚠️⚠️

Hi! The buildbotAMD64 FreeBSD Refleaks 3.x (tier-3) has failed when building commitb99db92.

What do you need to do:

  1. Don't panic.
  2. Checkthe buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. 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.
  4. Check if the failure is related to this commit (b99db92) or if it is a false positive.
  5. 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) ... okTracebackLegacyErrorCaretTests.test_byte_offset_wide_chars_subscript) ... okTracebackErrorCaretTests.test_caret_for_binary_operators_multiline_two_char) ... okTracebackErrorCaretTests.test_caret_for_binary_operators_with_unicode) ... okTracebackErrorCaretTests.test_caret_for_binary_operators) ... okTracebackLegacyErrorCaretTests.test_byte_offset_multiline) ... okTracebackException.test_lookup_lines) ... okTracebackFormat.test_traceback_format_with_cleared_frames) ... okTracebackException.test_locals) ... okTracebackLegacyErrorCaretTests.test_anchors_for_simple_assign_statements_are_elided) ... okTracebackException_ExceptionGroups.test_exception_group_construction) ... okTracebackException_ExceptionGroups.test_exception_group_format) ... okTracebackException.test_dont_swallow_cause_or_context_of_falsey_exception) ... okTracebackCases.test_recursion_error_during_traceback) ... okTracebackException.test_long_context_chain) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_traceback.py", line1785, intest_keyword_suggestions_from_command_stringself.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", line2424, intest_single_init_extension_compatself.check_incompatible_fresh(module)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_import/__init__.py", line2374, incheck_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", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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) ... okTraceback.test_colorized_traceback_is_the_default) ... okTracebackException.test_limit) ... okTracebackException_ExceptionGroups.test_max_group_width) ... okTracebackTests.test_exec_failure) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line5563, intest_wait_slowself.test_wait(True)~~~~~~~~~~~~~~^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/contextlib.py", line85, ininnerreturn func(*args,**kwds)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line5514, intest_waitself.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) ... okTracebackLegacyErrorCaretTests.test_caret_for_binary_operators) ... okTracebackCases.test_format_exception_group_multiline_messages) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_hash.py", line194, intest_randomized_hash    run2=self.get_hash(self.repr_,seed='random')  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_hash.py", line185, inget_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", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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", line2934, inwrapperreturn func(*args,**kwargs)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_eof.py", line142, intest_line_continuation_EOF_from_file_bpo2180self.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) ... okTracebackFormat.test_stack_format) ... okTracebackCases.test_format_exception_group_syntax_error_with_custom_values) ... okTracebackErrorCaretTests.test_caret_for_call_multiline) ... okTracebackLegacyErrorCaretTests.test_caret_for_binary_operators_multiline_with_unicode) ... okTracebackException.test_no_refs_to_exception_and_traceback_objects) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line347, inmain    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", line347, inmain    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", line347, inmain    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", line347, inmain    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", line347, inmain    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", line347, inmain    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", line347, inmain    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", line347, inmain    cache[rtype].remove(name)~~~~~~~~~~~~~~~~~~~^^^^^^KeyError:'/mp-pk28v8kr'TracebackFormat.test_exception_group_deep_recursion_capi) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_zoneinfo/test_zoneinfo.py", line1983, intest_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", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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", line371, in_run_finalizers    finalizer()~~~~~~~~~^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line295, in__call__    res=self._callback(*self._args,**self._kwargs)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line86, in_cleanup    sem_unlink(name)~~~~~~~~~~^^^^^^FileNotFoundError:[Errno 2] No such file or directoryTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line371, in_run_finalizers    finalizer()~~~~~~~~~^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line295, in__call__    res=self._callback(*self._args,**self._kwargs)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line86, in_cleanup    sem_unlink(name)~~~~~~~~~~^^^^^^FileNotFoundError:[Errno 2] No such file or directoryTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line371, in_run_finalizers    finalizer()~~~~~~~~~^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line295, in__call__    res=self._callback(*self._args,**self._kwargs)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line86, in_cleanup    sem_unlink(name)~~~~~~~~~~^^^^^^FileNotFoundError:[Errno 2] No such file or directoryTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line371, in_run_finalizers    finalizer()~~~~~~~~~^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line295, in__call__    res=self._callback(*self._args,**self._kwargs)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line86, in_cleanup    sem_unlink(name)~~~~~~~~~~^^^^^^FileNotFoundError:[Errno 2] No such file or directoryTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line371, in_run_finalizers    finalizer()~~~~~~~~~^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line295, in__call__    res=self._callback(*self._args,**self._kwargs)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line86, in_cleanup    sem_unlink(name)~~~~~~~~~~^^^^^^FileNotFoundError:[Errno 2] No such file or directoryTracebackErrorCaretTests.test_caret_for_subscript_unicode) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line295, in__call__    res=self._callback(*self._args,**self._kwargs)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line87, in_cleanup    unregister(name,"semaphore")~~~~~~~~~~^^^^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line263, inunregisterself._send('UNREGISTER', name, rtype)~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line290, in_sendself._ensure_running_and_write(msg)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line230, in_ensure_running_and_writeself._teardown_dead_process()~~~~~~~~~~~~~~~~~~~~~~~~~~~^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line159, 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", line347, inmain    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", line347, inmain    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", line347, inmain    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", line347, inmain    cache[rtype].remove(name)~~~~~~~~~~~~~~~~~~~^^^^^^KeyError:'/mp-k2er1of0'kTracebackCases.test_caret) ... okTracebackException_ExceptionGroups.test_dont_swallow_subexceptions_of_falsey_exceptiongroup) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/__init__.py", line2934, inwrapperreturn func(*args,**kwargs)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_sys.py", line1264, intest_sys_tracebacklimit    check(10, traceback)~~~~~^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_sys.py", line1249, incheckself.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) ... okTracebackErrorCaretTests.test_caret_for_binary_operators_multiline_with_unicode) ... okTracebackCases.test_print_exception) ... okTracebackTests.test_nonexistent_module) ... okTraceback (most recent call last):'TracebackCases.test_no_caret_with_no_debug_ranges_flag) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_pdb.py", line3979, intest_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", line3478, in_run_pdbself.assertEqual(~~~~~~~~~~~~~~~~^        proc.returncode,^^^^^^^^^^^^^^^^        expected_returncode,^^^^^^^^^^^^^^^^^^^^f"Unexpected return code\nstdout:{stdout}\nstderr:{stderr}"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^    )^AssertionError:-6 != 0 : Unexpected return codestdout: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", line209, intest_directoryself._check_script(script_dir)~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_multiprocessing_main_handling.py", line168, in_check_scriptself._check_output(script_name, rc, out, err)~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_multiprocessing_main_handling.py", line159, in_check_outputself.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", line6264, intest_resource_tracker_exit_codeself._test_resource_tracker_leak_resources(~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^        cleanup=cleanup,^^^^^^^^^^^^^^^^    )^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line6254, in_test_resource_tracker_leak_resourcesself.assertEqual(tracker._exitcode, expected_exit_code)~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^AssertionError:-6 != 1TracebackLegacyErrorCaretTests.test_caret_for_call_multiline) ... okTracebackLegacyErrorCaretTests.test_multiline_method_call_c) ... okTracebackTests.test_broken_parent) ... okTracebackLegacyErrorCaretTests.test_caret_for_subscript_multiline) ... okTracebackFormat.test_traceback_format) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_trace.py", line557, intest_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", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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) ... okTracebackException_ExceptionGroups.test_exception_group_format_exception_onlyi_recursive) ... okTracebackException_ExceptionGroups.test_max_group_depth) ... okTracebackException.test_comparison_basic) ... okTracebackLegacyErrorCaretTests.test_caret_for_call_with_spaces_and_parenthesis) ... okTracebackFormat.test_recursive_traceback) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line5563, intest_wait_slowself.test_wait(True)~~~~~~~~~~~~~~^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/contextlib.py", line85, ininnerreturn func(*args,**kwds)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line5514, intest_waitself.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) ... okTracebackFormat.test_print_exception_bad_type_capi) ... okTracebackCases.test_format_exception_group) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_multiprocessing_main_handling.py", line236, intest_zipfile_compiledself._check_script(zip_name)~~~~~~~~~~~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_multiprocessing_main_handling.py", line168, in_check_scriptself._check_output(script_name, rc, out, err)~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_multiprocessing_main_handling.py", line159, in_check_outputself.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) ... okTracebackCases.test_signatures) ... okTraceback (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) ... okTracebackTests.test_unencodable_filename) ... okTracebackErrorCaretTests.test_caret_for_call_with_spaces_and_parenthesis) ... okTracebackException.test_cause) ... okTracebackErrorCaretTests.test_caret_exception_group) ... okTracebackCases.test_format_exception_group_with_note) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_faulthandler.py", line404, intest_dump_ext_modulesself.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", line155, intest_close_stdinself.assertEqual(process.returncode,0)~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^AssertionError:-6 != 0TracebackLegacyErrorCaretTests.test_traceback_very_long_line) ... okTracebackLegacyErrorCaretTests.test_byte_offset_with_emojis_term_highlight) ... okTracebackLegacyErrorCaretTests.test_secondary_caret_not_elided) ... okTracebackLegacyErrorCaretTests.test_caret_multiline_expression_syntax_error) ... okTracebackCases.test_format_exception_group_multiple_exceptions) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_concurrent_futures/test_init.py", line147, intest_spawnself._test(ProcessPoolSpawnFailingInitializerTest)~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_concurrent_futures/test_init.py", line144, in_testself.assertEqual(_resource_tracker._exitcode,0)~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^AssertionError:None != 0TracebackErrorCaretTests.test_multiline_method_call_c) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_utf8_mode.py", line131, intest_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", line35, inget_output    out= assert_python_ok(*args,**kw)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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) ... okTracebackErrorCaretTests.test_multiline_method_call_a) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_concurrent_futures/util.py", line55, insetUpself.manager=self.get_context().Manager()~~~~~~~~~~~~~~~~~~~~~~~~~~^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/context.py", line57, inManager    m.start()~~~~~~~^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/managers.py", line570, instartself._address= reader.recv()~~~~~~~~~~~^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/connection.py", line256, inrecv    buf=self._recv_bytes()  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/connection.py", line447, in_recv_bytes    buf=self._recv(4)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/connection.py", line416, in_recvraiseEOFErrorEOFErrorTracebackErrorCaretTests.test_specialization_variations) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_multiprocessing_main_handling.py", line202, intest_script_compiledself._check_script(pyc_file)~~~~~~~~~~~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_multiprocessing_main_handling.py", line168, in_check_scriptself._check_output(script_name, rc, out, err)~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_multiprocessing_main_handling.py", line159, in_check_outputself.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) ... okTracebackLegacyErrorCaretTests.test_specialization_variations) ... okTracebackCases.test_bad_indentation) ... okTracebackTests.test_broken_submodule) ... okTracebackErrorCaretTests.test_caret_multiline_expression_bin_op) ... okTracebackCases.test_extract_stack) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_exceptions.py", line2283, intest_assertion_error_locationself.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) ... okTracebackLegacyErrorCaretTests.test_caret_for_call_unicode) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_audit.py", line69, intest_pickleself.do_test("test_pickle")~~~~~~~~~~~~^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_audit.py", line39, indo_testself.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) ... okTracebackCases.test_base_exception) ... okTracebackLegacyErrorCaretTests.test_caret_for_binary_operators_multiline) ... okTracebackTests.test_broken_from) ... okTracebackLegacyErrorCaretTests.test_many_lines_no_caret) ... okTracebackCases.test_nocaret) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/asyncio/base_subprocess.py", line135, 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", line165, intest_readlinesself._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", line110, in_test_readingself.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", line72, infail_with_process_infoself.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 fTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_c_locale_coercion.py", line405, in_check_c_locale_coercionself._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", line229, 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", line155, inget_child_details    result.fail(py_cmd)~~~~~~~~~~~^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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) ... okTracebackErrorCaretTests.test_secondary_caret_not_elided) ... okTracebackFormat.test_print_stack) ... okTracebackErrorCaretTests.test_caret_for_subscript) ... okTracebackLegacyErrorCaretTests.test_caret_for_binary_operators_with_unicode) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_asyncio/test_events.py", line2208, intest_subprocess_stderr_redirect_to_stdoutself.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) ... okTracebackLegacyErrorCaretTests.test_multiline_method_call_a) ... okTracebackCases.test_print_last) ... okTracebackException.test_no_save_exc_type) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_lltrace.py", line67, intest_lltrace_different_module    stdout=self.run_code("""from testimport test_lltrace        test_lltrace.__lltrace__=1        test_lltrace.example()""")  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_lltrace.py", line26, inrun_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", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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", line1798, intest_daemon_threads_fatal_error    assert_python_ok("-c", script)~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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) ... okTracebackErrorCaretTests.test_caret_multiline_expression_syntax_error) ... okTracebackCases.test_format_exception_only_bad__str__) ... okTracebackCases.test_format_exception_group_with_cause) ... okTracebackCases.test_format_exception_only_exc) ... okTracebackLegacyErrorCaretTests.test_caret_for_subscript_unicode) ... okTracebackCases.test_format_exception_group_with_tracebacks) ... okTracebackException.test_smoke_user_exception) ... okTracebackFormat.test_exception_group_deep_recursion_traceback) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_gettext.py", line937, intest_lazy_import    ensure_lazy_imports("gettext", {"re","warnings","locale"})~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/import_helper.py", line335, inensure_lazy_imports    assert_python_ok("-S","-c", script)~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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) ... okTracebackCases.test_format_exception_group_explicit_class) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_regrtest.py", line1894, intest_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", line972, inrun_testsreturnself.run_python(cmdargs,**kw)~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_regrtest.py", line819, inrun_python    proc=self.run_command(cmd,**kw)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_regrtest.py", line807, inrun_commandself.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", line3352, intest_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", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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) ... okTracebackErrorCaretTests.test_many_lines) ... okTracebackErrorCaretTests.test_line_with_unicode) ... okTracebackCases.test_format_exception_group_without_show_group) ... okTracebackException.test_compact_no_cause) ... okTracebackLegacyErrorCaretTests.test_caret_for_subscript_with_spaces_and_parenthesis) ... okTracebackCases.test_print_exception_exc) ... okTracebackErrorCaretTests.test_byte_offset_with_wide_characters_middle) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_tools/test_msgfmt.py", line248, intest_help    res= assert_python_ok(msgfmt_py, option)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_regrtest.py", line1803, intest_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", line972, inrun_testsreturnself.run_python(cmdargs,**kw)~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_regrtest.py", line819, inrun_python    proc=self.run_command(cmd,**kw)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_regrtest.py", line807, inrun_commandself.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) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_hash.py", line193, intest_randomized_hash    run1=self.get_hash(self.repr_,seed='random')  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_hash.py", line185, inget_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", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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) ... okTracebackLegacyErrorCaretTests.test_byte_offset_with_wide_characters_term_highlight) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line228, in_ensure_running_and_writeself._write(to_send)~~~~~~~~~~~^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/resource_tracker.py", line266, in_write    nbytes= os.write(self._fd, msg)BrokenPipeError:[Errno 32] Broken pipeTracebackErrorCaretTests.test_multiline_method_call_b) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/audit-tests.py", line761, in<module>globals()[test](*sys.argv[2:])~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/audit-tests.py", line609, intest_time    time.sleep(0)~~~~~~~~~~^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/audit-tests.py", line606, inhookraiseAssertionError('hook failed')AssertionError:hook failedkTracebackLegacyErrorCaretTests.test_caret_in_type_annotation) ... okTracebackCases.test_print_traceback_at_exit) ... okTracebackErrorCaretTests.test_traceback_very_long_line) ... okTracebackException.test_comparison_equivalent_exceptions_are_equal) ... okTracebackTests.test_nonexistent_module_nested) ... okTracebackLegacyErrorCaretTests.test_caret_for_binary_operators_multiline_two_char) ... okTracebackTests.test_import_bug) ... okTracebackLegacyErrorCaretTests.test_memory_error) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_calendar.py", line1210, intest_option_spacing    output= run('--spacing','8','2004')  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_calendar.py", line1100, inrun_cmd_okreturn assert_python_ok('-m','calendar',*args)[1]~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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) ... okTracebackErrorCaretTests.test_anchors_for_simple_assign_statements_are_elided) ... okTracebackException_ExceptionGroups.test_comparison) ... okTracebackLegacyErrorCaretTests.test_many_lines) ... okTracebackTests.test_broken_parent_from) ... okTraceback (test.test_exceptions.ExceptionTests.testWithTraceback) ... okTracebackLegacyErrorCaretTests.test_caret_for_call) ... okTracebackErrorCaretTests.test_caret_for_call_unicode) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_asyncio/test_tasks.py", line3359, intest_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", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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", line347, inmain    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", line347, inmain    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", line347, inmain    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", line347, inmain    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", line347, inmain    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", line347, inmain    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", line347, inmain    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", line347, inmain    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", line1271, intest_no_leakingself.assertEqual(data,b"lime")~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^AssertionError:b'' != b'lime'TracebackLegacyErrorCaretTests.test_caret_for_subscript) ... okTracebackException.test_no_locals) ... okTracebackException_ExceptionGroups.test_exception_group_format_exception_only) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/__init__.py", line847, ingc_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 exceptionException 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", line873, in__del__    _warn(f"unclosed transport{self!r}",ResourceWarning,source=self)~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ResourceWarning:unclosed transport <_SelectorSocketTransport closing fd=10>kTracebackLegacyErrorCaretTests.test_caret_for_binary_operators_two_char) ... okTracebackCases.test_exception_is_None) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line7406, intest_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", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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) ... okTracebackErrorCaretTests.test_many_lines_binary_op) ... okTracebackException.test_context) ... okTracebackCases.test_format_exception_group_multiline2_messages) ... okTracebackException.test_print) ... okTracebackException.test_from_exception) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_threading.py", line879, intest_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", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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", line527, intest_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", line461, incheck_dash_m_failureself.assertEqual(rc,1)~~~~~~~~~~~~~~~~^^^^^^^AssertionError:-6 != 1TracebackErrorCaretTests.test_caret_for_binary_operators_multiline) ... okTracebackErrorCaretTests.test_byte_offset_with_wide_characters_term_highlight) ... okTracebackErrorCaretTests.test_many_lines_no_caret) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_tempfile.py", line1885, intest_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", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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) ... okTracebackLegacyErrorCaretTests.test_caret_multiline_expression_bin_op) ... okTracebackErrorCaretTests.test_caret_for_subscript_multiline) ... okTraceback.test_colorized_syntax_error) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_os/test_posix.py", line2083, intest_setsigdef    support.wait_process(pid,exitcode=-signal.SIGUSR1)~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/__init__.py", line2300, inwait_processraiseAssertionError(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 expectedTracebackErrorCaretTests.test_caret_for_binary_operators_with_spaces_and_parenthesis) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line371, in_run_finalizers    finalizer()~~~~~~~~~^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line295, in__call__    res=self._callback(*self._args,**self._kwargs)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line86, in_cleanup    sem_unlink(name)~~~~~~~~~~^^^^^^FileNotFoundError:[Errno 2] No such file or directoryTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line371, in_run_finalizers    finalizer()~~~~~~~~~^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line295, in__call__    res=self._callback(*self._args,**self._kwargs)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line86, in_cleanup    sem_unlink(name)~~~~~~~~~~^^^^^^FileNotFoundError:[Errno 2] No such file or directoryTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line371, in_run_finalizers    finalizer()~~~~~~~~~^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line295, in__call__    res=self._callback(*self._args,**self._kwargs)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line86, in_cleanup    sem_unlink(name)~~~~~~~~~~^^^^^^FileNotFoundError:[Errno 2] No such file or directoryTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line371, in_run_finalizers    finalizer()~~~~~~~~~^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line295, in__call__    res=self._callback(*self._args,**self._kwargs)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line86, in_cleanup    sem_unlink(name)~~~~~~~~~~^^^^^^FileNotFoundError:[Errno 2] No such file or directoryTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line371, in_run_finalizers    finalizer()~~~~~~~~~^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line295, in__call__    res=self._callback(*self._args,**self._kwargs)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line86, in_cleanup    sem_unlink(name)~~~~~~~~~~^^^^^^FileNotFoundError:[Errno 2] No such file or directoryTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line371, in_run_finalizers    finalizer()~~~~~~~~~^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/util.py", line295, in__call__    res=self._callback(*self._args,**self._kwargs)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line86, in_cleanup    sem_unlink(name)~~~~~~~~~~^^^^^^FileNotFoundError:[Errno 2] No such file or directoryTracebackLegacyErrorCaretTests.test_caret_for_binary_operators_with_spaces_and_parenthesis) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_site.py", line580, intest_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", line335, inensure_lazy_imports    assert_python_ok("-S","-c", script)~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_pydoc/test_pydoc.py", line1264, intest_badimportself.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) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_tarfile.py", line2970, intest_create_command_compressed    out=self.tarfilecmd('-c', tar_name,*files)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_tarfile.py", line2809, intarfilecmd    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", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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", line85, ininnerreturn func(*args,**kwds)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_concurrent_futures/test_shutdown.py", line92, intest_cancel_futures    fs= [self.executor.submit(time.sleep,.1)for _inrange(50)]~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/concurrent/futures/process.py", line813, insubmitraise BrokenProcessPool(self._broken)concurrent.futures.process.BrokenProcessPool:A child process terminated abruptly, the process pool is not usable anymoreTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/process.py", line320, in_bootstrapself.run()~~~~~~~~^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/process.py", line108, inrunself._target(*self._args,**self._kwargs)~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line524, in_sleep_some_event    time.sleep(100)~~~~~~~~~~^^^^^KeyboardInterruptkTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_tempfile.py", line1885, intest_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", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_cmd_line.py", line545, intest_no_stdinself._test_no_stdio(['stdin'])~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_cmd_line.py", line541, in_test_no_stdioself.assertEqual(err,b'')~~~~~~~~~~~~~~~~^^^^^^^^^^AssertionError:b'Assertion failed: (here_addr < ts->c_stac[76 chars]1.\n' != b''TracebackErrorCaretTests.test_byte_offset_multiline) ... okTracebackErrorCaretTests.test_caret_multiline_expression) ... okTracebackErrorCaretTests.test_caret_for_subscript_with_spaces_and_parenthesis) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_code.py", line579, intest_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", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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) ... okTraceback.test_colorized_traceback_from_exception_group) ... okTracebackLegacyErrorCaretTests.test_line_with_unicode) ... okTracebackTests.test_exec_failure_nested) ... okTracebackErrorCaretTests.test_byte_offset_with_emojis_term_highlight) ... okTracebackLegacyErrorCaretTests.test_decorator_application_lineno_correct) ... okTraceback.test_colorized_traceback) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/__init__.py", line2934, inwrapperreturn func(*args,**kwargs)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_json/test_tool.py", line95, intest_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", line576, inrunraise 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) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/contextlib.py", line85, ininnerreturn func(*args,**kwds)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line2266, intest_wait_returnself.run_threads(self._test_wait_return_f, (self.barrier, queue))~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line2218, inrun_threads    f(*args)~^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line2257, in_test_wait_return_f    res= barrier.wait()  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/managers.py", line1118, inwaitreturnself._callmethod('wait', (timeout,))~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/managers.py", line848, in_callmethodraise convert_to_error(kind, result)threading.BrokenBarrierErrorTraceback (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", line320, in_bootstrapself.run()~~~~~~~~^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/process.py", line108, inrunself._target(*self._args,**self._kwargs)~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line2165, intaskself.f(*self.args)~~~~~~^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line2257, in_test_wait_return_f    res= barrier.wait()  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/managers.py", line1118, inwaitreturnself._callmethod('wait', (timeout,))~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/managers.py", line848, in_callmethodraise convert_to_error(kind, result)threading.BrokenBarrierError  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/process.py", line320, in_bootstrapself.run()~~~~~~~~^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/process.py", line108, inrunself._target(*self._args,**self._kwargs)~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line2165, intaskself.f(*self.args)~~~~~~^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line2257, in_test_wait_return_f    res= barrier.wait()  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/managers.py", line1118, inwaitreturnself._callmethod('wait', (timeout,))~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/managers.py", line848, in_callmethodraise convert_to_error(kind, result)threading.BrokenBarrierError  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/process.py", line320, in_bootstrapself.run()~~~~~~~~^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/process.py", line108, inrunself._target(*self._args,**self._kwargs)~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line2165, intaskself.f(*self.args)~~~~~~^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line2257, in_test_wait_return_f    res= barrier.wait()  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/managers.py", line1118, inwaitreturnself._callmethod('wait', (timeout,))~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/managers.py", line848, in_callmethodraise convert_to_error(kind, result)threading.BrokenBarrierErrorERRORTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_multiprocessing_main_handling.py", line236, intest_zipfile_compiledself._check_script(zip_name)~~~~~~~~~~~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_multiprocessing_main_handling.py", line167, 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", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_os/test_os.py", line2364, intest_urandom_subprocess    data2=self.get_urandom_subprocess(16)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_os/test_os.py", line2357, inget_urandom_subprocess    out= assert_python_ok('-c', code)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/process.py", line320, in_bootstrapself.run()~~~~~~~~^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/process.py", line108, inrunself._target(*self._args,**self._kwargs)~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/_test_multiprocessing.py", line523, in_sleep_some_event    event.set()~~~~~~~~~^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line344, insetwithself._cond:^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line242, in__exit__returnself._lock.__exit__(*args)~~~~~~~~~~~~~~~~~~~^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/multiprocessing/synchronize.py", line100, in__exit__returnself._semlock.__exit__(*args)~~~~~~~~~~~~~~~~~~~~~~^^^^^^^KeyboardInterruptkTracebackErrorCaretTests.test_byte_offset_wide_chars_subscript) ... okTracebackLegacyErrorCaretTests.test_multiline_method_call_b) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_import/__init__.py", line2426, intest_single_init_extension_compatself.check_incompatible_fresh(module,isolated=True)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_import/__init__.py", line2374, incheck_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", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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) ... okTracebackCases.test_format_exception_group_syntax_error) ... okTracebackErrorCaretTests.test_decorator_application_lineno_correct) ... okTraceback (most recent call last):  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_threading.py", line1606, intest_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", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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", line7113, intest_directory_in_zipfile_compiledself.test_directory_in_zipfile(compiled=True)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_argparse.py", line7110, intest_directory_in_zipfileself.check_usage(f'{py}{dirname}', dirname)~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/test_argparse.py", line7050, incheck_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", line182, inassert_python_okreturn _assert_python(True,*args,**env_vars)  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line167, in_assert_python    res.fail(cmd_line)~~~~~~~~^^^^^^^^^^  File"/buildbot/buildarea/3.x.ware-freebsd.refleak/build/Lib/test/support/script_helper.py", line80, infailraiseAssertionError(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

CuriousLearner added a commit to CuriousLearner/cpython that referenced this pull requestNov 13, 2025
* main: (463 commits)pythongh-140601: Add ResourceWarning to iterparse when not closed (pythonGH-140603)pythongh-137969: Fix double evaluation of `ForwardRef`s which rely on globals (python#140974)pythongh-139109: A new tracing JIT compiler frontend for CPython (pythonGH-140310)pythongh-141004: Document `PyErr_RangedSyntaxLocationObject` (python#141521)pythongh-140873: Add support of non-descriptor callables in functools.singledispatchmethod() (pythonGH-140884)pythongh-139653: Add PyUnstable_ThreadState_SetStackProtection() (python#139668)pythongh-141004: Document `PyCode_Optimize` (pythonGH-141378)pythongh-141004: Document C APIs for dictionary keys, values, and items (pythonGH-141009)pythongh-137959: Fix `TIER1_TO_TIER2` macro name in JIT InternalDocs (pythonGH-141496)pythongh-139871: Add `bytearray.take_bytes([n])` to efficiently extract `bytes` (pythonGH-140128)pythongh-140601: Refactor ElementTree.iterparse() tests (pythonGH-141499)pythongh-135801: Add the module parameter to compile() etc (pythonGH-139652)pythongh-140260: fix data race in `_struct` module initialization with subinterpreters (python#140909)pythongh-137109: refactor warning about threads when forking (python#141438)pythongh-141004: Document `PyRun_InteractiveOneObject` (pythonGH-141405)pythongh-124111: Fix TCL 9 thread detection (pythonGH-128103)pythongh-141442: Add escaping to iOS testbed arguments (python#141443)pythongh-140936: Fix JIT assertion crash at finalization if some generator is alive (pythonGH-140969)  Add details about JIT build infrastructure and updating dependencies to `Tools/jit` (python#141167)pythongh-141412: Use reliable target URL for urllib example (pythonGH-141428)  ...
CuriousLearner added a commit to CuriousLearner/cpython that referenced this pull requestNov 14, 2025
* 'main' of github.com:python/cpython: (464 commits)pythongh-140601: Add ResourceWarning to iterparse when not closed (pythonGH-140603)pythongh-137969: Fix double evaluation of `ForwardRef`s which rely on globals (python#140974)pythongh-139109: A new tracing JIT compiler frontend for CPython (pythonGH-140310)pythongh-141004: Document `PyErr_RangedSyntaxLocationObject` (python#141521)pythongh-140873: Add support of non-descriptor callables in functools.singledispatchmethod() (pythonGH-140884)pythongh-139653: Add PyUnstable_ThreadState_SetStackProtection() (python#139668)pythongh-141004: Document `PyCode_Optimize` (pythonGH-141378)pythongh-141004: Document C APIs for dictionary keys, values, and items (pythonGH-141009)pythongh-137959: Fix `TIER1_TO_TIER2` macro name in JIT InternalDocs (pythonGH-141496)pythongh-139871: Add `bytearray.take_bytes([n])` to efficiently extract `bytes` (pythonGH-140128)pythongh-140601: Refactor ElementTree.iterparse() tests (pythonGH-141499)pythongh-135801: Add the module parameter to compile() etc (pythonGH-139652)pythongh-140260: fix data race in `_struct` module initialization with subinterpreters (python#140909)pythongh-137109: refactor warning about threads when forking (python#141438)pythongh-141004: Document `PyRun_InteractiveOneObject` (pythonGH-141405)pythongh-124111: Fix TCL 9 thread detection (pythonGH-128103)pythongh-141442: Add escaping to iOS testbed arguments (python#141443)pythongh-140936: Fix JIT assertion crash at finalization if some generator is alive (pythonGH-140969)  Add details about JIT build infrastructure and updating dependencies to `Tools/jit` (python#141167)pythongh-141412: Use reliable target URL for urllib example (pythonGH-141428)  ...
CuriousLearner added a commit to CuriousLearner/cpython that referenced this pull requestNov 14, 2025
* 'main' of github.com:python/cpython: (464 commits)pythongh-140601: Add ResourceWarning to iterparse when not closed (pythonGH-140603)pythongh-137969: Fix double evaluation of `ForwardRef`s which rely on globals (python#140974)pythongh-139109: A new tracing JIT compiler frontend for CPython (pythonGH-140310)pythongh-141004: Document `PyErr_RangedSyntaxLocationObject` (python#141521)pythongh-140873: Add support of non-descriptor callables in functools.singledispatchmethod() (pythonGH-140884)pythongh-139653: Add PyUnstable_ThreadState_SetStackProtection() (python#139668)pythongh-141004: Document `PyCode_Optimize` (pythonGH-141378)pythongh-141004: Document C APIs for dictionary keys, values, and items (pythonGH-141009)pythongh-137959: Fix `TIER1_TO_TIER2` macro name in JIT InternalDocs (pythonGH-141496)pythongh-139871: Add `bytearray.take_bytes([n])` to efficiently extract `bytes` (pythonGH-140128)pythongh-140601: Refactor ElementTree.iterparse() tests (pythonGH-141499)pythongh-135801: Add the module parameter to compile() etc (pythonGH-139652)pythongh-140260: fix data race in `_struct` module initialization with subinterpreters (python#140909)pythongh-137109: refactor warning about threads when forking (python#141438)pythongh-141004: Document `PyRun_InteractiveOneObject` (pythonGH-141405)pythongh-124111: Fix TCL 9 thread detection (pythonGH-128103)pythongh-141442: Add escaping to iOS testbed arguments (python#141443)pythongh-140936: Fix JIT assertion crash at finalization if some generator is alive (pythonGH-140969)  Add details about JIT build infrastructure and updating dependencies to `Tools/jit` (python#141167)pythongh-141412: Use reliable target URL for urllib example (pythonGH-141428)  ...
@vstinner
Copy link
MemberAuthor

Hi! The buildbot AMD64 FreeBSD Refleaks 3.x (tier-3) has failed when building commitb99db92.

That's a real regression: I wrotehttps://github.com/python/cpython/pull/141551/files to fix it.

@encukouencukou added the needs backport to 3.14bugs and security fixes labelNov 17, 2025
@miss-islington-app
Copy link

Thanks@vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Sorry,@vstinner, I could not cleanly backport this to3.14 due to a conflict.
Please backport usingcherry_picker on command line.

cherry_picker b99db92dde38b17c3fba3b5db76a383ceddfce49 3.14

@encukouencukou assignedencukou and unassignedvstinnerNov 17, 2025
encukou added a commit to encukou/cpython that referenced this pull requestNov 17, 2025
…honGH-139668)Add PyUnstable_ThreadState_SetStackProtection() andPyUnstable_ThreadState_ResetStackProtection() functionsto set the stack base address and stack size of a Pythonthread state.Co-authored-by: Petr Viktorin <encukou@gmail.com>
@bedevere-app
Copy link

GH-141661 is a backport of this pull request to the3.14 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.14bugs and security fixes labelNov 17, 2025
hroncok pushed a commit to hroncok/cpython that referenced this pull requestNov 24, 2025
…hon#139668)Add PyUnstable_ThreadState_SetStackProtection() andPyUnstable_ThreadState_ResetStackProtection() functionsto set the stack base address and stack size of a Pythonthread state.Co-authored-by: Petr Viktorin <encukou@gmail.com>(cherry picked from commitb99db92)
encukou added a commit that referenced this pull requestNov 25, 2025
…-139668)  (#141661)Co-authored-by: Rok Mandeljc <rok.mandeljc@gmail.com>Co-authored-by: Mark Shannon <mark@hotpy.org>Co-authored-by: Victor Stinner <vstinner@python.org>
StanFromIreland pushed a commit to StanFromIreland/cpython that referenced this pull requestDec 6, 2025
…hon#139668)Add PyUnstable_ThreadState_SetStackProtection() andPyUnstable_ThreadState_ResetStackProtection() functionsto set the stack base address and stack size of a Pythonthread state.Co-authored-by: Petr Viktorin <encukou@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@markshannonmarkshannonmarkshannon left review comments

@encukouencukouencukou approved these changes

@ericsnowcurrentlyericsnowcurrentlyAwaiting requested review from ericsnowcurrentlyericsnowcurrently is a code owner

@ZeroIntensityZeroIntensityAwaiting requested review from ZeroIntensityZeroIntensity is a code owner

@AA-TurnerAA-TurnerAwaiting requested review from AA-TurnerAA-Turner is a code owner

Assignees

@encukouencukou

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@vstinner@encukou@markshannon@stefanor@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp