[libc-commits] [libc] [libc][regex] Increase NVPTX matcher limits test stack (PR #247295)

Caroline Rodewig via libc-commits libc-commits at lists.llvm.org
Mon Nov 30 11:47:22 PST 2026


https://github.com/carodewig created https://github.com/llvm/llvm-project/pull/247295

The `matcher_limits_test` [crashes](https://lab.llvm.org/staging/#/builders/248/builds/356) with a memory access error during `MultiByteChainReuseAndAltDerivative` on the A10 builder with the default 3 KiB device stack. This PR bumps the binary to a 16 KiB stack.

NB: I have not reproduced this exact failure - on a local RTX 5070 (`sm_120`), the same test fails at 2 KiB in `MultiByteChainReuseAndAltDerivative`, but passes at the default 3 KiB and at 16 KiB. That the failure is due to the default 3 KiB limit is a hypothesis based on similar recent failures (#246031, #244276).

Assisted-by: Devin

>From 4975d32af36c13fa996bfd51de2a641b6b82201b Mon Sep 17 00:00:00 2001
From: carodewig <crodewig at nvidia.com>
Date: Mon, 30 Nov 2026 19:37:44 +0000
Subject: [PATCH] [libc][regex] Increase NVPTX matcher limits test stack

The matcher_limits_test crashes during MultiByteChainReuseAndAltDerivative on the A10 builder with the default 3 KiB device stack. Give this stress-test binary a 16 KiB stack, leaving other tests and production settings unchanged.
---
 libc/test/src/__support/regex/CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libc/test/src/__support/regex/CMakeLists.txt b/libc/test/src/__support/regex/CMakeLists.txt
index baea3054db2ef6..cd8bb52ebe5b73 100644
--- a/libc/test/src/__support/regex/CMakeLists.txt
+++ b/libc/test/src/__support/regex/CMakeLists.txt
@@ -41,6 +41,10 @@ add_libc_test(
 
 add_libc_test(
   matcher_limits_test
+  # Deep derivative walks and alternation normalization exceed the default
+  # 3 KiB NVPTX device stack on some GPUs.
+  ENV
+    LIBOMPTARGET_STACK_SIZE=16384
   SUITE
     libc-support-tests
   HDRS



More information about the libc-commits mailing list