You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pcre2-test on Windows: RunTest needs a bash the action does not find; test 2 fails on a 6.5 GB allocation; test 3 differs under the Windows fr_FR locale #2592
Found cutting the Windows seed from the bridge commit 1508cf5 (#2582): :release-checks on win10 is red only on pcre2-test (and its dependents corpus-migrator-gate, pcre2-test-fresh). Windows release checks had not been run before (the 10-20 cut ran build, fixpoint and package only).
run_pcre2_test_action spawns /bin/bash RunTest -8 0-29; there is no /bin/bash on Windows and the process runner reports exit code -2 with empty captures. Git for Windows is installed on win10 (C:\Program Files\Git\bin\bash.exe) but not on PATH; the action should find bash (PATH, then the Git for Windows path) and name the requirement in its failure.
Under that bash, RunTest runs: tests 0 and 1 pass; test 2 fails with with: out of memory: requested=6553600016 committed=21698269392 bytes (pcre2test's large-allocation case; the With allocator on Windows refuses a 6.5 GB request after 21 GB committed — needs the allocator route, not a limit tweak); test 3 (fr_FR locale) differs: the Windows C locale tables classify \x83 \x8a \x8c ... as letters where glibc's do not (upstream RunTest skips test 3 when the locale is unavailable; here it is available and different).
diff: .../testdata/testoutput3C: No such file or directory from the same run.
Until this is green the Windows x86_64 seed cannot be cut by the rules; main since #2583 does not compile under the local-3 Windows seed, so Windows has no bootstrap (the same hole #2582 closes for Linux with the bridge seed). Decision needed: cut the Windows seed from the bridge with pcre2-test waived as on 2026-10-20, or wait for this fix.
Ruling (Eric): pcre2-test must not depend on bash; the build layer is self-hosting. Branch pcre2-runtest ports RunTest into build/pcre2.w (capability probes by exit code, tests 0-29 with the same skips and option passes, test 0 specials, test 2 -error append, test 3 locale search over the alternative outputs, byte comparison against testdata). The smoke target (0-5) passes through the port in 2.5 s on darwin; the full target is running. The Windows-specific findings (test 2 6.5 GB allocation, test 3 locale output) stay open here for the Windows run of the port.
With the port (bridge commit 02da64d) the Windows leg runs the suite without a shell: 28 of 30 tests pass on win10 (0, 1, 4-10, 14-16, 18-22, 24-27; the rest skipped as RunTest skips them). Two remain, both Windows-specific:
Test 2: pcre2test exits 99; earlier under bash the same run printed with: out of memory: requested=6553600016 committed=21698269392. Hypothesis to verify: a test case asks malloc for a size the C program expects to see fail (NULL), and the With runtime aborts on an allocation it cannot commit instead of returning null to migrated C — Linux and macOS overcommit, so it never shows there. Route: find the testinput2 line (a memory/huge-subject case), run pcre2test on it alone under lldb/WinDbg on win10, and read with_alloc's failure path.
Test 3: pcre2test sets fr_FR (the probe succeeds) but the output matches none of testoutput3, 3A, 3B, 3C: the Windows CRT's fr_FR classifies \x83 \x8a \x8c \x8e \x9a \x9c \x9e \x9f \xb2 \xb3 \xb9 as letters. Upstream's RunTest has the same outcome on Windows; the question is whether the port should accept a Windows-locale output file of our own or skip the locale test where the CRT differs.
These stay the blockers for cutting the Windows seed by the rules (#2582).
Triage 2026-10-25, Windows x86_64 (win10, tree at main c88f3ee): does not reproduce. #2593 (dc26d8d) runs upstream's RunTest in With instead of bash, and #2594 (77ca416) fixed the 64-bit strtol and skips the locale test under code page 1252. The win10 tree recorded a completed pcre2-test on 2026-10-24 20:31 (out\.build-state\pcre2-test.state, signed sig:713cfb40…; a state file is written only when the target succeeds).
Activity
ehartford commentedon Oct 23, 2026
Ruling (Eric): pcre2-test must not depend on bash; the build layer is self-hosting. Branch
pcre2-runtestports RunTest into build/pcre2.w (capability probes by exit code, tests 0-29 with the same skips and option passes, test 0 specials, test 2-errorappend, test 3 locale search over the alternative outputs, byte comparison against testdata). The smoke target (0-5) passes through the port in 2.5 s on darwin; the full target is running. The Windows-specific findings (test 2 6.5 GB allocation, test 3 locale output) stay open here for the Windows run of the port.pcre2-test runs upstream's RunTest in With, not bash
ehartford commentedon Oct 23, 2026
With the port (bridge commit 02da64d) the Windows leg runs the suite without a shell: 28 of 30 tests pass on win10 (0, 1, 4-10, 14-16, 18-22, 24-27; the rest skipped as RunTest skips them). Two remain, both Windows-specific:
with: out of memory: requested=6553600016 committed=21698269392. Hypothesis to verify: a test case asks malloc for a size the C program expects to see fail (NULL), and the With runtime aborts on an allocation it cannot commit instead of returning null to migrated C — Linux and macOS overcommit, so it never shows there. Route: find the testinput2 line (amemory/huge-subject case), run pcre2test on it alone under lldb/WinDbg on win10, and readwith_alloc's failure path.fr_FR(the probe succeeds) but the output matches none of testoutput3, 3A, 3B, 3C: the Windows CRT's fr_FR classifies \x83 \x8a \x8c \x8e \x9a \x9c \x9e \x9f \xb2 \xb3 \xb9 as letters. Upstream's RunTest has the same outcome on Windows; the question is whether the port should accept a Windows-locale output file of our own or skip the locale test where the CRT differs.These stay the blockers for cutting the Windows seed by the rules (#2582).
pcre2-test runs upstream's RunTest in With, not bash
pcre2-test runs upstream's RunTest in With, not bash (#2593)
std.libc strtol and strtoul parse a 64-bit long on every target
pcre2-test: the locale test is skipped where the French locale is cod…
pcre2-test: the appended -error run takes the output file's line endings
pcre2-test: the appended -error run takes the output file's line endi…
Windows: std.libc strtol/strtoul parse a 64-bit long; pcre2 locale te…
ehartford commentedon Oct 25, 2026
Triage 2026-10-25, Windows x86_64 (win10, tree at main c88f3ee): does not reproduce. #2593 (dc26d8d) runs upstream's RunTest in With instead of bash, and #2594 (77ca416) fixed the 64-bit
strtoland skips the locale test under code page 1252. The win10 tree recorded a completedpcre2-teston 2026-10-24 20:31 (out\.build-state\pcre2-test.state, signedsig:713cfb40…; a state file is written only when the target succeeds).