cobol: CPU-capped livelock harness, vendored pin, MANIFEST row (#2998)

The regression harness polled waitpid every 10 ms against a 10 s
wall-clock deadline; a loaded runner can turn that into a false
failure. The child now caps its own CPU time (RLIMIT_CPU, 5 s, no core
file) and the parent does one blocking waitpid: the livelock burns CPU
and is stopped by SIGXCPU, while a busy host only delays the child.
With the scanner fix reverted the test fails with SIGXCPU (status 152);
with it, it passes.

internal/cbm/vendored/grammars/MANIFEST.md records the change under
"Local source patches" (in-house grammar, nothing to re-vendor), and
scripts/vendored-checksums.txt pins the patched cobol/scanner.c and the
updated MANIFEST.md (scripts/security-vendored.sh passes).

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
This commit is contained in:
Martin Vogel
2026-11-19 18:30:51 +01:00
parent 1d9590cc12
commit 8553d3e5e6
3 changed files with 35 additions and 23 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ c5cfb43042b6b72045f4ba997834d0a7786d2793d91680868b5815b39f14fc78 internal/cbm/v
b29c1c9fb7cc82f58c84b376df1297d6e2737a1d655fd356db0859e3c29c2fea internal/cbm/vendored/common/tree_sitter/alloc.h
31e60a1bff6f715afacce03b5b70efe42b58371b4f9595dd4af52a577ff9608c internal/cbm/vendored/common/tree_sitter/array.h
180b893c8734778fd32f372dfbc27bd6ad1cd2221f26150b31256ff6716320d2 internal/cbm/vendored/common/tree_sitter/parser.h
c89ec56087da3b2b0ad8dcad34cd7bb92e10ea7c72ae86f69d9f59daba6cdb3d internal/cbm/vendored/grammars/MANIFEST.md
dc788fdcda5b04821278a7a15fc93b9da49a2e40fb806ef21ad66c49a9117da3 internal/cbm/vendored/grammars/MANIFEST.md
ad8425038de519f8c4e3e9339feebf99dfad8a6002dcf79227d91402780a32cc internal/cbm/vendored/grammars/ada/LICENSE
02805ec13939b749c891567be36bf024b09034e04c80683a1ae667272458d549 internal/cbm/vendored/grammars/ada/parser.c
115a75d000bef9c70c4de7dfbb7f2a80b90cbb14ba265056dc7abb1ef3b9b6db internal/cbm/vendored/grammars/ada/tree_sitter/alloc.h
@@ -134,7 +134,7 @@ daf550976dc40608917b1f16b5c8b21773111bdd2a7fcc23c5e5fec3737055f5 internal/cbm/v
c4b9482069f61a2a26a590181baa34f08eb6dcc57a138def578e6f9720c35ea5 internal/cbm/vendored/grammars/cmake/tree_sitter/parser.h
1f58f9911dc5e3bcb96de28bb28e7b6bb7eb323952d29569c5d7214a152146bb internal/cbm/vendored/grammars/cobol/LICENSE
d40a31d4854a2d82977c74d33c3ee9c004d9e63743176ebc84159a1734db7b2b internal/cbm/vendored/grammars/cobol/parser.c
0e146beb0331e4f95e2fb815e263c649f2bc404b35dd1b19eb125cbd4ed95df8 internal/cbm/vendored/grammars/cobol/scanner.c
6958b5867131d6ed02964da9a2a7b5e68db461253c6b122d90c5307055ef3d8c internal/cbm/vendored/grammars/cobol/scanner.c
8e819abdeba5866bf1aaf6e7b97522241c903d94a18395c6a75ed02984270ee8 internal/cbm/vendored/grammars/cobol/tree_sitter/parser.h
00bb7f417416e8233ae465209e72eaa6162d53b061add7d9bed0238552a6fa0c internal/cbm/vendored/grammars/commonlisp/LICENSE
27082ecef6f3fe6c09aaf2488b2003f031a165d23b15179ad6c2b52bf47b05ff internal/cbm/vendored/grammars/commonlisp/parser.c