byteduck/duckOS

[BUG] Error if exit in terminal and then close it

Opened this issue · 1 comments

Logs

If I open Terminal, enter exit and then close the terminal, then following error on red screen appears:

Whoops! Something terrible happened.
If you weren't expecting this, please open an issue on GitHub to report it.
Here are the details:
Assertion failed: _state == ALIVE || _state == STOPPED
In pid: 14 (terminal) tid: 14
/home/runner/work/duckOS/duckOS/kernel/tasking/Process.cpp at line 249

Screenshot

error

Environment

Host OS is Windows 10.
Virtualization Software is QEMU 8.2.0.
qemu-system-x86_64 is used.

To Reproduce

  1. Wait until OS is ready to work
  2. Open Terminal
  3. Enter exit
  4. Close Terminal

Seems to be an issue with the way the reaper task works - this seems to happen a lot. I'll look into it, thank you!