Skip to content
Snippets Groups Projects
Commit fcb0d5d4 authored by Andrey Saranchin's avatar Andrey Saranchin Committed by Aleksandr Lyapunov
Browse files

box: fix crash when on_shutdown trigger is removed

Since on_shutdown triggers are fired asynchronously in their own fibers,
they are not referenced by `event_trigger_iterator`. That's why, if
on_shutdown trigger is deleted while it is running (or is scheduled to
run), it will be instantly removed, and when it is finished, segmentation
fault will happen on its finalizer (`func_adapter_end`). Let's reference
all on_shutdown triggers to prevent such situation - they will be deleted
soon along with the whole event subsystem.

Closes #9275

NO_CHANGELOG=bugfix for unreleased feature
NO_DOC=bugfix
parent defeeeed
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment