Skip to content

ICE - 1.34.0 on Apple Silicon BaseBitcastABIRewrite::put #4489

Closed
@pinver

Description

@pinver

Reduced with dustmite from a complex codebase, building the following:

import std;
Nullable!(float[3]) _intersect_ray_plane(
){
    float[3] intersection ;
    return Nullable!(float[3])(intersection);
}

With ldc-1.34.0/bin/ldc2 -preview=dip1000 results in:

Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  ldc2                     0x0000000102bfb7e0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  ldc2                     0x0000000102bfa838 llvm::sys::RunSignalHandlers() + 72
2  ldc2                     0x0000000102bfbe34 SignalHandler(int) + 304
3  libsystem_platform.dylib 0x000000019266aa24 _sigtramp + 56
4  ldc2                     0x00000001028eadd4 llvm::DataLayout::getABITypeAlign(llvm::Type*) const + 16
5  ldc2                     0x00000001028eadd4 llvm::DataLayout::getABITypeAlign(llvm::Type*) const + 16
6  ldc2                     0x0000000102f15444 BaseBitcastABIRewrite::put(DValue*, bool, bool) + 92
7  ldc2                     0x0000000102fb6924 IrFuncTy::putArg(IrFuncTyArg const&, DValue*, bool, bool) + 172
8  ldc2                     0x0000000102f8aadc DtoCallFunction(Loc const&, Type*, DValue*, Array<Expression*>*, llvm::Value*) + 3264
9  ldc2                     0x0000000102fa1acc ToElemVisitor::call(IRState*, CallExp*, llvm::Value*) + 1056
10 ldc2                     0x0000000102f95094 ToElemVisitor::visit(CallExp*) + 28
11 ldc2                     0x0000000102f7efcc ToIRVisitor::visit(ReturnStatement*) + 996
12 ldc2                     0x0000000102f8594c ToIRVisitor::visit(CompoundStatement*) + 304
13 ldc2                     0x0000000102f8594c ToIRVisitor::visit(CompoundStatement*) + 304
14 ldc2                     0x0000000102f49e7c DtoDefineFunction(FuncDeclaration*, bool) + 6244
15 ldc2                     0x0000000102f5ac84 codegenModule(IRState*, Module*) + 3108
16 ldc2                     0x0000000102fce50c ldc::CodeGenerator::emit(Module*) + 216
17 ldc2                     0x0000000102fe3e40 codegenModules(Array<Module*>&) + 944
18 ldc2                     0x0000000102efd56c mars_mainBody(Param&, Array<char const*>&, Array<char const*>&) + 1316
19 ldc2                     0x00000001031a1b74 _D2rt6dmain212_d_run_main2UAAamPUQgZiZ6runAllMFZv + 116
20 ldc2                     0x00000001031a1698 _d_run_main + 148
21 ldc2                     0x0000000102fe0fcc main + 744
22 dyld                     0x00000001922e3f28 start + 2236
zsh: segmentation fault  /Users/pinver/dlang/ldc-1.34.0/bin/ldc2 -preview=dip1000 -v -i -Isrc 

M2 Apple with macOS 13.5.1 using downloaded 1.34.0 from the project releases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions