www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Compiler build error

reply Alex <sascha.orlov gmail.com> writes:
I'm a little bit confused by following situation:

I have code, say around 8000 lines. Now, I'm facing a build error 
which just says

dmd failed with exit code -11,

(same for ldc2, with some lines of stack information, which do 
not belong to my code)

0  ldc2                     0x0000000106fcc4e7 
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1  ldc2                     0x0000000106fcb9ea 
llvm::sys::RunSignalHandlers() + 83
2  ldc2                     0x0000000106fcc90e SignalHandler(int) 
+ 239
3  libsystem_platform.dylib 0x00007fff5992af5a _sigtramp + 26
4  libsystem_platform.dylib 0x000000015fcde600 _sigtramp + 
104543936
ldc2 failed with exit code -11.

As I'm compiling rather often, I know exactly which line in my 
code causes this error. As the compiler refuses to exit normally, 
I'm not sure, if the line is buggy (so, whether I'm trying to 
compile, something, what is not compilable) or, I'm facing an 
ICE. In both cases, I'm ready to rewrite my code a little bit to 
get around the error, as I need a solution quite fast.

My assumption is, that I built a kind of loop, which the compiler 
does not know how to get along. But in order to rewrite it, I 
have to know, what I have to rewrite... So, despite I know 
exactly the culprit line in my code, I don't have any information 
about how to solve the problem.

What I'm trying now is to use dustmite. But this, lasts for about 
8 hours now and is already at depth 20. Lacking experience with 
this tool, I'm not sure, if this is normal... The last time I 
tried to use it elsewhere, I got a final depth of 13, but also an 
empty file as its analysis result.

The command for dustmite was
dub dustmite ../dust --compiler-status=-11 --combined

Yes... the builds were also done with dub. So,
dub build
and
dub build --compiler=ldc2
respectively.

Any help is appreciated :)
Alex
Aug 04 2018
next sibling parent Alex <sascha.orlov gmail.com> writes:
On Saturday, 4 August 2018 at 12:21:36 UTC, Alex wrote:

Ok. Dustmite finished. But the result is again an empty file... :(
Aug 04 2018
prev sibling next sibling parent reply Nicholas Wilson <iamthewilsonator hotmail.com> writes:
On Saturday, 4 August 2018 at 12:21:36 UTC, Alex wrote:
 I'm a little bit confused by following situation:

 I have code, say around 8000 lines. Now, I'm facing a build 
 error which just says

 dmd failed with exit code -11,

 (same for ldc2, with some lines of stack information, which do 
 not belong to my code)

 0  ldc2                     0x0000000106fcc4e7 
 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
 1  ldc2                     0x0000000106fcb9ea 
 llvm::sys::RunSignalHandlers() + 83
 2  ldc2                     0x0000000106fcc90e 
 SignalHandler(int) + 239
 3  libsystem_platform.dylib 0x00007fff5992af5a _sigtramp + 26
 4  libsystem_platform.dylib 0x000000015fcde600 _sigtramp + 
 104543936
 ldc2 failed with exit code -11.
Is this the entire stack trace? If dmd is also affected chances it is a frontend bug.
 As I'm compiling rather often, I know exactly which line in my 
 code causes this error. As the compiler refuses to exit 
 normally, I'm not sure, if the line is buggy (so, whether I'm 
 trying to compile, something, what is not compilable) or, I'm 
 facing an ICE.
You are.
In both cases, I'm ready to rewrite my code a
 little bit to get around the error, as I need a solution quite 
 fast.

 My assumption is, that I built a kind of loop, which the 
 compiler does not know how to get along. But in order to 
 rewrite it, I have to know, what I have to rewrite... So, 
 despite I know exactly the culprit line in my code, I don't 
 have any information about how to solve the problem.

 What I'm trying now is to use dustmite. But this, lasts for 
 about 8 hours now and is already at depth 20. Lacking 
 experience with this tool, I'm not sure, if this is normal... 
 The last time I tried to use it elsewhere, I got a final depth 
 of 13, but also an empty file as its analysis result.

 The command for dustmite was
 dub dustmite ../dust --compiler-status=-11 --combined

 Yes... the builds were also done with dub. So,
 dub build
 and
 dub build --compiler=ldc2
 respectively.

 Any help is appreciated :)
 Alex
A complete stack trace would be a good start. If you can do enough manual bisection (git or semi-random deletion of potions of code) to post the code that would also be good.
Aug 04 2018
parent reply Alex <sascha.orlov gmail.com> writes:
On Saturday, 4 August 2018 at 13:26:01 UTC, Nicholas Wilson wrote:
 0  ldc2                     0x0000000106fcc4e7 
 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
 1  ldc2                     0x0000000106fcb9ea 
 llvm::sys::RunSignalHandlers() + 83
 2  ldc2                     0x0000000106fcc90e 
 SignalHandler(int) + 239
 3  libsystem_platform.dylib 0x00007fff5992af5a _sigtramp + 26
 4  libsystem_platform.dylib 0x000000015fcde600 _sigtramp + 
 104543936
 ldc2 failed with exit code -11.
Is this the entire stack trace? If dmd is also affected chances it is a frontend bug.
Well, on MacOs - yes. On a Linux, it is longer: /snap/ldc2/78/bin/ldc2(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x2a)[0x22914fa] /snap/ldc2/78/bin/ldc2(_ZN4llvm3sys17RunSignalHandlersEv+0x3e)[0x228f5be] /snap/ldc2/78/bin/ldc2[0x228f70c] /snap/core/current/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7fdb8258e390] /snap/ldc2/78/bin/ldc2(_D3dmd13expressionsem18functionParametersFS3dmd7globals3LocPS3dmd6dscope5ScopeC3dmd5mtype12TypeFunctionC3dmd5mtype4TypePS3dmd4root5array40__T5ArrayTC3dmd10expression10ExpressionZ5ArrayC3dmd4func15FuncDeclarationPC3dmd5mtype4TypePC3dmd10expression10ExpressionZb+0xbf3)[0xa636d3] /snap/ldc2/78/bin/ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0x35e4)[0xa6fdb4] /snap/ldc2/78/bin/ldc2(_D3dmd13expressionsem18resolvePropertiesXFPS3dmd6dscope5ScopeC3dmd10expression10ExpressionC3dmd10expression10ExpressionZC3dmd10expression10Expression+0xecc)[0xa625cc] /snap/ldc2/78/bin/ldc2(_Z17resolvePropertiesP5ScopeP10Expression+0x11)[0x917511] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x6d)[0xa4903d] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP14DebugStatement+0x5a)[0xa5c0fa] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6c)[0xa493cc] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xdf)[0xa4a04f] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP11IfStatement+0x686)[0xa53546] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6c)[0xa493cc] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xdf)[0xa4a04f] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP11IfStatement+0x686)[0xa53546] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6c)[0xa493cc] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP12ForStatement+0x502)[0xa4afe2] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6c)[0xa493cc] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xdf)[0xa4a04f] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP12ForStatement+0xee)[0xa4abce] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP16ForeachStatement+0x59ef)[0xa50c1f] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6c)[0xa493cc] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xdf)[0xa4a04f] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP21UnrolledLoopStatement+0x7b)[0xa49dfb] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP16ForeachStatement+0x71d)[0xa4b94d] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6c)[0xa493cc] /snap/ldc2/78/bin/ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1618)[0x906328] /snap/ldc2/78/bin/ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xea)[0x98602a] /snap/ldc2/78/bin/ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x27d)[0x8cd34d] /snap/ldc2/78/bin/ldc2(_D3dmd10expression7resolveFKxS3dmd7globals3LocPS3dmd6dscope5ScopeC3dmd7dsymbol7DsymbolbZC3dmd10expression10Expression+0x5fe)[0x8db2ee] /snap/ldc2/78/bin/ldc2(_ZN25ExpressionSemanticVisitor5visitEP13IdentifierExp+0x877)[0xa66a17] /snap/ldc2/78/bin/ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0xc0f)[0xa6d3df] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5b)[0xa4902b] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6c)[0xa493cc] /snap/ldc2/78/bin/ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1618)[0x906328] /snap/ldc2/78/bin/ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xea)[0x98602a] /snap/ldc2/78/bin/ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x27d)[0x8cd34d] /snap/ldc2/78/bin/ldc2(_D3dmd10expression7resolveFKxS3dmd7globals3LocPS3dmd6dscope5ScopeC3dmd7dsymbol7DsymbolbZC3dmd10expression10Expression+0x5fe)[0x8db2ee] /snap/ldc2/78/bin/ldc2(_ZN25ExpressionSemanticVisitor5visitEP13IdentifierExp+0x877)[0xa66a17] /snap/ldc2/78/bin/ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0xc0f)[0xa6d3df] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5b)[0xa4902b] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6c)[0xa493cc] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xdf)[0xa4a04f] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP11IfStatement+0x686)[0xa53546] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6c)[0xa493cc] /snap/ldc2/78/bin/ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1618)[0x906328] /snap/ldc2/78/bin/ldc2(_ZN16Semantic3Visitor5visitEP16TemplateInstance+0x126)[0x903ca6] /snap/ldc2/78/bin/ldc2(_D3dmd10dsymbolsem24templateInstanceSemanticFC3dmd9dtemplate16TemplateInstancePS3dmd6dscope5ScopePS3dmd4root5array40__T5ArrayTC3dmd10expression10ExpressionZ5ArrayZv+0xc1b)[0x91a92b] /snap/ldc2/78/bin/ldc2(_ZN25ExpressionSemanticVisitor5visitEP8ScopeExp+0xf8)[0xa68cd8] /snap/ldc2/78/bin/ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0x58b)[0xa6cd5b] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5b)[0xa4902b] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6c)[0xa493cc] /snap/ldc2/78/bin/ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1618)[0x906328] /snap/ldc2/78/bin/ldc2(_ZN16Semantic3Visitor5visitEP16TemplateInstance+0x126)[0x903ca6] /snap/ldc2/78/bin/ldc2(_D3dmd10dsymbolsem24templateInstanceSemanticFC3dmd9dtemplate16TemplateInstancePS3dmd6dscope5ScopePS3dmd4root5array40__T5ArrayTC3dmd10expression10ExpressionZ5ArrayZv+0xc1b)[0x91a92b] /snap/ldc2/78/bin/ldc2(_D3dmd9dtemplate15functionResolveFPS3dmd11declaration5MatchC3dmd7dsymbol7DsymbolS3dmd7globals3LocPS3dmd6dscope5ScopePS3dmd4root5array45__T5ArrayTC3dmd4root10rootobject10RootObjectZ5ArrayC3dmd5mtype4TypePS3dmd4root5array40__T5ArrayTC3dmd10expression10ExpressionZ5ArrayPPxaZv+0x175)[0x9185d5] /snap/ldc2/78/bin/ldc2(_Z15resolveFuncCallRK3LocP5ScopeP7DsymbolP5ArrayIP10RootObjectEP4TypePS6_IP10ExpressionEi+0x10d)[0x8cc31d] /snap/ldc2/78/bin/ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0x1d8e)[0xa6e55e] /snap/ldc2/78/bin/ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0x1c76)[0xa6e446] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP15ReturnStatement+0x313)[0xa57003] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6c)[0xa493cc] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xdf)[0xa4a04f] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP11IfStatement+0x686)[0xa53546] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6c)[0xa493cc] /snap/ldc2/78/bin/ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1618)[0x906328] /snap/ldc2/78/bin/ldc2(_ZN16Semantic3Visitor5visitEP16TemplateInstance+0x126)[0x903ca6] /snap/ldc2/78/bin/ldc2(_D3dmd10dsymbolsem24templateInstanceSemanticFC3dmd9dtemplate16TemplateInstancePS3dmd6dscope5ScopePS3dmd4root5array40__T5ArrayTC3dmd10expression10ExpressionZ5ArrayZv+0xc1b)[0x91a92b] /snap/ldc2/78/bin/ldc2(_D3dmd9dtemplate15functionResolveFPS3dmd11declaration5MatchC3dmd7dsymbol7DsymbolS3dmd7globals3LocPS3dmd6dscope5ScopePS3dmd4root5array45__T5ArrayTC3dmd4root10rootobject10RootObjectZ5ArrayC3dmd5mtype4TypePS3dmd4root5array40__T5ArrayTC3dmd10expression10ExpressionZ5ArrayPPxaZv+0x175)[0x9185d5] /snap/ldc2/78/bin/ldc2(_Z15resolveFuncCallRK3LocP5ScopeP7DsymbolP5ArrayIP10RootObjectEP4TypePS6_IP10ExpressionEi+0x10d)[0x8cc31d] /snap/ldc2/78/bin/ldc2(_D3dmd13expressionsem18resolvePropertiesXFPS3dmd6dscope5ScopeC3dmd10expression10ExpressionC3dmd10expression10ExpressionZC3dmd10expression10Expression+0x9e0)[0xa620e0] /snap/ldc2/78/bin/ldc2(_Z17resolvePropertiesP5ScopeP10Expression+0x11)[0x917511] /snap/ldc2/78/bin/ldc2(_ZN16InferTypeVisitor5visitEP14ExpInitializer+0x6f)[0x97dc5f] /snap/ldc2/78/bin/ldc2(_ZN22DsymbolSemanticVisitor5visitEP14VarDeclaration+0x30a)[0xa3125a] /snap/ldc2/78/bin/ldc2(_ZN25ExpressionSemanticVisitor5visitEP14DeclarationExp+0x91)[0xa70c51] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5b)[0xa4902b] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6c)[0xa493cc] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xdf)[0xa4a04f] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP12ForStatement+0x502)[0xa4afe2] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP14WhileStatement+0xaa)[0xa4a62a] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6c)[0xa493cc] /snap/ldc2/78/bin/ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1618)[0x906328] /snap/ldc2/78/bin/ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xea)[0x98602a] /snap/ldc2/78/bin/ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x27d)[0x8cd34d] /snap/ldc2/78/bin/ldc2(_D3dmd10expression7resolveFKxS3dmd7globals3LocPS3dmd6dscope5ScopeC3dmd7dsymbol7DsymbolbZC3dmd10expression10Expression+0x5fe)[0x8db2ee] /snap/ldc2/78/bin/ldc2(_ZN25ExpressionSemanticVisitor5visitEP13IdentifierExp+0x877)[0xa66a17] /snap/ldc2/78/bin/ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0xc0f)[0xa6d3df] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5b)[0xa4902b] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6c)[0xa493cc] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xdf)[0xa4a04f] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP11IfStatement+0x686)[0xa53546] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6c)[0xa493cc] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xdf)[0xa4a04f] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP11IfStatement+0x686)[0xa53546] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6c)[0xa493cc] /snap/ldc2/78/bin/ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1618)[0x906328] /snap/ldc2/78/bin/ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xea)[0x98602a] /snap/ldc2/78/bin/ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x27d)[0x8cd34d] /snap/ldc2/78/bin/ldc2(_D3dmd10expression7resolveFKxS3dmd7globals3LocPS3dmd6dscope5ScopeC3dmd7dsymbol7DsymbolbZC3dmd10expression10Expression+0x5fe)[0x8db2ee] /snap/ldc2/78/bin/ldc2(_ZN25ExpressionSemanticVisitor5visitEP13IdentifierExp+0x877)[0xa66a17] /snap/ldc2/78/bin/ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0xc0f)[0xa6d3df] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5b)[0xa4902b] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6c)[0xa493cc] /snap/ldc2/78/bin/ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1618)[0x906328] /snap/ldc2/78/bin/ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xea)[0x98602a] /snap/ldc2/78/bin/ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x27d)[0x8cd34d] /snap/ldc2/78/bin/ldc2(_D3dmd10expression7resolveFKxS3dmd7globals3LocPS3dmd6dscope5ScopeC3dmd7dsymbol7DsymbolbZC3dmd10expression10Expression+0x5fe)[0x8db2ee] /snap/ldc2/78/bin/ldc2(_ZN25ExpressionSemanticVisitor5visitEP13IdentifierExp+0x877)[0xa66a17] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5b)[0xa4902b] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6c)[0xa493cc] /snap/ldc2/78/bin/ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1618)[0x906328] /snap/ldc2/78/bin/ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xea)[0x98602a] /snap/ldc2/78/bin/ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x27d)[0x8cd34d] /snap/ldc2/78/bin/ldc2(_ZN25ExpressionSemanticVisitor5visitEP9DotVarExp+0xff)[0xa7451f] /snap/ldc2/78/bin/ldc2(_ZN10TypeStruct6dotExpEP5ScopeP10ExpressionP10Identifieri+0x108f)[0x8e07ff] /snap/ldc2/78/bin/ldc2(_D3dmd13expressionsem9semanticYFC3dmd10expression8DotIdExpPS3dmd6dscope5ScopeiZC3dmd10expression10Expression+0x299)[0x8d0409] /snap/ldc2/78/bin/ldc2(_ZN25ExpressionSemanticVisitor5visitEP8DotIdExp+0x1b)[0xa7433b] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5b)[0xa4902b] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6c)[0xa493cc] /snap/ldc2/78/bin/ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1618)[0x906328] /snap/ldc2/78/bin/ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xea)[0x98602a] /snap/ldc2/78/bin/ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x27d)[0x8cd34d] /snap/ldc2/78/bin/ldc2(_ZN25ExpressionSemanticVisitor5visitEP9DotVarExp+0xff)[0xa7451f] /snap/ldc2/78/bin/ldc2(_ZN10TypeStruct6dotExpEP5ScopeP10ExpressionP10Identifieri+0x108f)[0x8e07ff] /snap/ldc2/78/bin/ldc2(_D3dmd13expressionsem9semanticYFC3dmd10expression8DotIdExpPS3dmd6dscope5ScopeiZC3dmd10expression10Expression+0x299)[0x8d0409] /snap/ldc2/78/bin/ldc2(_ZN25ExpressionSemanticVisitor5visitEP8DotIdExp+0x1b)[0xa7433b] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5b)[0xa4902b] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6c)[0xa493cc] /snap/ldc2/78/bin/ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1618)[0x906328] /snap/ldc2/78/bin/ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xea)[0x98602a] /snap/ldc2/78/bin/ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x27d)[0x8cd34d] /snap/ldc2/78/bin/ldc2(_ZN25ExpressionSemanticVisitor5visitEP9DotVarExp+0xff)[0xa7451f] /snap/ldc2/78/bin/ldc2(_ZN10TypeStruct6dotExpEP5ScopeP10ExpressionP10Identifieri+0x108f)[0x8e07ff] /snap/ldc2/78/bin/ldc2(_D3dmd13expressionsem9semanticYFC3dmd10expression8DotIdExpPS3dmd6dscope5ScopeiZC3dmd10expression10Expression+0x299)[0x8d0409] /snap/ldc2/78/bin/ldc2(_ZN25ExpressionSemanticVisitor5visitEP8DotIdExp+0x1b)[0xa7433b] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5b)[0xa4902b] /snap/ldc2/78/bin/ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6c)[0xa493cc] /snap/ldc2/78/bin/ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1618)[0x906328] /snap/ldc2/78/bin/ldc2(_ZN16Semantic3Visitor5visitEP20AggregateDeclaration+0x92)[0x90d402] /snap/ldc2/78/bin/ldc2(_ZN16Semantic3Visitor5visitEP6Module+0x62)[0x904772] /snap/ldc2/78/bin/ldc2(_Z13mars_mainBodyR5ArrayIPKcES3_+0x148f)[0x9ade9f] /snap/ldc2/78/bin/ldc2(_Z7cppmainiPPc+0x1e5c)[0xb7003c] /snap/ldc2/78/bin/ldc2(_D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv+0xf)[0x233fdef] /snap/ldc2/78/bin/ldc2(_D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ7tryExecMFMDFZvZv+0x14)[0x233fd34] /snap/ldc2/78/bin/ldc2(_d_run_main+0x1f9)[0x233fc69] /snap/core/current/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fdb81510830] /snap/ldc2/78/bin/ldc2(_start+0x29)[0x8b7ee9]
Aug 04 2018
next sibling parent reply kinke <noone nowhere.com> writes:
On Saturday, 4 August 2018 at 18:12:05 UTC, Alex wrote:
 /snap/ldc2/78/bin/ldc2(_start+0x29)[0x8b7ee9]
