Skip to content
Snippets Groups Projects
Commit 322a13fc authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

[gh-177] Fix a crash at shutdown on an error in #! script.

When panic() is called from a fiber != sched, we
call atexit handlers and free all memory, including
runtime memory, including the memory used for fiber
stack.

Thus essentially freeing memory the fiber's stack is
using.

The very next instruction using the stack gets
a SIGSEGV afterwards.

Perhaps don't be so strict about freeing resources at
shutdown and do not shoot yourself in the foot.
parent cc076d0e
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