www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17823] New: Declaration of a __vector leads to a segfault on

https://issues.dlang.org/show_bug.cgi?id=17823

          Issue ID: 17823
           Summary: Declaration of a __vector leads to a segfault on OSX
                    32bits
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Keywords: SIMD
          Severity: blocker
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: b2.temp gmx.com
            Blocks: 10444

test case:

#!dmd -unittest -main
unittest
{
    import core.simd;
    float4 f;
}

should crash at runtime w/ something like

0   test_runner                         0x014c622d
_D4core7runtime18runModuleUnitTestsUZ19unittestSegvHandlerUNbNiiPSQCm3sys5posix6signal9siginfo_tPvZv
+ 53
1   libsystem_platform.dylib            0x9cb5479b _sigtramp + 43
2   ???                                 0xffffffff 0x0 + 4294967295
3   test_runner                         0x0034474d _D3std6format9__modtestFZv +
421
4   test_runner                         0x00039fd8
D11test_runner6doTestFPS6object10ModuleInfoKbZv + 92
5   test_runner                         0x00039f02
D11test_runner11testModulesFZb + 326
6   test_runner                         0x00039db1 D11test_runner6testerFZb +
21
7   test_runner                         0x014c617c runModuleUnitTests + 188
8   test_runner                         0x014db132
D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZv + 38
9   test_runner                         0x014db0af
D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ7tryExecMFMDFZvZv + 35
10  test_runner                         0x014daff6 _d_run_main + 754
11  test_runner                         0x00039c58 main + 56
12  test_runner                         0x00039bf5 start + 53

Verified online with the autotester see
https://github.com/dlang/phobos/pull/5730

--
Sep 11