Can you reproduce this threading bug?
FeepingCreature
feepingcreature at gmail.com
Fri Jun 14 16:36:04 UTC 2019
Consider the following code:
void main()
{
import core.thread : Thread;
with (new Thread({ })) { isDaemon = true; start; }
}
On Linux, this builds and runs. Most of the time. Maybe 99% of
the time.
But if you run it in a loop:
while true; do ./test || break; done
You may see that it segfaults after a few seconds. At least, it
does for me on 2.080.0, Linux 4.18.0-20 x86_64.
This is obviously quite bad. Any ideas?
More information about the Digitalmars-d
mailing list