Anton Novoselov 29d01fc8e5 fix: prevent stack overflow from process tree cycles in build_proc (#7706)
The `build_proc` function in procinfo recursively walks the process
tree to build child process information. If a cycle exists in the
parent PID chain (which can happen on Windows in particular due to PID
reuse or race conditions during process snapshot enumeration),
the recursion never terminates and overflows the stack.

Add a `visited` HashSet to track already-visited PIDs and skip them,
preventing infinite recursion. Applied to all three platforms (Windows,
Linux, macOS)

Fixes #7705
Related: #6671
2026-06-07 08:22:04 +01:00
2023-10-02 16:35:42 -07:00
2026-06-06 10:32:38 +01:00
2024-05-13 08:29:36 -07:00
2025-05-17 06:44:31 -07:00
2026-06-06 15:53:43 +02:00
2026-01-08 13:20:11 +00:00
2025-02-12 09:43:36 -07:00
2025-02-12 09:43:36 -07:00
2025-02-12 09:43:36 -07:00
2026-06-07 01:32:57 +02:00
2025-02-12 09:43:36 -07:00
2025-02-12 09:43:36 -07:00
2025-02-12 09:43:36 -07:00
2025-02-12 09:43:36 -07:00
2025-02-12 09:43:36 -07:00
2025-02-12 09:43:36 -07:00
2025-05-10 08:56:21 -07:00
2025-02-12 09:43:36 -07:00
2025-10-05 10:58:00 +01:00
2025-02-12 09:43:36 -07:00
2025-02-12 09:43:36 -07:00
2025-10-05 10:58:00 +01:00
2025-02-12 09:43:36 -07:00
2022-12-07 12:09:06 -08:00
2026-06-06 08:30:00 +01:00
2026-06-06 08:30:00 +01:00
2024-05-13 08:29:36 -07:00
2022-01-16 16:04:35 -07:00
2025-02-07 13:08:01 -07:00
2025-02-07 13:08:01 -07:00

Wez's Terminal

WezTerm Icon A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust

User facing docs and guide at: https://wezterm.org/

Screenshot

Screenshot of wezterm on macOS, running vim

Installation

https://wezterm.org/installation

Getting help

This is a spare time project, so please bear with me. There are a couple of channels for support:

  • You can use the GitHub issue tracker to see if someone else has a similar issue, or to file a new one.
  • Start or join a thread in our GitHub Discussions; if you have general questions or want to chat with other wezterm users, you're welcome here!
  • There is a Matrix room via Element.io for (potentially!) real time discussions.

The GitHub Discussions and Element/Gitter rooms are better suited for questions than bug reports, but don't be afraid to use whichever you are most comfortable using and we'll work it out.

Supporting the Project

If you use and like WezTerm, please consider sponsoring it: your support helps to cover the fees required to maintain the project and to validate the time spent working on it!

Read more about sponsoring.

S
Description
The agentic terminal: a WezTerm fork with LLeMbas built in
Readme MIT
316 MiB
0 Stars 2 Watchers 0 Forks
Languages
Rust 97.7%
Python 1%
Shell 0.9%
Nix 0.2%