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



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




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:




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




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



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