Commit 90897ef
committed
Exclude print_state on Windows to fix access violation
On Windows, _dup() shares the underlying OS handle rather than
creating an independent copy. When fclose() closes the dup'd FILE*,
it invalidates the original handle, causing an access violation when
Python later closes its file object. Since print_state is only a
debugging tool, exclude it on Windows via #ifndef _WIN32.1 parent 822ff4c commit 90897ef
2 files changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
36 | 43 | | |
37 | 44 | | |
38 | 45 | | |
| |||
60 | 67 | | |
61 | 68 | | |
62 | 69 | | |
| 70 | + | |
| 71 | + | |
63 | 72 | | |
64 | 73 | | |
65 | 74 | | |
| |||
474 | 483 | | |
475 | 484 | | |
476 | 485 | | |
| 486 | + | |
477 | 487 | | |
478 | 488 | | |
479 | 489 | | |
| |||
500 | 510 | | |
501 | 511 | | |
502 | 512 | | |
| 513 | + | |
| 514 | + | |
503 | 515 | | |
504 | 516 | | |
505 | 517 | | |
| |||
524 | 536 | | |
525 | 537 | | |
526 | 538 | | |
| 539 | + | |
527 | 540 | | |
528 | 541 | | |
529 | 542 | | |
530 | 543 | | |
| 544 | + | |
531 | 545 | | |
532 | 546 | | |
533 | 547 | | |
| |||
0 commit comments