Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Assertion failed: DeclAccess != AS_none, file C:\b\s\w\ir\cache\builder\emscripten-releases\llvm-project\clang\include\clang/AST/DeclCXX.h, line 1697 #46657

Open Quuxplusone opened 4 years ago

Quuxplusone commented 4 years ago
Bugzilla Link PR47688
Status NEW
Importance P release blocker
Reported by Greg Slazinski (esenthel@gmail.com)
Reported on 2020-09-30 02:33:33 -0700
Last modified on 2020-10-11 01:24:07 -0700
Version unspecified
Hardware PC Windows NT
CC aheejin@gmail.com, htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
Fixed by commit(s)
Attachments Desktop.7z (927644 bytes, application/x-7z-compressed)
Blocks
Blocked by
See also
Created attachment 24009
CPP and SH

1>------ Build started: Project: EsenthelEngine, Configuration: Release GL
Emscripten ------
1>Project file contains ToolsVersion="12.0". This toolset may be unknown or
missing, in which case you may be able to resolve this by installing the
appropriate version of MSBuild, or the build may have been forced to a
particular ToolsVersion for policy reasons. Treating the project as if it had
ToolsVersion="4.0". For more information, please see
http://go.microsoft.com/fwlink/?LinkId=291333.
1>  Undo.cpp
1>  Assertion failed: DeclAccess != AS_none, file
C:\b\s\w\ir\cache\builder\emscripten-releases\llvm-
project\clang\include\clang/AST/DeclCXX.h, line 1697
1>  PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace, preprocessed source, and associated run script.
1>  Stack dump:
1>  0.  Program arguments: D:/Progs/Emscripten/upstream/bin\clang++.exe -target
wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -
D__EMSCRIPTEN_tiny__=5 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -
Werror=implicit-function-declaration -Xclang -nostdsysteminc -Xclang -
isystemD:\Progs\Emscripten\upstream\emscripten\system\include\libcxx -Xclang -
isystemD:\Progs\Emscripten\upstream\emscripten\system\lib\libcxxabi\include -
Xclang -isystemD:\Progs\Emscripten\upstream\emscripten\system\include\compat -
Xclang -isystemD:\Progs\Emscripten\upstream\emscripten\system\include -Xclang -
isystemD:\Progs\Emscripten\upstream\emscripten\system\include\libc -Xclang -
isystemD:\Progs\Emscripten\upstream\emscripten\system\lib\libc\musl\arch\emscripten
-Xclang -isystemD:\Progs\Emscripten\upstream\emscripten\system\local\include -
Xclang -isystemD:\Progs\Emscripten\upstream\emscripten\system\include\SSE -
Xclang -isystemD:\Progs\Emscripten\upstream\emscripten\system\include\neon -
Xclang -isystemD:\Progs\Emscripten\upstream\emscripten\system\lib\compiler-
rt\include -Xclang -
isystemD:\Progs\Emscripten\upstream\emscripten\system\lib\libunwind\include -
Xclang -isystemD:\Progs\Emscripten\upstream\emscripten\cache\wasm\include -
DEMSCRIPTEN -fignore-exceptions -o Emscripten/Release GL/Undo.o -DDEBUG=0 -
D_VC80_UPGRADE=0x0710 -DEMSCRIPTEN -D__STDC__ -MD -MF Emscripten/Release
GL/Undo.d -O2 -Wno-invalid-offsetof -Wno-comment -Wno-parentheses -Wno-switch -
Wno-empty-body -Wno-address-of-temporary -Wno-constant-logical-operand -Wno-
invalid-pp-token -Wno-null-dereference -Wno-int-to-void-pointer-cast -Wno-
return-type-c-linkage -Wno-dynamic-class-memaccess -fms-extensions -std=c++17 -
IC:/Esenthel/Engine/ -IC:/Esenthel/Engine//H/_ -I../ThirdPartyLibs -
I../ThirdPartyLibs/FreeType/lib/include -I../ThirdPartyLibs/DirectX -
I../ThirdPartyLibs/Zlib -I../ThirdPartyLibs/Cg/Win -
I../ThirdPartyLibs/Opus/lib/include -I../ThirdPartyLibs/Opus/file/include -
I../ThirdPartyLibs/Ogg/include -I../ThirdPartyLibs/Theora/include -
I../ThirdPartyLibs/Vorbis/include -I../ThirdPartyLibs/FDK-
AAC/lib/libSYS/include -I../ThirdPartyLibs/PhysX/PhysX/Include -
I../ThirdPartyLibs/PhysX/PhysX/Include/cloth -
I../ThirdPartyLibs/PhysX/PhysX/Include/common -
I../ThirdPartyLibs/PhysX/PhysX/Include/extensions -
I../ThirdPartyLibs/PhysX/PhysX/Include/geometry -
I../ThirdPartyLibs/PhysX/PhysX/Include/vehicle -
I../ThirdPartyLibs/PhysX/PhysX/Source/Common/src -
I../ThirdPartyLibs/PhysX/PhysX/Source/GeomUtils/src -
I../ThirdPartyLibs/PhysX/PhysX/Source/PhysXExtensions/src/serialization/Xml -
I../ThirdPartyLibs/PhysX/PhysX/Source/PhysXMetaData/core/include -
I../ThirdPartyLibs/PhysX/PhysX/Source/PhysXMetaData/extensions/include -
I../ThirdPartyLibs/PhysX/PhysX/Source/PhysXVehicle/src -
I../ThirdPartyLibs/PhysX/PhysX/Source/PhysXVehicle/src/PhysXMetaData/include -
I../ThirdPartyLibs/PhysX/PxShared/include -
I../ThirdPartyLibs/PhysX/PxShared/src/foundation/include -
I../ThirdPartyLibs/PhysX/PxShared/src/pvd/include -I../ThirdPartyLibs/FBX -
I../ThirdPartyLibs/Bullet/lib/src -
I../ThirdPartyLibs/VP/libvpx/third_party/libwebm -x c++ Source/Edit/Undo.cpp -
Xclang -isystemD:\Progs\Emscripten\upstream\emscripten\system\include\SDL -c -o
C:\Users\esent\AppData\Local\Temp\emscripten_temp_g7lyq7bx\Undo_0.o -mllvm -
combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -
disable-lsr
1>  C:\Esenthel\Engine\H\_\inline.h(1833): '1.  C' 119: current parser token '('
1>  C:\Esenthel\Engine\H\Memory\Memory.h(147): '2.  C' 1: parsing namespace 'EE'
1>  C:\Esenthel\Engine\H\_\inline.h(1833): '3.  C' 80: parsing function body
'EE::ThreadSafeMap::dataInMapToKey'
1>  C:\Esenthel\Engine\H\_\inline.h(1833): '4.  C' 80: in compound statement
('{}')
1>   #0 0x00007ff75208c476
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x112c476)
1>   #1 0x00007ff98fc01891 (C:\WINDOWS\System32\ucrtbase.dll+0x71891)
1>   #2 0x00007ff98fc02861 (C:\WINDOWS\System32\ucrtbase.dll+0x72861)
1>   #3 0x00007ff98fc041c5 (C:\WINDOWS\System32\ucrtbase.dll+0x741c5)
1>   #4 0x00007ff98fc04501 (C:\WINDOWS\System32\ucrtbase.dll+0x74501)
1>   #5 0x00007ff753fbe70b
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x305e70b)
1>   #6 0x00007ff753e9f213
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2f3f213)
1>   #7 0x00007ff753a828f4
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2b228f4)
1>   #8 0x00007ff753a8404c
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2b2404c)
1>   #9 0x00007ff753a71980
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2b11980)
1>  #10 0x00007ff753a70554
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2b10554)
1>  #11 0x00007ff753a7628c
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2b1628c)
1>  #12 0x00007ff753a70ff8
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2b10ff8)
1>  #13 0x00007ff753a6968c
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2b0968c)
1>  #14 0x00007ff753a69585
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2b09585)
1>  #15 0x00007ff753a5e2fe
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2afe2fe)
1>  #16 0x00007ff753a56c69
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2af6c69)
1>  #17 0x00007ff753a5627f
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2af627f)
1>  #18 0x00007ff753a606c0
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2b006c0)
1>  #19 0x00007ff753a61644
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2b01644)
1>  #20 0x00007ff7539b98fa
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2a598fa)
1>  #21 0x00007ff7539d574d
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2a7574d)
1>  #22 0x00007ff7539d34c1
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2a734c1)
1>  #23 0x00007ff7539d2c3b
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2a72c3b)
1>  #24 0x00007ff753a06727
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2aa6727)
1>  #25 0x00007ff7539b6321
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2a56321)
1>  #26 0x00007ff7539e3776
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2a83776)
1>  #27 0x00007ff7539e31aa
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2a831aa)
1>  #28 0x00007ff753a06798
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2aa6798)
1>  #29 0x00007ff7539b6321
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2a56321)
1>  #30 0x00007ff7539b4b26
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2a54b26)
1>  #31 0x00007ff7539afe1e
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x2a4fe1e)
1>  #32 0x00007ff75296e5f5
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x1a0e5f5)
1>  #33 0x00007ff75292bc7b
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x19cbc7b)
1>  #34 0x00007ff7529e38bd
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x1a838bd)
1>  #35 0x00007ff750f6761a (D:\Progs\Emscripten\upstream\bin\clang++.exe+0x761a)
1>  #36 0x00007ff750f64934 (D:\Progs\Emscripten\upstream\bin\clang++.exe+0x4934)
1>  #37 0x00007ff7528bc836
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x195c836)
1>  #38 0x00007ff7520750f3
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x11150f3)
1>  #39 0x00007ff7528bc07d
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x195c07d)
1>  #40 0x00007ff7527b7125
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x1857125)
1>  #41 0x00007ff7527b74cb
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x18574cb)
1>  #42 0x00007ff7527a31b7
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x18431b7)
1>  #43 0x00007ff750f642f5 (D:\Progs\Emscripten\upstream\bin\clang++.exe+0x42f5)
1>  #44 0x00007ff754d26470
(D:\Progs\Emscripten\upstream\bin\clang++.exe+0x3dc6470)
1>  #45 0x00007ff9913d6fd4 (C:\WINDOWS\System32\KERNEL32.DLL+0x16fd4)
1>  #46 0x00007ff991c7cec1 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x4cec1)
1>clang++ : error : clang frontend command failed due to signal (use -v to see
invocation)
1>  clang version 12.0.0 (C:swircachegitchromium.googlesource.com-external-
github.com-llvm-llvm--project 5dbf80cad9556e222c4383960007fc0b27ea9541)
1>  Target: wasm32-unknown-emscripten
1>  Thread model: posix
1>  InstalledDir: D:/Progs/Emscripten/upstream/bin
1>  clang++: note: diagnostic msg:
1>  ********************
1>
1>  PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
1>  Preprocessed source(s) and associated run script(s) are located at:
1>  clang++: note: diagnostic msg: C:\Users\esent\AppData\Local\Temp\Undo-
bdd1c4.cpp
1>  clang++: note: diagnostic msg: C:\Users\esent\AppData\Local\Temp\Undo-
bdd1c4.sh
1>  clang++: note: diagnostic msg:
1>
1>  ********************
1>emcc : error : 'D:/Progs/Emscripten/upstream/bin\clang++.exe -target wasm32-
unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -
D__EMSCRIPTEN_tiny__=5 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -
Werror=implicit-function-declaration -Xclang -nostdsysteminc -Xclang -
isystemD:\Progs\Emscripten\upstream\emscripten\system\include\libcxx -Xclang -
isystemD:\Progs\Emscripten\upstream\emscripten\system\lib\libcxxabi\include -
Xclang -isystemD:\Progs\Emscripten\upstream\emscripten\system\include\compat -
Xclang -isystemD:\Progs\Emscripten\upstream\emscripten\system\include -Xclang -
isystemD:\Progs\Emscripten\upstream\emscripten\system\include\libc -Xclang -
isystemD:\Progs\Emscripten\upstream\emscripten\system\lib\libc\musl\arch\emscripten
-Xclang -isystemD:\Progs\Emscripten\upstream\emscripten\system\local\include -
Xclang -isystemD:\Progs\Emscripten\upstream\emscripten\system\include\SSE -
Xclang -isystemD:\Progs\Emscripten\upstream\emscripten\system\include\neon -
Xclang -isystemD:\Progs\Emscripten\upstream\emscripten\system\lib\compiler-
rt\include -Xclang -
isystemD:\Progs\Emscripten\upstream\emscripten\system\lib\libunwind\include -
Xclang -isystemD:\Progs\Emscripten\upstream\emscripten\cache\wasm\include -
DEMSCRIPTEN -fignore-exceptions -o "Emscripten/Release GL/Undo.o" -DDEBUG=0 -
D_VC80_UPGRADE=0x0710 -DEMSCRIPTEN -D__STDC__ -MD -MF "Emscripten/Release
GL/Undo.d" -O2 -Wno-invalid-offsetof -Wno-comment -Wno-parentheses -Wno-switch -
Wno-empty-body -Wno-address-of-temporary -Wno-constant-logical-operand -Wno-
invalid-pp-token -Wno-null-dereference -Wno-int-to-void-pointer-cast -Wno-
return-type-c-linkage -Wno-dynamic-class-memaccess -fms-extensions -std=c++17 -
IC:/Esenthel/Engine/ -IC:/Esenthel/Engine//H/_ -I../ThirdPartyLibs -
I../ThirdPartyLibs/FreeType/lib/include -I../ThirdPartyLibs/DirectX -
I../ThirdPartyLibs/Zlib -I../ThirdPartyLibs/Cg/Win -
I../ThirdPartyLibs/Opus/lib/include -I../ThirdPartyLibs/Opus/file/include -
I../ThirdPartyLibs/Ogg/include -I../ThirdPartyLibs/Theora/include -
I../ThirdPartyLibs/Vorbis/include -I../ThirdPartyLibs/FDK-
AAC/lib/libSYS/include -I../ThirdPartyLibs/PhysX/PhysX/Include -
I../ThirdPartyLibs/PhysX/PhysX/Include/cloth -
I../ThirdPartyLibs/PhysX/PhysX/Include/common -
I../ThirdPartyLibs/PhysX/PhysX/Include/extensions -
I../ThirdPartyLibs/PhysX/PhysX/Include/geometry -
I../ThirdPartyLibs/PhysX/PhysX/Include/vehicle -
I../ThirdPartyLibs/PhysX/PhysX/Source/Common/src -
I../ThirdPartyLibs/PhysX/PhysX/Source/GeomUtils/src -
I../ThirdPartyLibs/PhysX/PhysX/Source/PhysXExtensions/src/serialization/Xml -
I../ThirdPartyLibs/PhysX/PhysX/Source/PhysXMetaData/core/include -
I../ThirdPartyLibs/PhysX/PhysX/Source/PhysXMetaData/extensions/include -
I../ThirdPartyLibs/PhysX/PhysX/Source/PhysXVehicle/src -
I../ThirdPartyLibs/PhysX/PhysX/Source/PhysXVehicle/src/PhysXMetaData/include -
I../ThirdPartyLibs/PhysX/PxShared/include -
I../ThirdPartyLibs/PhysX/PxShared/src/foundation/include -
I../ThirdPartyLibs/PhysX/PxShared/src/pvd/include -I../ThirdPartyLibs/FBX -
I../ThirdPartyLibs/Bullet/lib/src -
I../ThirdPartyLibs/VP/libvpx/third_party/libwebm -x c++ Source/Edit/Undo.cpp -
Xclang -isystemD:\Progs\Emscripten\upstream\emscripten\system\include\SDL -c -o
C:\Users\esent\AppData\Local\Temp\emscripten_temp_g7lyq7bx\Undo_0.o -mllvm -
combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -
disable-lsr' failed (1)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Quuxplusone commented 4 years ago