You haven't specified the DMD version you are using. Your LDC is 'outdated', so make sure to first check whether it still fails with an up-to-date version before potentially wasting time.
Aug 04 2018
parent Alex <sascha.orlov gmail.com> writes:
On Saturday, 4 August 2018 at 22:50:49 UTC, kinke wrote:
 On Saturday, 4 August 2018 at 18:12:05 UTC, Alex wrote:
 /snap/ldc2/78/bin/ldc2(_start+0x29)[0x8b7ee9]
You haven't specified the DMD version you are using. Your LDC is 'outdated', so make sure to first check whether it still fails with an up-to-date version before potentially wasting time.
DMD64 D Compiler v2.081.1 and the output for LDC - the LLVM D compiler (1.8.0): based on DMD v2.078.3 and LLVM 5.0.1 built with LDC - the LLVM D compiler (0.17.5) is: /usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x2a)[0x7fb1945551fa] /usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1(_ZN4llvm3sys17RunSignalHandlersEv+0x56)[0x7fb194553416] /usr/lib/x86_64-linux-gnu/libLLVM-5.0.so.1(+0x7a754b)[0x7fb19455354b] /lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7fb193997890] ldc2(_D3dmd13expressionsem18functionParametersFS3dmd7globals3LocPS3dmd6dscope5ScopeC3dmd5mtype12TypeFunctionC3dmd5mtype4TypePS3dmd4root5array40__T5ArrayTC3dmd10expression10ExpressionZ5ArrayC3dmd4func15FuncDeclarationPC3dmd5mtype4TypePC3dmd10expression10ExpressionZb+0xd1e)[0x560e820d100e] ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0x338b)[0x560e820dd2fb] ldc2(_D3dmd13expressionsem18resolvePropertiesXFPS3dmd6dscope5ScopeC3dmd10expression10ExpressionC3dmd10expression10ExpressionZC3dmd10expression10Expression+0xcaa)[0x560e820cfb5a] ldc2(_Z17resolvePropertiesP5ScopeP10Expression+0x11)[0x560e81fe5201] ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x6e)[0x560e8219cd3e] ldc2(_ZN24StatementSemanticVisitor5visitEP14DebugStatement+0x5d)[0x560e821b0d6d] ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff] ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xf2)[0x560e8219ded2] ldc2(_ZN24StatementSemanticVisitor5visitEP11IfStatement+0x81d)[0x560e821a818d] ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff] ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xf2)[0x560e8219ded2] ldc2(_ZN24StatementSemanticVisitor5visitEP11IfStatement+0x81d)[0x560e821a818d] ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff] ldc2(_ZN24StatementSemanticVisitor5visitEP12ForStatement+0x707)[0x560e8219f197] ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff] ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xf2)[0x560e8219ded2] ldc2(_ZN24StatementSemanticVisitor5visitEP12ForStatement+0xfd)[0x560e8219eb8d] ldc2(_ZN24StatementSemanticVisitor5visitEP16ForeachStatement+0x5eb2)[0x560e821a5302] ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff] ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xf2)[0x560e8219ded2] ldc2(_ZN24StatementSemanticVisitor5visitEP21UnrolledLoopStatement+0x87)[0x560e8219dc77] ldc2(_ZN24StatementSemanticVisitor5visitEP16ForeachStatement+0x781)[0x560e8219fbd1] ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff] ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399] ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xf1)[0x560e82042c21] ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x28d)[0x560e81ffd29d] ldc2(_D3dmd10expression7resolveFS3dmd7globals3LocPS3dmd6dscope5ScopeC3dmd7dsymbol7DsymbolbZC3dmd10expression10Expression+0x45b)[0x560e82084feb] ldc2(_ZN25ExpressionSemanticVisitor5visitEP13IdentifierExp+0x898)[0x560e820d3e08] ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0x160f)[0x560e820db57f] ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5c)[0x560e8219cd2c] ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff] ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399] ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xf1)[0x560e82042c21] ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x28d)[0x560e81ffd29d] ldc2(_D3dmd10expression7resolveFS3dmd7globals3LocPS3dmd6dscope5ScopeC3dmd7dsymbol7DsymbolbZC3dmd10expression10Expression+0x45b)[0x560e82084feb] ldc2(_ZN25ExpressionSemanticVisitor5visitEP13IdentifierExp+0x898)[0x560e820d3e08] ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0x160f)[0x560e820db57f] ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5c)[0x560e8219cd2c] ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff] ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xf2)[0x560e8219ded2] ldc2(_ZN24StatementSemanticVisitor5visitEP11IfStatement+0x81d)[0x560e821a818d] ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff] ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399] ldc2(_ZN16Semantic3Visitor5visitEP16TemplateInstance+0x122)[0x560e8207c352] ldc2(_D3dmd10dsymbolsem24templateInstanceSemanticFC3dmd9dtemplate16TemplateInstancePS3dmd6dscope5ScopePS3dmd4root5array40__T5ArrayTC3dmd10expression10ExpressionZ5ArrayZv+0xc83)[0x560e82091233] ldc2(_ZN25ExpressionSemanticVisitor5visitEP8ScopeExp+0xf8)[0x560e820d63c8] ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0x58b)[0x560e820da4fb] ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5c)[0x560e8219cd2c] ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff] ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399] ldc2(_ZN16Semantic3Visitor5visitEP16TemplateInstance+0x122)[0x560e8207c352] ldc2(_D3dmd10dsymbolsem24templateInstanceSemanticFC3dmd9dtemplate16TemplateInstancePS3dmd6dscope5ScopePS3dmd4root5array40__T5ArrayTC3dmd10expression10ExpressionZ5ArrayZv+0xc83)[0x560e82091233] ldc2(_D3dmd9dtemplate15functionResolveFPS3dmd11declaration5MatchC3dmd7dsymbol7DsymbolS3dmd7globals3LocPS3dmd6dscope5ScopePS3dmd4root5array45__T5ArrayTC3dmd4root10rootobject10RootObjectZ5ArrayC3dmd5mtype4TypePS3dmd4root5array40__T5ArrayTC3dmd10expression10ExpressionZ5ArrayZv+0x183)[0x560e820a8a73] ldc2(_Z15resolveFuncCall3LocP5ScopeP7DsymbolP5ArrayIP10RootObjectEP4TypePS4_IP10ExpressionEi+0xfd)[0x560e81fe97bd] ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0x1e30)[0x560e820dbda0] ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0x1d03)[0x560e820dbc73] ldc2(_ZN24StatementSemanticVisitor5visitEP15ReturnStatement+0x328)[0x560e821abfb8] ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff] ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xf2)[0x560e8219ded2] ldc2(_ZN24StatementSemanticVisitor5visitEP11IfStatement+0x81d)[0x560e821a818d] ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff] ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399] ldc2(_ZN16Semantic3Visitor5visitEP16TemplateInstance+0x122)[0x560e8207c352] ldc2(_D3dmd10dsymbolsem24templateInstanceSemanticFC3dmd9dtemplate16TemplateInstancePS3dmd6dscope5ScopePS3dmd4root5array40__T5ArrayTC3dmd10expression10ExpressionZ5ArrayZv+0xc83)[0x560e82091233] ldc2(_D3dmd9dtemplate15functionResolveFPS3dmd11declaration5MatchC3dmd7dsymbol7DsymbolS3dmd7globals3LocPS3dmd6dscope5ScopePS3dmd4root5array45__T5ArrayTC3dmd4root10rootobject10RootObjectZ5ArrayC3dmd5mtype4TypePS3dmd4root5array40__T5ArrayTC3dmd10expression10ExpressionZ5ArrayZv+0x183)[0x560e820a8a73] ldc2(_Z15resolveFuncCall3LocP5ScopeP7DsymbolP5ArrayIP10RootObjectEP4TypePS4_IP10ExpressionEi+0xfd)[0x560e81fe97bd] ldc2(_D3dmd13expressionsem18resolvePropertiesXFPS3dmd6dscope5ScopeC3dmd10expression10ExpressionC3dmd10expression10ExpressionZC3dmd10expression10Expression+0x824)[0x560e820cf6d4] ldc2(_Z17resolvePropertiesP5ScopeP10Expression+0x11)[0x560e81fe5201] ldc2(_ZN16InferTypeVisitor5visitEP14ExpInitializer+0x6e)[0x560e82124ede] ldc2(_ZN22DsymbolSemanticVisitor5visitEP14VarDeclaration+0x31c)[0x560e82086f9c] ldc2(_ZN25ExpressionSemanticVisitor5visitEP14DeclarationExp+0xa8)[0x560e820de6d8] ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5c)[0x560e8219cd2c] ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff] ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xf2)[0x560e8219ded2] ldc2(_ZN24StatementSemanticVisitor5visitEP12ForStatement+0x707)[0x560e8219f197] ldc2(_ZN24StatementSemanticVisitor5visitEP14WhileStatement+0xaa)[0x560e8219e4ba] ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff] ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399] ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xf1)[0x560e82042c21] ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x28d)[0x560e81ffd29d] ldc2(_D3dmd10expression7resolveFS3dmd7globals3LocPS3dmd6dscope5ScopeC3dmd7dsymbol7DsymbolbZC3dmd10expression10Expression+0x45b)[0x560e82084feb] ldc2(_ZN25ExpressionSemanticVisitor5visitEP13IdentifierExp+0x898)[0x560e820d3e08] ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0x160f)[0x560e820db57f] ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5c)[0x560e8219cd2c] ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff] ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xf2)[0x560e8219ded2] ldc2(_ZN24StatementSemanticVisitor5visitEP11IfStatement+0x81d)[0x560e821a818d] ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff] ldc2(_ZN24StatementSemanticVisitor5visitEP14ScopeStatement+0xf2)[0x560e8219ded2] ldc2(_ZN24StatementSemanticVisitor5visitEP11IfStatement+0x81d)[0x560e821a818d] ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff] ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399] ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xf1)[0x560e82042c21] ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x28d)[0x560e81ffd29d] ldc2(_D3dmd10expression7resolveFS3dmd7globals3LocPS3dmd6dscope5ScopeC3dmd7dsymbol7DsymbolbZC3dmd10expression10Expression+0x45b)[0x560e82084feb] ldc2(_ZN25ExpressionSemanticVisitor5visitEP13IdentifierExp+0x898)[0x560e820d3e08] ldc2(_ZN25ExpressionSemanticVisitor5visitEP7CallExp+0x160f)[0x560e820db57f] ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5c)[0x560e8219cd2c] ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff] ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399] ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xf1)[0x560e82042c21] ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x28d)[0x560e81ffd29d] ldc2(_D3dmd10expression7resolveFS3dmd7globals3LocPS3dmd6dscope5ScopeC3dmd7dsymbol7DsymbolbZC3dmd10expression10Expression+0x45b)[0x560e82084feb] ldc2(_ZN25ExpressionSemanticVisitor5visitEP13IdentifierExp+0x898)[0x560e820d3e08] ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5c)[0x560e8219cd2c] ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff] ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399] ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xf1)[0x560e82042c21] ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x28d)[0x560e81ffd29d] ldc2(_ZN25ExpressionSemanticVisitor5visitEP9DotVarExp+0x11a)[0x560e820e7fca] ldc2(_ZN10TypeStruct6dotExpEP5ScopeP10ExpressionP10Identifieri+0x104e)[0x560e82151fae] ldc2(_D3dmd13expressionsem9semanticYFC3dmd10expression8DotIdExpPS3dmd6dscope5ScopeiZC3dmd10expression10Expression+0x29e)[0x560e820bf04e] ldc2(_ZN25ExpressionSemanticVisitor5visitEP8DotIdExp+0x1e)[0x560e820e7dae] ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5c)[0x560e8219cd2c] ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff] ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399] ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xf1)[0x560e82042c21] ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x28d)[0x560e81ffd29d] ldc2(_ZN25ExpressionSemanticVisitor5visitEP9DotVarExp+0x11a)[0x560e820e7fca] ldc2(_ZN10TypeStruct6dotExpEP5ScopeP10ExpressionP10Identifieri+0x104e)[0x560e82151fae] ldc2(_D3dmd13expressionsem9semanticYFC3dmd10expression8DotIdExpPS3dmd6dscope5ScopeiZC3dmd10expression10Expression+0x29e)[0x560e820bf04e] ldc2(_ZN25ExpressionSemanticVisitor5visitEP8DotIdExp+0x1e)[0x560e820e7dae] ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5c)[0x560e8219cd2c] ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff] ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399] ldc2(_ZN15FuncDeclaration17functionSemantic3Ev+0xf1)[0x560e82042c21] ldc2(_ZN15FuncDeclaration16functionSemanticEv+0x28d)[0x560e81ffd29d] ldc2(_ZN25ExpressionSemanticVisitor5visitEP9DotVarExp+0x11a)[0x560e820e7fca] ldc2(_ZN10TypeStruct6dotExpEP5ScopeP10ExpressionP10Identifieri+0x104e)[0x560e82151fae] ldc2(_D3dmd13expressionsem9semanticYFC3dmd10expression8DotIdExpPS3dmd6dscope5ScopeiZC3dmd10expression10Expression+0x29e)[0x560e820bf04e] ldc2(_ZN25ExpressionSemanticVisitor5visitEP8DotIdExp+0x1e)[0x560e820e7dae] ldc2(_ZN24StatementSemanticVisitor5visitEP12ExpStatement+0x5c)[0x560e8219cd2c] ldc2(_ZN24StatementSemanticVisitor5visitEP17CompoundStatement+0x6f)[0x560e8219d1ff] ldc2(_ZN16Semantic3Visitor5visitEP15FuncDeclaration+0x1779)[0x560e8207e399] ldc2(_ZN16Semantic3Visitor5visitEP20AggregateDeclaration+0x8e)[0x560e820863ee] ldc2(_ZN16Semantic3Visitor5visitEP6Module+0x6d)[0x560e8207c9ad] ldc2(_Z13mars_mainBodyR5ArrayIPKcES3_+0x1782)[0x560e82144af2] ldc2(_Z7cppmainiPPc+0x2170)[0x560e8226a6a0] ldc2(_D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv+0xf)[0x560e82344daf] ldc2(_D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ7tryExecMFMDFZvZv+0x14)[0x560e82344cf4] ldc2(_d_run_main+0x203)[0x560e82344c13] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7fb192c71b97] ldc2(_start+0x2a)[0x560e81fde51a] Segmentation fault (core dumped) ldc2 failed with exit code 139.
Aug 04 2018
prev sibling parent reply Nicholas Wilson <iamthewilsonator hotmail.com> writes:
On Saturday, 4 August 2018 at 18:12:05 UTC, Alex wrote:
 On Saturday, 4 August 2018 at 13:26:01 UTC, Nicholas Wilson 
 wrote:
 0  ldc2                     0x0000000106fcc4e7 
 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
 1  ldc2                     0x0000000106fcb9ea 
 llvm::sys::RunSignalHandlers() + 83
 2  ldc2                     0x0000000106fcc90e 
 SignalHandler(int) + 239
 3  libsystem_platform.dylib 0x00007fff5992af5a _sigtramp + 26
 4  libsystem_platform.dylib 0x000000015fcde600 _sigtramp + 
 104543936
 ldc2 failed with exit code -11.
