Commit 56b7586
Stop crashing when parsing bad code size limits (#138)
Summary:
The use of JIT_CHECK here means that importing the module will crash the entire process if a bad code size limit is passed in. Use JIT_THROW_IF() instead, this will be caught by cinderx_exec() and convert to a proper RuntimeError.
Pull Request resolved: #138
Test Plan:
`uv run pytest cinderx/PythonLib`
no longer raises alerts on Fedora about `python3.14` crashes.
Reviewed By: yoney
Differential Revision: D114601511
Pulled By: alexmalyshev
fbshipit-source-id: 39b7a3b2611f4cc85b31cf36d4f21c59118750121 parent 3a4c7e9 commit 56b7586
2 files changed
Lines changed: 6 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
| 347 | + | |
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| |||
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | | - | |
375 | | - | |
| 374 | + | |
| 375 | + | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
379 | | - | |
| 378 | + | |
| 379 | + | |
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | | - | |
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
| |||
306 | 304 | | |
307 | 305 | | |
308 | 306 | | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
| 307 | + | |
315 | 308 | | |
316 | 309 | | |
317 | 310 | | |
| |||
0 commit comments