How to call stop from parallel foreach

jfondren julian.fondren at gmail.com
Fri Jun 25 15:16:30 UTC 2021


On Friday, 25 June 2021 at 14:44:13 UTC, seany wrote:
>>
>> This particular location does not cause segfault.
>> It is segfaulting down the line in a completely unrelated 
>> location... Wait I will try to make a MWP.
>
> [Here is MWP](https://github.com/naturalmechanics/mwp).
>
> Please compile with `dub build -b release --compiler=ldc2 `. 
> Then to run, please use : `./tracker_ai --filename 
> 21010014-86.ptl `

With ldc2 this segfaults for me even if std.parallelism is removed
entirely. With DMD and std.parallelism removed it runs to 
completion.
With DMD and no changes it never seems to finish.

I reckon that there's some other memory error and that the 
parallelism
is unrelated.


More information about the Digitalmars-d-learn mailing list