Is this the entire stack trace? If dmd is also affected chances it is a frontend bug.
Well, on MacOs - yes. On a Linux, it is longer: [snip]
That is a very long stacks trace and combined with the very short stack trace on OSX, this is probably a stack overflow. 1) Do you have any very deeply nested types/templates somewhere or somehow created a cyclic dependency in semantic analysis? 2) Can you try with a bigger stack (ulimit -s)? If it still fails then its probably 1.
Aug 04 2018
parent reply Alex <sascha.orlov gmail.com> writes:
On Sunday, 5 August 2018 at 01:15:07 UTC, Nicholas Wilson wrote:
 On Saturday, 4 August 2018 at 18:12:05 UTC, Alex wrote:
 On Saturday, 4 August 2018 at 13:26:01 UTC, Nicholas Wilson
That is a very long stacks trace and combined with the very short stack trace on OSX, this is probably a stack overflow. 1) Do you have any very deeply nested types/templates somewhere or somehow created a cyclic dependency in semantic analysis? 2) Can you try with a bigger stack (ulimit -s)? If it still fails then its probably 1.
:) I assumed this at the beginning too... The structures are not very deep, say 3-4 levels. But yes, I do have something like a loop you mentioned. I'm trying to get rid of this right now. I hoped, if the compiler has problems with my construct, it would help me to find a better start place for this... However, if I take your description: Is there a general way, to solve a cyclic dependency during the semantic analysis step? I mean, I'm trying to lowering logic in my code somehow, but the loop I need won't go away per se...
Aug 05 2018
parent Nicholas Wilson <iamthewilsonator hotmail.com> writes:
On Sunday, 5 August 2018 at 10:12:39 UTC, Alex wrote:
 On Sunday, 5 August 2018 at 01:15:07 UTC, Nicholas Wilson wrote:
 On Saturday, 4 August 2018 at 18:12:05 UTC, Alex wrote:
 On Saturday, 4 August 2018 at 13:26:01 UTC, Nicholas Wilson
