Thread overview
[Issue 6018] New: Multiple includes of std.parallelism causes DMD to segfault.
May 17, 2011
David Simcha
May 16, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6018

           Summary: Multiple includes of std.parallelism causes DMD to
                    segfault.
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: jcrapuchettes@gmail.com


--- Comment #0 from Jonathan Crapuchettes <jcrapuchettes@gmail.com> 2011-05-16 10:42:54 PDT ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 17, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6018


David Simcha <dsimcha@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dsimcha@yahoo.com


--- Comment #1 from David Simcha <dsimcha@yahoo.com> 2011-05-16 17:28:57 PDT ---
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?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 17, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6018



--- Comment #2 from Jonathan Crapuchettes <jcrapuchettes@gmail.com> 2011-05-17 09:18:52 PDT ---
Created an attachment (id=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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 21, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6018


Jonathan Crapuchettes <jcrapuchettes@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------