Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] clang frontend crashes on NDK 27.0.11718014 #2023

Closed
notyalcs opened this issue May 24, 2024 · 9 comments
Closed

[BUG] clang frontend crashes on NDK 27.0.11718014 #2023

notyalcs opened this issue May 24, 2024 · 9 comments
Assignees
Labels

Comments

@notyalcs
Copy link

notyalcs commented May 24, 2024

Description

When using the NDK 27.0.11718014 the clang frontend crashes.

Stack dump:
  0.	Program arguments: C:\\AndroidSDK\\ndk\\27.0.11718014\\toolchains\\llvm\\prebuilt\\windows-x86_64\\bin\\clang++.exe --target=x86_64-none-linux-android23 --sysroot=C:/AndroidSDK/ndk/27.0.11718014/toolchains/llvm/prebuilt/windows-x86_64/sysroot -DCHEATS=1 -DDEBUG -DDEV_ENV=dev -DIGL_ANDROID=1 -DIUGO_LANDSCAPE=1 -DIUGO_SERVERLESS=1 -Dapp_EXPORTS -IC:/behemoth/connexion/iugo -IC:/behemoth/connexion/iugo/../.. -IC:/behemoth/connexion/iugo/../../data -IC:/behemoth -IC:/behemoth/connexion/iugo/ext/libmbedtls/include -IC:/behemoth/connexion/iugo/ext/libzlib -IC:/behemoth/connexion/client/android/.cxx/Debug/1wv41553/x86_64/connexion/iugo/ext/libzlib -IC:/behemoth/connexion/iugo/../ext/libapple -IC:/behemoth/connexion/iugo/../ext/libchat -IC:/behemoth/connexion/iugo/../ext/libfacebook -IC:/behemoth/connexion/iugo/../ext/libgoogle -IC:/behemoth/connexion/iugo/../ext/libguild -IC:/behemoth/connexion/iugo/../ext/libmatchmaker -IC:/behemoth/connexion/ext/libmatchmaker -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fno-limit-debug-info -std=gnu++23 -fPIC -fvisibility=hidden -fdata-sections -ffunction-sections -malign-double -fexceptions -fno-rtti -fno-c++-static-destructors -Wdocumentation -Wparentheses -Wno-unknown-warning-option -Wno-unknown-attributes -Wno-unqualified-std-cast-call -Wno-invalid-offsetof -Wno-overflow -Wno-unused-comparison -Wno-error=c++11-narrowing -Wno-switch -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wno-non-virtual-dtor -Woverloaded-virtual -Wno-exit-time-destructors -Wduplicate-method-match -Wswitch -Wunused-function -Wunused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wconversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wfloat-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wassign-enum -Wsign-compare -Werror=shorten-64-to-32 -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -Wno-c++11-extensions -Wno-overloaded-shift-op-parentheses -Wno-sign-conversion -Wno-vla-cxx-extension -Wno-implicit-int-float-conversion -O0 -MD -MT connexion/CMakeFiles/app.dir/__/layout/adventure/Combat.cpp.o -MF connexion\\CMakeFiles\\app.dir\\__\\layout\\adventure\\Combat.cpp.o.d -o connexion/CMakeFiles/app.dir/__/layout/adventure/Combat.cpp.o -c C:/behemoth/layout/adventure/Combat.cpp
  1.	<eof> parser at end of file
  2.	C:/behemoth/connexion/iugo/iugo/Bindings.hpp:587:17: instantiating function definition 'iugo::Multibind<iugo::StreamBinding<const float &>, (lambda at C:/behemoth/layout/adventure/Combat.cpp:113:98)>'
  3.	C:/behemoth/layout/adventure/Combat.cpp:113:98: instantiating function definition 'iugo::layout::game::Character::Run(adventure::World &)::(anonymous class)::operator()()::(anonymous class)::operator()<float>'
  Exception Code: 0xC0000005
    #0 0x00007ff7a12d3a80 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x35a3a80)
    #1 0x00007ff7a128e5a9 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x355e5a9)
    #2 0x00007ff7a128e4ed (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x355e4ed)
    #3 0x00007ff7a1294094 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x3564094)
    #4 0x00007ff7a120f442 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34df442)
    #5 0x00007ff7a11f8f18 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34c8f18)
    #6 0x00007ff7a1201121 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34d1121)
    #7 0x00007ff7a11fdce2 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34cdce2)
    #8 0x00007ff7a12010b6 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34d10b6)
    #9 0x00007ff7a1213704 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34e3704)
   #10 0x00007ff7a12087c6 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34d87c6)
   #11 0x00007ff7a2585f58 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x4855f58)
   #12 0x00007ff7a25846f5 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x48546f5)
   #13 0x00007ff7a257e55f (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x484e55f)
   #14 0x00007ff7a257e197 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x484e197)
   #15 0x00007ff7a2581354 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x4851354)
   #16 0x00007ff7a278e1de (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x4a5e1de)
   #17 0x00007ff7a27900cd (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x4a600cd)
   #18 0x00007ff7a124d393 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x351d393)
   #19 0x00007ff7a1261428 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x3531428)
   #20 0x00007ff7a12612f7 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x35312f7)
   #21 0x00007ff7a126159e (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x353159e)
   #22 0x00007ff7a1261955 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x3531955)
   #23 0x00007ff7a12872e9 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x35572e9)
   #24 0x00007ff7a12a9232 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x3579232)
   #25 0x00007ff7a12012be (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34d12be)
   #26 0x00007ff7a1213704 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34e3704)
   #27 0x00007ff7a12087c6 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34d87c6)
   #28 0x00007ff7a2585f58 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x4855f58)
   #29 0x00007ff7a25846f5 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x48546f5)
   #30 0x00007ff7a257e55f (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x484e55f)
   #31 0x00007ff7a257e197 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x484e197)
   #32 0x00007ff7a26b12d2 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x49812d2)
   #33 0x00007ff7a120210b (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34d210b)
   #34 0x00007ff7a2585f58 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x4855f58)
   #35 0x00007ff7a2585035 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x4855035)
   #36 0x00007ff7a25847d2 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x48547d2)
   #37 0x00007ff7a257e55f (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x484e55f)
   #38 0x00007ff7a257e197 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x484e197)
   #39 0x00007ff7a26b12d2 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x49812d2)
   #40 0x00007ff7a120210b (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34d210b)
   #41 0x00007ff7a2585f58 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x4855f58)
   #42 0x00007ff7a25846f5 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x48546f5)
   #43 0x00007ff7a257e55f (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x484e55f)
   #44 0x00007ff7a257e197 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x484e197)
   #45 0x00007ff7a2581354 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x4851354)
   #46 0x00007ff7a278e1de (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x4a5e1de)
   #47 0x00007ff7a27900cd (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x4a600cd)
   #48 0x00007ff7a124d393 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x351d393)
   #49 0x00007ff7a1261428 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x3531428)
   #50 0x00007ff7a12612f7 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x35312f7)
   #51 0x00007ff7a126159e (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x353159e)
   #52 0x00007ff7a1261955 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x3531955)
   #53 0x00007ff7a12872e9 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x35572e9)
   #54 0x00007ff7a12a9232 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x3579232)
   #55 0x00007ff7a12012be (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34d12be)
   #56 0x00007ff7a1219a9c (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34e9a9c)
   #57 0x00007ff7a11f034c (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34c034c)
   #58 0x00007ff7a11efd08 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34bfd08)
   #59 0x00007ff7a120d7c0 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34dd7c0)
   #60 0x00007ff7a120ca1c (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34dca1c)
   #61 0x00007ff7a121e914 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34ee914)
   #62 0x00007ff7a11f0226 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34c0226)
   #63 0x00007ff7a121bfc4 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34ebfc4)
   #64 0x00007ff7a11f051c (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34c051c)
   #65 0x00007ff7a11efd08 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34bfd08)
   #66 0x00007ff7a11f095e (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34c095e)
   #67 0x00007ff7a26a7094 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x4977094)
   #68 0x00007ff7a120be8d (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34dbe8d)
   #69 0x00007ff7a121e914 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34ee914)
   #70 0x00007ff7a11f0226 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34c0226)
   #71 0x00007ff7a121bfc4 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34ebfc4)
   #72 0x00007ff7a11f051c (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34c051c)
   #73 0x00007ff7a11efd08 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34bfd08)
   #74 0x00007ff7a120d7c0 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34dd7c0)
   #75 0x00007ff7a120ca1c (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34dca1c)
   #76 0x00007ff7a121e914 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34ee914)
   #77 0x00007ff7a11f0226 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34c0226)
   #78 0x00007ff7a121bfc4 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34ebfc4)
   #79 0x00007ff7a11f051c (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34c051c)
   #80 0x00007ff7a11f0f6a (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34c0f6a)
   #81 0x00007ff7a10c66e3 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x33966e3)
   #82 0x00007ff7a10c3eb6 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x3393eb6)
   #83 0x00007ff7a10ceae6 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x339eae6)
   #84 0x00007ff7a278e0d8 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x4a5e0d8)
   #85 0x00007ff7a27900cd (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x4a600cd)
   #86 0x00007ff7a124d393 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x351d393)
   #87 0x00007ff7a124f29c (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x351f29c)
   #88 0x00007ff7a126586b (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x353586b)
   #89 0x00007ff7a1265d4e (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x3535d4e)
   #90 0x00007ff7a120b5aa (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34db5aa)
   #91 0x00007ff7a1201a26 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34d1a26)
   #92 0x00007ff7a120167d (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34d167d)
   #93 0x00007ff7a120167d (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34d167d)
   #94 0x00007ff7a10ccb20 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x339cb20)
   #95 0x00007ff7a10bc1a7 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x338c1a7)
   #96 0x00007ff7a10bb34d (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x338b34d)
   #97 0x00007ff7a10ceae6 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x339eae6)
   #98 0x00007ff7a122257a (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34f257a)
   #99 0x00007ff7a12179ca (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34e79ca)
  #100 0x00007ff7a122228b (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34f228b)
  #101 0x00007ff7a11f74b7 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x34c74b7)
  #102 0x00007ff7a10d098d (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x33a098d)
  #103 0x00007ff7a10d478e (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x33a478e)
  #104 0x00007ff7a10d0ac2 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x33a0ac2)
  #105 0x00007ff7a10d478e (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x33a478e)
  #106 0x00007ff79f66ad22 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x193ad22)
  #107 0x00007ff79f66b4f6 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x193b4f6)
  #108 0x00007ff7a2aacc04 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x4d7cc04)
  #109 0x00007ff7a1522f0e (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x37f2f0e)
  #110 0x00007ff79f688c3e (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1958c3e)
  #111 0x00007ff79e44d110 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x71d110)
  #112 0x00007ff79e4e3d15 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x7b3d15)
  #113 0x00007ff79de6e0f0 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x13e0f0)
  #114 0x00007ff79de6b200 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x13b200)
  #115 0x00007ff79f409e4d (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x16d9e4d)
  #116 0x00007ff79e32b0fd (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x5fb0fd)
  #117 0x00007ff79f409875 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x16d9875)
  #118 0x00007ff79e3fc573 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x6cc573)
  #119 0x00007ff79e41fa7d (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x6efa7d)
  #120 0x00007ff79de6a362 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x13a362)
  #121 0x00007ff79de7b0a7 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x14b0a7)
  #122 0x00007ff79dd31395 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1395)
  #123 0x00007ff79dd314c8 (C:\AndroidSDK\ndk\27.0.11718014\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x14c8)
  #124 0x00007fff0cd77344 (C:\Windows\System32\KERNEL32.DLL+0x17344)
  #125 0x00007fff0d0626b1 (C:\Windows\SYSTEM32\ntdll.dll+0x526b1)
  clang++: error: clang frontend command failed due to signal (use -v to see invocation)
  Android (11695104, based on r522817) clang version 18.0.1 (https://android.googlesource.com/toolchain/llvm-project d8003a456d14a3deb8054cdaa529ffbf02d9b262)
  Target: x86_64-none-linux-android23
  Thread model: posix
  InstalledDir: C:/AndroidSDK/ndk/27.0.11718014/toolchains/llvm/prebuilt/windows-x86_64/bin
  clang++: note: diagnostic msg:

Following zip contains the Preprocessed source and associated run script:
ndk_frontend_crash.zip

Affected versions

r27

Canary version

No response

Host OS

Windows

Host OS version

Windows 10 and Windows 11

Affected ABIs

x86_64

Build system

CMake

Other build system

No response

minSdkVersion

23

Device API level

No response

@notyalcs notyalcs added the bug label May 24, 2024
@pirama-arumuga-nainar
Copy link
Collaborator

Reproduces in ToT clang from today (c54657887b) as well:

clang++: /usr/local/google/work/llvm-monorepo/llvm-project/clang/lib/AST/Decl.cpp:2561: APValue *clang::VarDecl::evaluateValueImpl(SmallVectorImpl<PartialDiagnosticAt> &, bool) const: Assertion `!Init->isValueDependent()' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.

Reproducer fails with errors on r26.

@github-project-automation github-project-automation bot moved this to Triaged in NDK r28 May 29, 2024
@DanAlbert
Copy link
Member

Non-regression and pretty late in the r27 cycle (and nothing available to cherry-pick yet), so planned for r28. We'll consider a cherry-pick into an r27 minor release if there's a low impact fix from upstream when the time comes.

@yujincheng08
Copy link

yujincheng08 commented May 30, 2024

this is actually a regression, see llvm/llvm-project#93828. the crash shown by @pirama-arumuga-nainar is another crash.

I replaced lines ranging from 85898 to 85912 with

    constexpr T&& operator [](uint i)&& noexcept
    {
      return move(Data[i]);
    }
    constexpr T const& operator [](uint i) const& noexcept
    {
      return Data[i];
    }
    constexpr T& operator [](uint i)& noexcept
    {
      return Data[i];
    }

and ndk 27 crashes while ndk 26 compiles.

@github-project-automation github-project-automation bot moved this to Unconfirmed in NDK r27 May 30, 2024
@DanAlbert
Copy link
Member

Oh, sorry about that, I misunderstood. Thanks for clarifying 👍

In that case, we're still pretty dependent on upstream to provide the fix, but if one becomes available we'll aim to do a minor release for it rather than only picking it up opportunistically (there are always exceptions if the fix is invasive and likely to do more harm than good, but that's very rare).

@DanAlbert DanAlbert moved this from Unconfirmed to Triaged in NDK r27 May 30, 2024
@yujincheng08
Copy link

upstream fixed: llvm/llvm-project@3d361b2

@pirama-arumuga-nainar
Copy link
Collaborator

This is unlikely to make it to RC1. We can take it the next time we update the compiler in r27. (As we prep the next clang update, we also need to create a release branch for the r27 clang to be able to get new prebuilts.)

@pirama-arumuga-nainar pirama-arumuga-nainar self-assigned this Jun 5, 2024
@pirama-arumuga-nainar
Copy link
Collaborator

(Thanks for proactively pursuing this in upstream and getting it fixed, btw!)

@DanAlbert
Copy link
Member

(Thanks for proactively pursuing this in upstream and getting it fixed, btw!)

+1. We're very appreciative of the work you've done to help us, here and on quite a few other bugs :)

@pirama-arumuga-nainar
Copy link
Collaborator

The fix for this bug was cherry-picked and will be part of r27 to be released later this month.

@DanAlbert DanAlbert moved this from Triaged to Needs prebuilt update in NDK r27 Jul 9, 2024
@github-project-automation github-project-automation bot moved this from Needs prebuilt update to Merged in NDK r27 Jul 16, 2024
@DanAlbert DanAlbert moved this from Triaged to Merged in NDK r28 Jul 16, 2024
@github-project-automation github-project-automation bot moved this to Prebuilts submitted in LLVM Aug 29, 2024
@DanAlbert DanAlbert removed this from NDK r28 Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Prebuilts submitted
Status: Merged
Development

No branches or pull requests

4 participants