Repository navigation
Commit b16dff7
committed
Phase 5.B c22b-mech amend-3: fix (3-gate) per testkeeper 16:03:00Z FAIL.
Two root causes diagnosed by testkeeper:
- (A) script bug: EXTRA_CXXFLAGS env var not consumed by build_phoenix.sh
(it expects EXTRA_CMAKE_FLAGS); -DJIT_TEST_VARIADIC_BRIDGE never reached
the cmake compile flags -> shadow-emit divergence path was compiled out
- (B) test-fixture inadequacy: fib(10) uses small interned ints whose
refcount never decreases to zero, so MakeDecref dealloc-fallthrough
generates site 600 in compiled code but never executes it at runtime.
(Pythia python#376 second-order risk lands empirically.)
Fix:
- (A) EXTRA_CXXFLAGS -> EXTRA_CMAKE_FLAGS=" -DJIT_TEST_VARIADIC_BRIDGE=1
-DJIT_TEST_EXERCISE=1" (also forces counter into release build for
diagnostic disambiguation)
- (B) Replace fib(10) with stress fixture: 1000 iters of [None]*100 list
alloc + dealloc; lists are not interned, deallocs reach _Py_Dealloc
Diagnostic added: counter delta surfaced inline. If counter == 0 even with
EXERCISE flag, FAIL-DIAGNOSTIC explicit (site re-selection for c23+).
Disambiguates (3-gate) FAIL between mechanism bug and traversal inference
failure.
Self-attribution: third amendment cycle on c22b-mech demonstrates the
recursive split from c22 -> c22a + c22b-api + c22b-mech accretes
verification debt. Pythia python#380 escape-hatch concern compounds — this fix
restores (3-gate) falsifiability but the FAIL surfaced only because
testkeeper invoked the opt-in env-var. Without explicit invocation the
mechanism degraded silently (script bug on first execution).1 parent 9ba37f8 commit b16dff7
1 file changed
Lines changed: 35 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
169 | 173 | | |
170 | | - | |
| 174 | + | |
171 | 175 | | |
172 | 176 | | |
173 | | - | |
| 177 | + | |
| 178 | + | |
174 | 179 | | |
175 | 180 | | |
176 | 181 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
183 | 203 | | |
184 | 204 | | |
| 205 | + | |
| 206 | + | |
185 | 207 | | |
186 | | - | |
187 | | - | |
| 208 | + | |
188 | 209 | | |
189 | 210 | | |
190 | 211 | | |
| |||
0 commit comments