www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - How to fix LDC crash

reply Test123 <test123 gmail.com> writes:
Unknown class of D Type!
UNREACHABLE executed at /Users/runner/work/1/s/gen/tollvm.cpp:194!
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                     0x000000010de42287 
llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 39
1  ldc2                     0x000000010de40f46 
llvm::sys::RunSignalHandlers() + 198
2  ldc2                     0x000000010de428c0 SignalHandler(int) 
+ 272
3  libsystem_platform.dylib 0x00007ff815d09e2d _sigtramp + 29
4  libsystem_platform.dylib 0x0000000000000217 _sigtramp + 
18446603370214941703
5  libsystem_c.dylib        0x00007ff815c40d10 abort + 123
6  ldc2                     0x000000010dd804b2 
llvm::llvm_unreachable_internal(char const*, char const*, 
unsigned int) + 482
7  ldc2                     0x000000010e152aea DtoType(Type*) + 
1610
8  ldc2                     0x000000010e152cfb DtoMemType(Type*) 
+ 11
9  ldc2                     0x000000010e1528c2 DtoType(Type*) + 
1058
10 ldc2                     0x000000010e152cfb DtoMemType(Type*) 
+ 11
11 ldc2                     0x000000010e1528c2 DtoType(Type*) + 
1058
12 ldc2                     0x000000010e0e5da4 
DtoFunctionType(Type*, IrFuncTy&, Type*, Type*, FuncDeclaration*) 
+ 2020
13 ldc2                     0x000000010e0e8150 
DtoResolveFunction(FuncDeclaration*, bool) + 336
14 ldc2                     0x000000010e0e83a2 
DtoDeclareFunction(FuncDeclaration*, bool) + 50
15 ldc2                     0x000000010e0eb434 
DtoDefineFunction(FuncDeclaration*, bool) + 820
16 ldc2                     0x000000010e0fdfcf 
codegenModule(IRState*, Module*) + 4175
17 ldc2                     0x000000010e179df0 
ldc::CodeGenerator::emit(Module*) + 848
18 ldc2                     0x000000010e1959ee 
codegenModules(Array<Module*>&) + 766
19 ldc2                     0x000000010e09fed4 
mars_mainBody(Param&, Array<char const*>&, Array<char const*>&) + 
16708
Error: Error executing /usr/local/bin/ldc2: Abort trap: 6
Feb 12 2022
parent max haughton <maxhaton gmail.com> writes:
On Saturday, 12 February 2022 at 20:43:49 UTC, Test123 wrote:
 [...]
You need to work out the smallest possible file that triggers this error (a reduction, then file an issue on the ldc GitHub
Feb 12 2022