druntime thread (from foreach parallel?) cleanup bug
H. S. Teoh
hsteoh at qfbox.info
Tue Nov 1 17:27:59 UTC 2022
On Tue, Nov 01, 2022 at 05:19:56PM +0000, mw via Digitalmars-d-learn wrote:
> My program received signal SIGSEGV, Segmentation fault.
>
> Its simplified structure looks like this:
>
> ```
> void foo() {
> ...
> writeln("done"); // saw this got printed!
> }
>
> int main() {
> foo();
> return 0;
> }
>
> ```
Can you show a code snippet that includes the parallel foreach? Because
the above code snippet is over-simplified to the point it's impossible
to tell what the original problem might be, since obviously calling a
function that calls writeln would not crash the program.
Maybe try running Digger to reduce the code for you?
T
--
Never step over a puddle, always step around it. Chances are that whatever made it is still dripping.
More information about the Digitalmars-d-learn
mailing list