Repository navigation
Commit 85ed449
committed
test: W-RE-PARSER-DEOPT-DETACH sentinel for re._parser JIT crash
Repro for re._parser JIT correctness regression discovered via
pythia python#128 python#2 perf seam (generalist 22:05Z; supervisor-opened
W-RE-PARSER-DEOPT-DETACH workstream 22:06:56Z).
Workload: cinderjit.auto() + repeated re.compile() of named-group
patterns past the 1000-call auto-compile threshold so
re._parser:Tokenizer.__next + SubPattern.__getitem__ + .getwidth
all hit deopt-backoff + JIT-detach. Subsequent re.compile()
either:
(a) AttributeError: 'SubPattern' object has no attribute 'state'
at Lib/re/_compiler.py:761 (p.state.groupdict)
(b) SIGSEGV (exit 139, core dumped)
Without JIT_ENABLE=1: 2000+ iterations PASS clean.
Two failure modes (AttributeError + SIGSEGV) on the same workload
suggest UAF / corrupted attribute storage post-deopt-detach rather
than a missing __init__ run (theologian 22:06:38Z structural read).
JIT trace messages preceding crash include sequential Deopt
backoff for Tokenizer.__next, Tokenizer.match, SubPattern.__getitem__,
SubPattern.getwidth (all reaching 1000 guard failures and
detaching), with Skipping compilation messages for SubPattern.__init__
+ State.__init__.
Test is currently @unittest.skip per W-A4-mid sentinel precedent
(test exists, currently skipped, will be un-skipped when the
underlying bug is fixed and the workload runs clean — at that
point this becomes a regression gate).
cinderx_dev oracle deferred until devgpu004 SSH-2FA infra restored;
per Alex policy "all bugs presumed Phoenix-introduced" the working
hypothesis is Phoenix regression, not pre-existing CinderX class.
Auth: pythia python#128 python#2 surfacing; generalist 22:05:55Z bug
escalation; theologian 22:06:38Z + supervisor 22:06:56Z CONCUR (α)
+ sentinel commit + W-RE-PARSER-DEOPT-DETACH workstream open.1 parent 25f0b96 commit 85ed449
1 file changed
Lines changed: 77 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
0 commit comments