First post, by superfury
When the x86 CPU switches tasks because of a fault(e.g. general protection fault pointing to a task gate), switches to the general protection fault task(incoming task) and tries to push the error code, which fails due to an stack fault. Will the stack fault become a double fault? It probably will, but I'm not sure(it cannot store the fault information for the original fault, and triggering another fault will cause that information to be lost(when returning to the general protection handler, no error code is available anymore).
Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io