Comment #0 by jcrapuchettes — 2011-05-16T10:42:54Z
If a project includes several files and each has a private import of std.parallelism, DMD will segfault. If the imports are moved to a single public import, the compilation will finish correctly.
Comment #1 by dsimcha — 2011-05-16T17:28:57Z
Can you elaborate a little? I haven't been seeing this. Specifically, have you been compiling all the files together or separately? Can you create a small test case?
Comment #2 by jcrapuchettes — 2011-05-17T09:18:52Z
Created attachment 978
DMD2 -v output
I just tried to create a simple test case, but couldn't get it to break. I am including the output from DMD with -v. As you can see all of the files were compiled together. I did notice, after commenting out one file, that DMD always died just after outputting "function this". This makes me wonder if it has some connection to
auto varPool = taskPool.workerLocalStorage(new ThreadStore());
but that isn't based on actual evidence.
I hope this helps a little. I would be happy to send you the files privately, but I can't post them as they belong to the company I work for.