That is a very long stacks trace and combined with the very short stack trace on OSX, this is probably a stack overflow. 1) Do you have any very deeply nested types/templates somewhere or somehow created a cyclic dependency in semantic analysis? 2) Can you try with a bigger stack (ulimit -s)? If it still fails then its probably 1.
:) I assumed this at the beginning too... The structures are not very deep, say 3-4 levels. But yes, I do have something like a loop you mentioned. I'm trying to get rid of this right now. I hoped, if the compiler has problems with my construct, it would help me to find a better start place for this... However, if I take your description: Is there a general way, to solve a cyclic dependency during the semantic analysis step? I mean, I'm trying to lowering logic in my code somehow, but the loop I need won't go away per se...
I can't really know without seeing the code, but if you can move the body of the loop into its own template that might work.
Aug 05 2018
prev sibling parent reply kinke <noone nowhere.com> writes:
You're most likely hitting an ICE in the front-end (as both 
compilers crash). What you can always do is invoke the compiler 
in a GDB session. That's especially useful with an LDC CI build 
(download: 
https://github.com/ldc-developers/ldc/releases/tag/CI), as it 
features debuginfos and enabled LLVM/LDC assertions.

Please file an issue once you narrowed it down a little, ideally 
with a small reproducible test case.
Aug 04 2018
next sibling parent kinke <noone nowhere.com> writes:
On Saturday, 4 August 2018 at 13:29:36 UTC, kinke wrote:
 [...] as it features debuginfos
Sorry, scrach that (it used to for the Windows CI build but doesn't anymore).
Aug 04 2018
prev sibling parent Alex <sascha.orlov gmail.com> writes:
On Saturday, 4 August 2018 at 13:29:36 UTC, kinke wrote:
 You're most likely hitting an ICE in the front-end (as both 
 compilers crash). What you can always do is invoke the compiler 
 in a GDB session. That's especially useful with an LDC CI build 
 (download: 
 https://github.com/ldc-developers/ldc/releases/tag/CI), as it 
 features debuginfos and enabled LLVM/LDC assertions.

 Please file an issue once you narrowed it down a little, 
 ideally with a small reproducible test case.
Ok... the longest part was: how to get the compilation string from dub :) so, got the equivalent to dub build (with dmd) started with gdb under Ubuntu and received after 10-20 seconds: Program received signal SIGSEGV, Segmentation fault. 0x00000000006045ce in _D3dmd13expressionsem18functionParametersFSQBp7globals3LocPSQCg6dscope5ScopeCQCx5mtype12TypeFunctionCQDvQy4TypePSQEh4root5array__T5ArrayTCQFg10expression10ExpressionZQBkCQGm4func15FuncD clarationPQDsPQClZb () I'm not sure, how to shorten my code at this moment... So, if the traces don't help, let me know, I would spend some more time on this...
Aug 04 2018