byteduck / duckOS

An x86 monolithic kernel and operating system written in modern C++. Comes with in-house graphical applications and command line utilities, plus ports of existing software. And yes, it runs DOOM!
GNU General Public License v3.0
618 stars 25 forks source link

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

Open ParfenovIgor opened 7 months ago

ParfenovIgor commented 7 months ago

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
byteduck commented 7 months ago

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!