www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11370] New: core.simd segfault

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11370

           Summary: core.simd segfault
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: john.loughran.colvin gmail.com


--- Comment #0 from John Colvin <john.loughran.colvin gmail.com> 2013-10-28
18:50:29 GMT ---
The following program segfaults, with or without the __gshared:

import core.simd;

__gshared long2 v0;
__gshared long2 v1;

void main()
{
    v1 = v0;
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 28 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11370



--- Comment #1 from John Colvin <john.loughran.colvin gmail.com> 2013-10-28
19:20:12 GMT ---
I'm not sure where the initial problem is, but by the time we've got down to
machine level we get this:

0x425f74:  movdqa 0x231454(%rip),%xmm0  # 0x6573d0 
0x425f7c:  movdqa %xmm0,0x231454(%rip)  # 0x6573d8

Which is clearly not ok. For a start, long2 isn't 8 bytes wide. The segfault is
probably a GP from the ensuing misaligned store.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 28 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11370



--- Comment #2 from John Colvin <john.loughran.colvin gmail.com> 2013-10-29
08:15:56 GMT ---
Pretty sure it's not a backend issue as the same happens with gdc

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 29 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11370


Iain Buclaw <ibuclaw ubuntu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw ubuntu.com


--- Comment #3 from Iain Buclaw <ibuclaw ubuntu.com> 2013-10-29 02:17:43 PDT ---
I can't reproduce the segfault on gdc...

Disassembly:
movdqa 0x0(%rip),%xmm0
movaps %xmm0,0x0(%rip)

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