Repository: ldc-developers/ldc

Issue #1989: LLVM assertion wrt. debuginfos and optimizing/inlining
Created: 2017-01-30T16:11:34Z
In master 3025.
Happens only in release-debug build
Assertion failed: (!Node || ResNo < Node->getNumValues()) && "Invalid result number for the given node!", file C:\LDC\llvm\include\llvm/CodeGen/SelectionDAGNodes.h, line 864
Wrote crash dump file "C:\Users\andrey\AppData\Local\Temp\ldc2.exe-dcf85a.dmp"
Assertion failed: (!Node || ResNo < Node->getNumValues()) && "Invalid result number for the given node!", file C:\LDC\llvm\include\llvm/CodeGen/SelectionDAGNodes.h, line 864

Wrote crash dump file "C:\Users\andrey\AppData\Local\Temp\ldc2.exe-dcf85a.dmp"

0x0000000001CD4D45 (0x0000000000000301 0x000000000297E4AE 0x0000000000000360 0x0000000001019594)
0x0000000001074A68 (0x0000000000000301 0x0000000000000000 0x0000000000000000 0x00000000008BE580), raise() + 0x1E8 bytes(s)
0x0000000001075A31 (0x0000000000000003 0x0000000000000003 0x0000000002B7DD40 0x0000000002A90680), abort() + 0x31 bytes(s)
0x0000000001077A81 (0x0000000000000360 0x0000000002B7DD40 0x000000000E839998 0x00000000008BE818), _get_wide_winmain_command_line() + 0x1171 bytes(s)
0x0000000001077D8F (0x0000000025043260 0x00000000008BE6F0 0x000000002466E7A0 0x0000000000000020), _wassert() + 0x3F bytes(s)
0x000000000297E4AE (0x00000000008BE818 0x0000000024C00A20 0x00000000223D1B00 0x0000000021404830)
0x0000000002905740 (0x0000000023E06150 0x00000000008BECF0 0x0000000023E06150 0x000000001EAA93A0)
0x00000000027F6422 (0x00000000215EDE38 0x0000000023E06150 0x00000000008BEEE8 0x0000000000000001)
0x00000000027FB07C (0x0000000000000001 0x00000000008BEE80 0x0000000021404500 0x00000000214044F0)
0x00000000027FAE88 (0x0000000023E06150 0x0000000021624928 0x0000000000000000 0x0000000023E06100)
0x0000000002803F87 (0x000000001A698690 0x000000001A3CC330 0x0000000024793EB0 0x0000000000000005)
0x00000000024E7D84 (0x0000000024793EB0 0x0000000023E06150 0x000000002289FF68 0x00000000019247A7)
0x000000000188A3F8 (0x000000001A698590 0x0000000023E06150 0x0000000021624928 0x0000000000000000)
0x00000000019267DF (0x000000001A698590 0x000000001025A701 0x00000000105BC360 0x0000000002A4F818)
0x000000000192693F (0x00000000105BC478 0x0000000000000001 0x000000001025A7F0 0x000000001A698590)
0x0000000001926C03 (0x0000000000000003 0x00000000105BC3A0 0x0000000000000000 0x0000000000000009)
0x0000000001926243 (0x000000000317D410 0x00000000105BC3A0 0x00000000008BF400 0x0000000000000000)
0x000000000159BC2F (0x0000000000B79610 0x00000000008BF429 0x0000000000000000 0x00000000105BC3A0)
0x000000000159DF9A (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x00000000242F9CA0)
0x000000000159DD2C (0x00000000008BF7E0 0x00000000008BF730 0x00000000242F9CA0 0x00000000008BF7E0)
0x00000000015423D6 (0x0000000000B79610 0x00000000008BF890 0x0000000000B79610 0x00000000008BF7E0)
0x00000000015415C0 (0x0000000000000000 0x0000000000000000 0x000000000000008F 0x00000000008BF940)
0x0000000001504A18 (0x0000000000000000 0x00000000000004C9 0x000000000000008F 0x00000000770D3448)
0x00000000013EC1F7 (0x0000000000B802E0 0x00000000008BFAD0 0x0000000000000000 0x0000000003610A20)
0x0000000001505113 (0x00000000008BFB90 0x00000000008BFB00 0x0000000000000000 0x00000000008BFC98)
0x0000000001464EE1 (0x00000000008BFC70 0x0000000000000002 0x0000000003448D60 0x0000000000000000)
0x0000000001493705 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x01D27B127494C11A)
0x0000000002688289 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x0000000076E7652D (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), BaseThreadInitThunk() + 0xD bytes(s)
0x00000000770AC541 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), RtlUserThreadStart() + 0x21 bytes(s)

ldc2.exe-dcf85a.dmp.txt
Remove .txt from file name

Duplicate issue #2361: LDC 1.5: Failing LLVM assertion with `-g -enable-inlining`
Created: 2017-10-06T19:25:39Z
See #2252 (comment) and https://bugs.llvm.org/show_bug.cgi?id=34834; current CI workaround: ldc-developers/dmd-testsuite@f447afd.

Closing comment (2017-10-22T10:51:40Z): Oh this seems very much like a duplicate of #1989, so the problem most likely isn't specific to LLVM 5.0 LDC 1.5.