digitalmars.D.bugs - [Issue 21293] New: cxx-headers-test build target segfaults
- d-bugmail puremagic.com (103/103) Oct 05 2020 https://issues.dlang.org/show_bug.cgi?id=21293
https://issues.dlang.org/show_bug.cgi?id=21293 Issue ID: 21293 Summary: cxx-headers-test build target segfaults Product: D Version: D2 Hardware: x86_64 OS: Mac OS X Status: NEW Severity: major Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: doob me.com Running `./src/build.d cxx-headers-test` results in a segmentation fault on macOS. Is the invocation of DMD that fails. Running the DMD command (which is printed when `./src/build.d cxx-headers-test`) inside a debugger results in this stacktrace: (lldb) r Process 40315 launched: 'dlang/dmd/generated/osx/release/64/dmd' (x86_64) Process 40315 stopped (code=1, address=0x0) dmd`_D3dmd4root5array__T5ArrayTCQBa7dsymbol7DsymbolZQBc7opSliceMNgFNaNbNiNfZANgCQCwQBwQBr at array.d:305 302 303 extern (D) inout(T)[] opSlice() inout nothrow pure nogc 304 { -> 305 return data[0 .. length]; 306 } 307 308 extern (D) inout(T)[] opSlice(size_t a, size_t b) inout nothrow pure nogc Target 0: (dmd) stopped. (lldb) bt (code=1, address=0x0) dmd`_D3dmd4root5array__T5ArrayTCQBa7dsymbol7DsymbolZQBc7opSliceMNgFNaNbNiNfZANgCQCwQBwQBr at array.d:305 dtoh.d:1252 denum.d:367 dtoh.d:1497 FuncDeclaration*) at dtoh.d:1734 dtoh.d:579 func.d:2569 dtoh.d:1157 dclass.d:982 dtoh.d:1095 dtoh.d:1136 dclass.d:982 dtoh.d:1095 dtoh.d:1136 dclass.d:982 dtoh.d:456 dmd`ParseTimeVisitor<ASTCodegen>::visit(StorageClassDeclaration*) at parsetimevisitor.d:77 at attrib.d:324 dtoh.d:456 dtoh.d:479 attrib.d:432 dmodule.d:1485 dtoh.d:245 dmd`_D3dmd4mars7tryMainFmPPxaKSQz7globals5ParamZi at mars.d:674 dmd`_D2rt6dmain212_d_run_main2UAAamPUQgZiZ6runAllMFZ9__lambda1MFZv + 31 dmd`_D2rt6dmain212_d_run_main2UAAamPUQgZiZ7tryExecMFMDFZvZv + 33 dmd`_D2rt6dmain212_d_run_main2UAAamPUQgZiZ6runAllMFZv + 139 dmd`_D2rt6dmain212_d_run_main2UAAamPUQgZiZ7tryExecMFMDFZvZv + 33 --
Oct 05 2020