forked from goodboy/tractor
1
0
Fork 0
tractor/examples/debugging
Tyler Goodlet a0016bcdc8 A `.open_context()` example that causes a hang!
Finally! I think this may be the root issue we've been seeing in
production in a client project.

No idea yet why this is happening but the fault-causing sequence seems
to be:
- `.open_context()` in a child actor
- enter the debugger via `tractor.breakpoint()`
- continue from that entry via `c` command in REPL
- raise an error just after inside the context task's body

Looking at logging it appears as though the child thinks it has the tty
but no input is accepted on the REPL and a further `ctrl-c` results in
some teardown but also a further hang where both parent and child become
unresponsive..
2022-07-27 11:37:59 -04:00
..
fast_error_in_root_after_spawn.py Fix type path to new `_supervise` mod 2021-10-23 15:54:40 -04:00
multi_daemon_subactors.py Drop `tractor.run()` from all examples 2021-05-07 11:21:40 -04:00
multi_nested_subactors_error_up_through_nurseries.py Drop `tractor.run()` from all examples 2021-05-07 11:21:40 -04:00
multi_subactor_root_errors.py Adjust debugger tests to expect depth > 1 crashes 2021-10-14 13:39:46 -04:00
multi_subactors.py Drop `tractor.run()` from all examples 2021-05-07 11:21:40 -04:00
per_actor_debug.py Lol. should probably push the example code... 2021-12-10 12:48:05 -05:00
root_actor_breakpoint.py Drop `tractor.run()` from all examples 2021-05-07 11:21:40 -04:00
root_actor_breakpoint_forever.py Drop `tractor.run()` from all examples 2021-05-07 11:21:40 -04:00
root_actor_error.py Drop `tractor.run()` from all examples 2021-05-07 11:21:40 -04:00
root_cancelled_but_child_is_in_tty_lock.py Drop `tractor.run()` from all examples 2021-05-07 11:21:40 -04:00
root_timeout_while_child_crashed.py Docs and comments tidying 2021-08-01 10:44:13 -04:00
subactor_bp_in_ctx.py A `.open_context()` example that causes a hang! 2022-07-27 11:37:59 -04:00
subactor_breakpoint.py Drop `tractor.run()` from all examples 2021-05-07 11:21:40 -04:00
subactor_error.py Drop `tractor.run()` from all examples 2021-05-07 11:21:40 -04:00