Commit cc6df48
committed
Add null checks to io_callback and timer_callback in libev wrapper
This extends the segmentation fault fix to cover all libev callbacks that
access Python objects during shutdown.
Changes:
1. Add null checks in io_callback() before accessing self->callback
2. Add null checks in timer_callback() before accessing self->callback
These prevent race conditions similar to the prepare_callback issue where
libev callbacks could execute after Python objects are destroyed during
driver shutdown.1 parent bf4fb02 commit cc6df48
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
122 | 128 | | |
123 | 129 | | |
124 | 130 | | |
| |||
477 | 483 | | |
478 | 484 | | |
479 | 485 | | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
480 | 490 | | |
481 | 491 | | |
482 | 492 | | |
| |||
0 commit comments