digitalmars.D.learn - ldc2 crashes when trying to compile my app
- Per =?UTF-8?B?Tm9yZGzDtnc=?= (51/51) Sep 01 2018 per:~/Work/knet] $ dub run --compiler=ldmd2
- kinke (10/11) Sep 01 2018 `_Z7DtoLValP6DValue` may be suitable. - I don't use dustmite and
- Per =?UTF-8?B?Tm9yZGzDtnc=?= (5/6) Sep 01 2018 Is this a C++-symbol?
- Per =?UTF-8?B?Tm9yZGzDtnc=?= (6/12) Sep 01 2018 It's C++.
per:~/Work/knet] $ dub run --compiler=ldmd2 --build=release-nobounds The determined compiler type "ldc" doesn't match the expected type "dmd". This will probably result in build errors. WARNING: A deprecated branch based version specification is used for the dependency gmp-d. Please use numbered versions instead. Also note that you can still use the dub.selections.json file to override a certain dependency to use a branch instead. WARNING: A deprecated branch based version specification is used for the dependency knet:phobos-next. Please use numbered versions instead. Also note that you can still use the dub.selections.json file to override a certain dependency to use a branch instead. Warning: License in subpackage knet:phobos-next is different than it's parent package, this is discouraged. Performing "release-nobounds" build using ldmd2 for x86_64. gmp-d ~master: target for configuration "library" is up to date. knet:phobos-next ~master: building configuration "library"... knet ~master: building configuration "application"... /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x1a)[0x28919ba] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2(_ZN4llvm3sys17RunSignalHandlersEv+0x3e)[0x288fc7e] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2[0x288fda2] /lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7f998c24e890] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2(_Z7DtoLValP6DValue+0xa)[0xcebd3a] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2(_Z15DtoCallFunctionR3LocP4TypeP6DValueP5ArrayIP10ExpressionEPN4llvm5ValueE+0xb34)[0xc86fe4] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2[0xc90eab] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2[0xc9116f] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2(_Z6toElemP10Expression+0x6d)[0xc8ca0d] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2[0xc92426] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2(_Z6toElemP10Expression+0x6d)[0xc8ca0d] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2(_Z17DtoVarDeclarationP14VarDeclaration+0x7e)[0xc4882e] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2(_Z17DtoDeclarationExpP7Dsymbol+0x1d1)[0xc4b8e1] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2[0xc8e806] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2(_Z10toElemDtorP10Expression+0x6d)[0xc8dced] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2[0xc79b40] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2[0xc7b2b4] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2[0xc7b2b4] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2[0xc7acfe] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2(_Z14Statement_toIRP9StatementP7IRState+0x24)[0xc79744] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2(_Z17DtoDefineFunctionP15FuncDeclarationb+0xc49)[0xc3ee49] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2[0xc33d63] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2(_Z19Declaration_codegenP7DsymbolP7IRState+0x24)[0xc367a4] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2(_Z13codegenModuleP7IRStateP6Module+0xa5)[0xc56135] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2(_ZN3ldc13CodeGenerator4emitEP6Module+0x99)[0xd02939] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2(_Z14codegenModulesR5ArrayIP6ModuleE+0x186)[0xcd8716] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2(_Z13mars_mainBodyR5ArrayIPKcES3_+0x1aa0)[0xafaa60] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2(_Z7cppmainiPPc+0x1e17)[0xcd6507] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2(_D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZv+0x50)[0x29d67c0] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2(_d_run_main+0x1a6)[0x29d6646] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7f998b8b6b97] /home/per/.local/ldc2-1.11.0-linux-x86_64/bin/ldc2[0xa22525] What should I grep for when trying to Dustmite this?
Sep 01 2018
On Saturday, 1 September 2018 at 19:35:53 UTC, Per Nordlöw wrote:What should I grep for when trying to Dustmite this?`_Z7DtoLValP6DValue` may be suitable. - I don't use dustmite and prefer manual minimization; e.g., by adding `-vv > bla.log` to the crashing commandline. The last lines in that (pretty huge) log file should give you an idea of which function call makes it crash, and possibly even why (it's apparently expecting something in memory which isn't). Of further help may be a CI build with enabled assertions, downloadable from https://github.com/ldc-developers/ldc/releases/CI.
Sep 01 2018
On Saturday, 1 September 2018 at 19:52:14 UTC, kinke wrote:`_Z7DtoLValP6DValue` may be suitable...Is this a C++-symbol? import core.demangle; demangle("_Z7DtoLValP6DValue") returns the same string...
Sep 01 2018
On Saturday, 1 September 2018 at 20:35:52 UTC, Per Nordlöw wrote:On Saturday, 1 September 2018 at 19:52:14 UTC, kinke wrote:It's C++. Demangled via c++filt -n _Z7DtoLValP6DValue returns DtoLVal(DValue*)`_Z7DtoLValP6DValue` may be suitable...Is this a C++-symbol? import core.demangle; demangle("_Z7DtoLValP6DValue") returns the same string...
Sep 01 2018