[Issue 21686] segfault if daemon thread is killed, interrupts syscall and throws exception

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 7 16:04:31 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=21686

Adam D. Ruppe <destructionator at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructionator at gmail.com

--- Comment #2 from Adam D. Ruppe <destructionator at gmail.com> ---
So you don't even need the throw to trigger the problem.

void worker()
{
    timespec s = timespec(time_t(10), 0);
    nanosleep(&s, null);
    asm { int 3; }
}

will random debug trap (the int 3 getting run), terminate cleanly (the thread
must be stopped by the main thing), or segfault.

--


More information about the Digitalmars-d-bugs mailing list