llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.39k stars 12.15k forks source link

clang compile crash #117679

Open vrecluse opened 5 days ago

vrecluse commented 5 days ago
 -x c++ zcode-server\\zgrpc\\grpc_client.cppm
1.      zcode-server\zgrpc\grpc_client.cppm:50:82: current parser token ')'
2.      zcode-server\zgrpc\grpc_client.cppm:12:8: parsing namespace 'zgrpc'
3.      zcode-server\zgrpc\grpc_client.cppm:39:1: parsing struct/union/class body 'zgrpc::GrpcClient'
4.      zcode-server\zgrpc\grpc_client.cppm:50:53: parsing function body 'zgrpc::GrpcClient::get_scheduler'
5.      zcode-server\zgrpc\grpc_client.cppm:50:53: in compound statement ('{}')
Exception Code: 0xC0000005
 #0 0x00007ff6ab831d29 (F:\llvm19\bin\clang.exe+0x23d1d29)
 #1 0x00007ff6ab84f8d2 (F:\llvm19\bin\clang.exe+0x23ef8d2)
 #2 0x00007ff6ab851000 (F:\llvm19\bin\clang.exe+0x23f1000)
 #3 0x00007ff6ab850f03 (F:\llvm19\bin\clang.exe+0x23f0f03)
 #4 0x00007ff6ac431cec (F:\llvm19\bin\clang.exe+0x2fd1cec)
 #5 0x00007ff6ac453d05 (F:\llvm19\bin\clang.exe+0x2ff3d05)
 #6 0x00007ff6ab84b010 (F:\llvm19\bin\clang.exe+0x23eb010)
 #7 0x00007ff6ab852e58 (F:\llvm19\bin\clang.exe+0x23f2e58)
 #8 0x00007ff6ab6984a1 (F:\llvm19\bin\clang.exe+0x22384a1)
 #9 0x00007ff6aab20b72 (F:\llvm19\bin\clang.exe+0x16c0b72)
#10 0x00007ff6aa30febd (F:\llvm19\bin\clang.exe+0xeafebd)
#11 0x00007ff6aa30c085 (F:\llvm19\bin\clang.exe+0xeac085)
#12 0x00007ff6aa68862f (F:\llvm19\bin\clang.exe+0x122862f)
#13 0x00007ff6aa9cc51a (F:\llvm19\bin\clang.exe+0x156c51a)
#14 0x00007ff6aa9c91fd (F:\llvm19\bin\clang.exe+0x15691fd)
#15 0x00007ff6aa6a064b (F:\llvm19\bin\clang.exe+0x124064b)
#16 0x00007ff6aa5a5083 (F:\llvm19\bin\clang.exe+0x1145083)
#17 0x00007ff6aa5a04e8 (F:\llvm19\bin\clang.exe+0x11404e8)
#18 0x00007ff6aa59be62 (F:\llvm19\bin\clang.exe+0x113be62)
#19 0x00007ff6aa5980f1 (F:\llvm19\bin\clang.exe+0x11380f1)
#20 0x00007ff6aa591ff0 (F:\llvm19\bin\clang.exe+0x1131ff0)
#21 0x00007ff6aa5561c8 (F:\llvm19\bin\clang.exe+0x10f61c8)
#22 0x00007ff6aa555951 (F:\llvm19\bin\clang.exe+0x10f5951)
#23 0x00007ff6aa552d25 (F:\llvm19\bin\clang.exe+0x10f2d25)
#24 0x00007ff6aa577d54 (F:\llvm19\bin\clang.exe+0x1117d54)
#25 0x00007ff6aa568c46 (F:\llvm19\bin\clang.exe+0x1108c46)
#26 0x00007ff6aa3bcc89 (F:\llvm19\bin\clang.exe+0xf5cc89)
#27 0x00007ff6aa3bc72c (F:\llvm19\bin\clang.exe+0xf5c72c)
#28 0x00007ff6a94e1acc (F:\llvm19\bin\clang.exe+0x81acc)
#29 0x00007ff6aa3bebdb (F:\llvm19\bin\clang.exe+0xf5ebdb)
#30 0x00007ff6aa3bc98c (F:\llvm19\bin\clang.exe+0xf5c98c)
#31 0x00007ff6ad19c66d (F:\llvm19\bin\clang.exe+0x3d3c66d)
#32 0x00007ff6aa3bdafc (F:\llvm19\bin\clang.exe+0xf5dafc)
#33 0x00007ff6aafc3cc6 (F:\llvm19\bin\clang.exe+0x1b63cc6)
#34 0x00007ff6aafc392e (F:\llvm19\bin\clang.exe+0x1b6392e)
#35 0x00007ff6a9a22f31 (F:\llvm19\bin\clang.exe+0x5c2f31)
#36 0x00007ff6a9a22ac2 (F:\llvm19\bin\clang.exe+0x5c2ac2)
#37 0x00007ff6a9a1f836 (F:\llvm19\bin\clang.exe+0x5bf836)
#38 0x00007ff6a9a1c7f5 (F:\llvm19\bin\clang.exe+0x5bc7f5)
#39 0x00007ff6a9a1b18e (F:\llvm19\bin\clang.exe+0x5bb18e)
#40 0x00007ff6a98a2dfa (F:\llvm19\bin\clang.exe+0x442dfa)
#41 0x00007ff6a989f853 (F:\llvm19\bin\clang.exe+0x43f853)
#42 0x00007ff6ab063bd8 (F:\llvm19\bin\clang.exe+0x1c03bd8)
#43 0x00007ff850be7374 (C:\Windows\System32\KERNEL32.DLL+0x17374)
#44 0x00007ff851efcc91 (C:\Windows\SYSTEM32\ntdll.dll+0x4cc91)
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 19.1.4
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: F:\llvm19\bin
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: C:\Users\liaoxinwei\AppData\Local\Temp\grpc_client-ba3feb.cppm
clang: note: diagnostic msg: C:\Users\liaoxinwei\AppData\Local\Temp\grpc_client-ba3feb.sh
clang: note: diagnostic msg:
********************

Temp.zip

Endilll commented 2 days ago

Unfortunately, the provided reproducer contains imports, and given compiler errors, they seem to be required. We can't work with this. You can provide the whole project, but we'd prefer if you use #include instead, and let Clang prepare a self-contained reproducer.