Attached Desktop.7z (927644 bytes, application/x-7z-compressed): CPP and SH

Quuxplusone commented 4 years ago

Not sure what the problem is given that there's no reproducer, but the error message looks like it is a clang problem. Which version are you using? If you are using tip of tree clang, does updating the clang solve the problem?

If not, can you give me a test case that reproduces this bug and the command line you used and the version of toolchain?

Quuxplusone commented 4 years ago

Test case and command line are in the attachment

Quuxplusone commented 4 years ago

Sorry for the late reply. I confirmed that this happens with tip of tree LLVM, and I don't think this is necessarily related to WebAssembly and it is more of a clang problem, which I don't have expertise in.

I tried to find out which LLVM commit this first happens and failed. I went back to LLVM mid 2019 and this error still happened. Around that time this changes to some other errors. But weirdly, LLVM 10.0.0 / 10.0.1 release versions don't have this problem.

Anyway, sorry that this doesn't help much.

Quuxplusone commented 4 years ago
Is this not the right place to report this problem?
Because the error messaged pointed me to report this problem here on
https://bugs.llvm.org/
So I feel confused.
Should I report this elsewhere?
How to get this problem fixed?
Thank you
Quuxplusone commented 4 years ago

No, this is the right place. I think this is just not being seen by the right people. I reassigned the component to "Frontend". Let's hope it can be seen by the people who work on the frontend.

Quuxplusone commented 4 years ago

For information:

This error also happens on my x86-64 Linux machine. The minimal command line that reproduces the problem is:

clang++ -target wasm32-unknown-emscripten -Wno-comment -Wno-parentheses -Wno-switch -fms-extensions -std=c++17 -c Undo-bdd1c4.cpp