www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22846] New: [REG 2.066] SIGBUS, Bus error in _d_newarrayiT

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

          Issue ID: 22846
           Summary: [REG 2.066] SIGBUS, Bus error in _d_newarrayiT
           Product: D
           Version: D2
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

Introduced by https://github.com/dlang/druntime/pull/760

See:
https://github.com/dlang/druntime/blob/c2bea906ffa490236029888b138050d342339862/src/rt/lifetime.d#L842-L849

Example of where an 8-byte struct has a 4-byte alignment:
https://github.com/dlang/dmd/blob/925f5279db223d398f7b0a0b9725537dccc25bf4/test/runnable/sdtor.d#L179-L199

--
Mar 04 2022