From: Elijah Newren Date: Tue, 25 Aug 2026 22:14:55 GMT Subject: Re: [PATCH v2 6/7] trace2: remove use of ALLOC_GROW() Message-ID: In-Reply-To: <120cf1967bde4e719a781c391b285c718553ad58.1787684181.git.gitgitgadget@gmail.com> On Tue, Aug 25, 2026 at 11:57 AM Derrick Stolee via GitGitGadget wrote: > > From: Derrick Stolee > > The ALLOC_GROW() helper can call die() on a failed memory allocation. > We need to remove this from the trace2 API code to prevent a recursive > die() handler. > > This helper is used to track the nested region stack. Use a new > skipped_regions member to track how many times a region was entered > without being added to the stack, and decrease that amount as we leave > each region. This allows us to avoid a failure and instead stop > deepening the stack, giving as much nesting behavior as possible without > failing the entire process. > > Signed-off-by: Derrick Stolee Checking out this commit and running GIT_TRACE2_PERF=1 ./bin-wrappers/git status dies with no open regions in thread 'main' Seems to be fixed by 7/7, though. Maybe a bad splitting?