* [linux-next:master 11376/13338] clang: error: clang frontend command failed with exit code 139 (use -v to see invocation)
@ 2025-08-06 12:00 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-06 12:00 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp
::::::
:::::: Manual check reason: "clang compiler bug"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: llvm@lists.linux.dev
BCC: lkp@intel.com
TO: Matthew Brost <matthew.brost@intel.com>
CC: Stuart Summers <stuart.summers@intel.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: b7d4e259682caccb51a25283655f2c8f02e32d23
commit: 535c445eb94c9abce3350aa61424fc34b8138ee8 [11376/13338] drm/xe: Add dependency scheduler for GT TLB invalidations to bind queues
:::::: branch date: 8 hours ago
:::::: commit date: 12 days ago
config: um-allmodconfig (https://download.01.org/0day-ci/archive/20250806/202508061925.bEevCphN-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250806/202508061925.bEevCphN-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202508061925.bEevCphN-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/gpu/drm/xe/xe_exec_queue.c:6:
In file included from drivers/gpu/drm/xe/xe_exec_queue.h:9:
In file included from drivers/gpu/drm/xe/xe_exec_queue_types.h:14:
In file included from drivers/gpu/drm/xe/xe_hw_engine_types.h:10:
In file included from drivers/gpu/drm/xe/xe_lrc_types.h:11:
In file included from drivers/gpu/drm/xe/xe_hw_fence_types.h:10:
In file included from include/linux/iosys-map.h:10:
In file included from include/linux/io.h:12:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:1175:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
1175 | return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
| ~~~~~~~~~~ ^
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: clang -Wp,-MMD,drivers/gpu/drm/xe/.xe_exec_queue.o.d -nostdinc -Iarch/um/include -I./arch/um/include/generated -Iinclude -I./include -Iarch/um/include/uapi -I./arch/um/include/generated/uapi -Iinclude/uapi -I./include/generated/uapi -include include/linux/compiler-version.h -include include/linux/kconfig.h -include include/linux/compiler_types.h -D__KERNEL__ --target=x86_64-linux-gnu -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -Werror=option-ignored -Werror=unused-command-line-argument -m64 -Iarch/x86/um -Iarch/x86/include -Iarch/x86/include/uapi -I./arch/x86/include/generated -I./arch/x86/include/generated/uapi -fmacro-prefix-map== -Wundef -DKBUILD_EXTRA_WARN1 -std=gnu11 -fshort-wchar -funsigned-char -fno-common -fno-PIE -fno-strict-aliasing -mcmodel=large -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-builtin -m64 -D__arch_um__ -Iarch/um/include/shared -Iarch/x86/um/shared -Iarch/um/include/shared/skas -Dvmap=kernel_vmap -Dlongjmp=kernel_longjmp -Dsetjmp=kernel_setjmp -Din6addr_loopback=kernel_in6addr_loopback -Din6addr_any=kernel_in6addr_any -Dstrrchr=kernel_strrchr -D__close_range=kernel__close_range -D_LARGEFILE64_SOURCE -Derrno=kernel_errno -Dsigprocmask=kernel_sigprocmask -Dmktime=kernel_mktime -fno-delete-null-pointer-checks -O2 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=pattern -fno-stack-clash-protection -fzero-call-used-regs=used-gpr -falign-functions=64 -fstrict-flex-arrays=3 -fno-strict-overflow -fno-stack-check -fno-builtin-wcslen -Wall -Wextra -Wundef -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Werror=strict-prototypes -Wno-format-security -Wno-trigraphs -Wno-frame-address -Wno-address-of-packed-member -Wmissing-declarations -Wmissing-prototypes -Wframe-larger-than=2048 -Wno-gnu -Wno-format-overflow-non-kprintf -Wno-format-truncation-non-kprintf -Wno-pointer-sign -Wcast-function-type -Wimplicit-fallthrough -Werror=date-time -Werror=incompatible-pointer-types -Wenum-conversion -Wunused -Wmissing-format-attribute -Wmissing-include-dirs -Wunused-const-variable -Wno-missing-field-initializers -Wno-type-limits -Wno-shift-negative-value -Wno-enum-enum-conversion -Wno-sign-compare -Wno-unused-parameter -DRANDSTRUCT -frandomize-layout-seed-file=./scripts/basic/randstruct.seed -fno-crash-diagnostics -Wno-error=return-type -Wreturn-type -funsigned-char -Wundef -Wextra -Wunused -Wno-unused-parameter -Wmissing-format-attribute -Wold-style-definition -Wmissing-include-dirs -Wunused-but-set-variable -Wunused-const-variable -Wformat-overflow -Wno-missing-field-initializers -Wno-type-limits -Wno-shift-negative-value -Wno-sign-compare -Wformat-truncation -Idrivers/gpu/drm/xe -Idrivers/gpu/drm/xe -fsanitize=kernel-address -mllvm -asan-mapping-offset=0x100000000000 -mllvm -asan-instrumentation-with-call-threshold=10000 -mllvm -asan-stack=0 -mllvm -asan-globals=1 -mllvm -asan-kernel-mem-intrinsic-prefix=1 -fsanitize=array-bounds -fsanitize=shift -fsanitize=unreachable -fsanitize=bool -fsanitize=enum -fsanitize-coverage=trace-pc -fsanitize-coverage=trace-cmp -Idrivers/gpu/drm/xe -Idrivers/gpu/drm/xe -DMODULE -DKBUILD_BASENAME=\"xe_exec_queue\" -DKBUILD_MODNAME=\"xe\" -D__KBUILD_MODNAME=kmod_xe -c -o drivers/gpu/drm/xe/xe_exec_queue.o drivers/gpu/drm/xe/xe_exec_queue.c
1. drivers/gpu/drm/xe/xe_exec_queue.c:355:1: current parser token 'void'
2. drivers/gpu/drm/xe/xe_exec_queue.c:337:6: LLVM IR generation of declaration 'xe_exec_queue_fini'
3. drivers/gpu/drm/xe/xe_exec_queue.c:337:6: Generating code for declaration 'xe_exec_queue_fini'
#0 0x000055f750c7e59b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (clang-19+0x391359b)
#1 0x000055f750c7c534 llvm::sys::CleanupOnSignal(unsigned long) (clang-19+0x3911534)
#2 0x000055f750bcce08 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
#3 0x00007fd130318050 (/lib/x86_64-linux-gnu/libc.so.6+0x3c050)
#4 0x000055f75415fbbb clang::ASTContext::getASTRecordLayout(clang::RecordDecl const*) const (clang-19+0x6df4bbb)
#5 0x000055f751350ea0 getFieldOffsetInBits(clang::CodeGen::CodeGenFunction&, clang::RecordDecl const*, clang::FieldDecl const*, long&) CGExpr.cpp:0:0
#6 0x000055f751350ed9 getFieldOffsetInBits(clang::CodeGen::CodeGenFunction&, clang::RecordDecl const*, clang::FieldDecl const*, long&) CGExpr.cpp:0:0
#7 0x000055f751350ed9 getFieldOffsetInBits(clang::CodeGen::CodeGenFunction&, clang::RecordDecl const*, clang::FieldDecl const*, long&) CGExpr.cpp:0:0
#8 0x000055f751378e24 clang::CodeGen::CodeGenFunction::EmitArraySubscriptExpr(clang::ArraySubscriptExpr const*, bool) (clang-19+0x400de24)
#9 0x000055f75137b022 clang::CodeGen::CodeGenFunction::EmitCheckedLValue(clang::Expr const*, clang::CodeGen::CodeGenFunction::TypeCheckKind) (clang-19+0x4010022)
#10 0x000055f7513c6eee (anonymous namespace)::ScalarExprEmitter::EmitLoadOfLValue(clang::Expr const*) CGExprScalar.cpp:0:0
#11 0x000055f7513c383a (anonymous namespace)::ScalarExprEmitter::Visit(clang::Expr*) CGExprScalar.cpp:0:0
#12 0x000055f7513c72cb (anonymous namespace)::ScalarExprEmitter::VisitCastExpr(clang::CastExpr*) CGExprScalar.cpp:0:0
#13 0x000055f7513c691f clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) (clang-19+0x405b91f)
#14 0x000055f751363397 clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*, clang::CodeGen::AggValueSlot, bool) (clang-19+0x3ff8397)
#15 0x000055f751363633 clang::CodeGen::CodeGenFunction::EmitAnyExprToTemp(clang::Expr const*) (clang-19+0x3ff8633)
#16 0x000055f7512e2088 clang::CodeGen::CodeGenFunction::EmitCallArg(clang::CodeGen::CallArgList&, clang::Expr const*, clang::QualType) (clang-19+0x3f77088)
#17 0x000055f7512e3fb4 clang::CodeGen::CodeGenFunction::EmitCallArgs(clang::CodeGen::CallArgList&, clang::CodeGen::CodeGenFunction::PrototypeWrapper, llvm::iterator_range<clang::Stmt::CastIterator<clang::Expr, clang::Expr const* const, clang::Stmt const* const>>, clang::CodeGen::CodeGenFunction::AbstractCallee, unsigned int, clang::CodeGen::CodeGenFunction::EvaluationOrder) (clang-19+0x3f78fb4)
#18 0x000055f75136e408 clang::CodeGen::CodeGenFunction::EmitCall(clang::QualType, clang::CodeGen::CGCallee const&, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot, llvm::Value*) (clang-19+0x4003408)
#19 0x000055f75136f516 clang::CodeGen::CodeGenFunction::EmitCallExpr(clang::CallExpr const*, clang::CodeGen::ReturnValueSlot) (clang-19+0x4004516)
#20 0x000055f7513c98e6 (anonymous namespace)::ScalarExprEmitter::VisitCallExpr(clang::CallExpr const*) CGExprScalar.cpp:0:0
#21 0x000055f7513c691f clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) (clang-19+0x405b91f)
#22 0x000055f751363397 clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*, clang::CodeGen::AggValueSlot, bool) (clang-19+0x3ff8397)
#23 0x000055f75136de67 clang::CodeGen::CodeGenFunction::EmitIgnoredExpr(clang::Expr const*) (clang-19+0x4002e67)
#24 0x000055f750f81c62 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (clang-19+0x3c16c62)
#25 0x000055f750f85b53 clang::CodeGen::CodeGenFunction::EmitForStmt(clang::ForStmt const&, llvm::ArrayRef<clang::Attr const*>) (clang-19+0x3c1ab53)
#26 0x000055f750f885f9 clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (clang-19+0x3c1d5f9)
#27 0x000055f750fe5fab clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::Stmt const*) (clang-19+0x3c7afab)
#28 0x000055f750ff8824 clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) (clang-19+0x3c8d824)
#29 0x000055f75103c852 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl, llvm::GlobalValue*) (clang-19+0x3cd1852)
#30 0x000055f751037f4c clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) (clang-19+0x3cccf4c)
#31 0x000055f751038603 clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) (clang-19+0x3ccd603)
#32 0x000055f751040807 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) (.part.0) CodeGenModule.cpp:0:0
#33 0x000055f7514e7100 (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) ModuleBuilder.cpp:0:0
#34 0x000055f7514d9255 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) (clang-19+0x416e255)
#35 0x000055f752db4edc clang::ParseAST(clang::Sema&, bool, bool) (clang-19+0x5a49edc)
#36 0x000055f75178fdb1 clang::FrontendAction::Execute() (clang-19+0x4424db1)
#37 0x000055f751707c3b clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (clang-19+0x439cc3b)
#38 0x000055f751854237 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (clang-19+0x44e9237)
#39 0x000055f74e26faca cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (clang-19+0xf04aca)
#40 0x000055f74e269dca ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
#41 0x000055f75152ea19 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const::'lambda'()>(long) Job.cpp:0:0
#42 0x000055f750bcd1d3 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (clang-19+0x38621d3)
#43 0x000055f75152eda9 clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const (.part.0) Job.cpp:0:0
#44 0x000055f7514f5e25 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (clang-19+0x418ae25)
#45 0x000055f7514f684d clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (clang-19+0x418b84d)
#46 0x000055f7515085ac clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (clang-19+0x419d5ac)
#47 0x000055f74e26cfbc clang_main(int, char**, llvm::ToolContext const&) (clang-19+0xf01fbc)
#48 0x000055f74e14ec93 main (clang-19+0xde3c93)
#49 0x00007fd13030324a (/lib/x86_64-linux-gnu/libc.so.6+0x2724a)
#50 0x00007fd130303305 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x27305)
#51 0x000055f74e2695c1 _start (clang-19+0xefe5c1)
>> clang: error: clang frontend command failed with exit code 139 (use -v to see invocation)
--
In file included from drivers/gpu/drm/xe/xe_execlist.c:6:
In file included from drivers/gpu/drm/xe/xe_execlist.h:9:
In file included from drivers/gpu/drm/xe/xe_execlist_types.h:13:
In file included from drivers/gpu/drm/xe/xe_exec_queue_types.h:14:
In file included from drivers/gpu/drm/xe/xe_hw_engine_types.h:10:
In file included from drivers/gpu/drm/xe/xe_lrc_types.h:11:
In file included from drivers/gpu/drm/xe/xe_hw_fence_types.h:10:
In file included from include/linux/iosys-map.h:10:
In file included from include/linux/io.h:12:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:1175:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
1175 | return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
| ~~~~~~~~~~ ^
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: clang -Wp,-MMD,drivers/gpu/drm/xe/.xe_execlist.o.d -nostdinc -Iarch/um/include -I./arch/um/include/generated -Iinclude -I./include -Iarch/um/include/uapi -I./arch/um/include/generated/uapi -Iinclude/uapi -I./include/generated/uapi -include include/linux/compiler-version.h -include include/linux/kconfig.h -include include/linux/compiler_types.h -D__KERNEL__ --target=x86_64-linux-gnu -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -Werror=option-ignored -Werror=unused-command-line-argument -m64 -Iarch/x86/um -Iarch/x86/include -Iarch/x86/include/uapi -I./arch/x86/include/generated -I./arch/x86/include/generated/uapi -fmacro-prefix-map== -Wundef -DKBUILD_EXTRA_WARN1 -std=gnu11 -fshort-wchar -funsigned-char -fno-common -fno-PIE -fno-strict-aliasing -mcmodel=large -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-builtin -m64 -D__arch_um__ -Iarch/um/include/shared -Iarch/x86/um/shared -Iarch/um/include/shared/skas -Dvmap=kernel_vmap -Dlongjmp=kernel_longjmp -Dsetjmp=kernel_setjmp -Din6addr_loopback=kernel_in6addr_loopback -Din6addr_any=kernel_in6addr_any -Dstrrchr=kernel_strrchr -D__close_range=kernel__close_range -D_LARGEFILE64_SOURCE -Derrno=kernel_errno -Dsigprocmask=kernel_sigprocmask -Dmktime=kernel_mktime -fno-delete-null-pointer-checks -O2 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=pattern -fno-stack-clash-protection -fzero-call-used-regs=used-gpr -falign-functions=64 -fstrict-flex-arrays=3 -fno-strict-overflow -fno-stack-check -fno-builtin-wcslen -Wall -Wextra -Wundef -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Werror=strict-prototypes -Wno-format-security -Wno-trigraphs -Wno-frame-address -Wno-address-of-packed-member -Wmissing-declarations -Wmissing-prototypes -Wframe-larger-than=2048 -Wno-gnu -Wno-format-overflow-non-kprintf -Wno-format-truncation-non-kprintf -Wno-pointer-sign -Wcast-function-type -Wimplicit-fallthrough -Werror=date-time -Werror=incompatible-pointer-types -Wenum-conversion -Wunused -Wmissing-format-attribute -Wmissing-include-dirs -Wunused-const-variable -Wno-missing-field-initializers -Wno-type-limits -Wno-shift-negative-value -Wno-enum-enum-conversion -Wno-sign-compare -Wno-unused-parameter -DRANDSTRUCT -frandomize-layout-seed-file=./scripts/basic/randstruct.seed -fno-crash-diagnostics -Wno-error=return-type -Wreturn-type -funsigned-char -Wundef -Wextra -Wunused -Wno-unused-parameter -Wmissing-format-attribute -Wold-style-definition -Wmissing-include-dirs -Wunused-but-set-variable -Wunused-const-variable -Wformat-overflow -Wno-missing-field-initializers -Wno-type-limits -Wno-shift-negative-value -Wno-sign-compare -Wformat-truncation -Idrivers/gpu/drm/xe -Idrivers/gpu/drm/xe -fsanitize=kernel-address -mllvm -asan-mapping-offset=0x100000000000 -mllvm -asan-instrumentation-with-call-threshold=10000 -mllvm -asan-stack=0 -mllvm -asan-globals=1 -mllvm -asan-kernel-mem-intrinsic-prefix=1 -fsanitize=array-bounds -fsanitize=shift -fsanitize=unreachable -fsanitize=bool -fsanitize=enum -fsanitize-coverage=trace-pc -fsanitize-coverage=trace-cmp -Idrivers/gpu/drm/xe -Idrivers/gpu/drm/xe -DMODULE -DKBUILD_BASENAME=\"xe_execlist\" -DKBUILD_MODNAME=\"xe\" -D__KBUILD_MODNAME=kmod_xe -c -o drivers/gpu/drm/xe/xe_execlist.o drivers/gpu/drm/xe/xe_execlist.c
1. <eof> parser at end of file
2. Per-file LLVM IR generation
3. drivers/gpu/drm/xe/xe_execlist.c:136:13: Generating code for declaration 'xe_execlist_is_idle'
#0 0x000055d50955059b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (clang-19+0x391359b)
#1 0x000055d50954e534 llvm::sys::CleanupOnSignal(unsigned long) (clang-19+0x3911534)
#2 0x000055d50949ee08 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
#3 0x00007fdafeaae050 (/lib/x86_64-linux-gnu/libc.so.6+0x3c050)
#4 0x000055d50ca31bbb clang::ASTContext::getASTRecordLayout(clang::RecordDecl const*) const (clang-19+0x6df4bbb)
#5 0x000055d509c22ea0 getFieldOffsetInBits(clang::CodeGen::CodeGenFunction&, clang::RecordDecl const*, clang::FieldDecl const*, long&) CGExpr.cpp:0:0
#6 0x000055d509c22ed9 getFieldOffsetInBits(clang::CodeGen::CodeGenFunction&, clang::RecordDecl const*, clang::FieldDecl const*, long&) CGExpr.cpp:0:0
#7 0x000055d509c22ed9 getFieldOffsetInBits(clang::CodeGen::CodeGenFunction&, clang::RecordDecl const*, clang::FieldDecl const*, long&) CGExpr.cpp:0:0
#8 0x000055d509c4ae24 clang::CodeGen::CodeGenFunction::EmitArraySubscriptExpr(clang::ArraySubscriptExpr const*, bool) (clang-19+0x400de24)
#9 0x000055d509c4d022 clang::CodeGen::CodeGenFunction::EmitCheckedLValue(clang::Expr const*, clang::CodeGen::CodeGenFunction::TypeCheckKind) (clang-19+0x4010022)
#10 0x000055d509c98eee (anonymous namespace)::ScalarExprEmitter::EmitLoadOfLValue(clang::Expr const*) CGExprScalar.cpp:0:0
#11 0x000055d509c9583a (anonymous namespace)::ScalarExprEmitter::Visit(clang::Expr*) CGExprScalar.cpp:0:0
#12 0x000055d509c992cb (anonymous namespace)::ScalarExprEmitter::VisitCastExpr(clang::CastExpr*) CGExprScalar.cpp:0:0
#13 0x000055d509c9891f clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) (clang-19+0x405b91f)
#14 0x000055d509bf96b7 clang::CodeGen::CodeGenFunction::EmitScalarInit(clang::Expr const*, clang::ValueDecl const*, clang::CodeGen::LValue, bool) (clang-19+0x3fbc6b7)
#15 0x000055d509bfab7f clang::CodeGen::CodeGenFunction::EmitExprAsInit(clang::Expr const*, clang::ValueDecl const*, clang::CodeGen::LValue, bool) (clang-19+0x3fbdb7f)
#16 0x000055d509c05f2f clang::CodeGen::CodeGenFunction::EmitAutoVarInit(clang::CodeGen::CodeGenFunction::AutoVarEmission const&) (clang-19+0x3fc8f2f)
#17 0x000055d509c080dc clang::CodeGen::CodeGenFunction::EmitVarDecl(clang::VarDecl const&) (.part.0) CGDecl.cpp:0:0
#18 0x000055d509c084e5 clang::CodeGen::CodeGenFunction::EmitDecl(clang::Decl const&) (clang-19+0x3fcb4e5)
#19 0x000055d509847b3f clang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt const&) (clang-19+0x3c0ab3f)
#20 0x000055d50985abe5 clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (clang-19+0x3c1dbe5)
#21 0x000055d509853bd2 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (clang-19+0x3c16bd2)
#22 0x000055d50985a5f9 clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (clang-19+0x3c1d5f9)
#23 0x000055d5098b7fab clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::Stmt const*) (clang-19+0x3c7afab)
#24 0x000055d5098ca824 clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) (clang-19+0x3c8d824)
#25 0x000055d50990e852 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl, llvm::GlobalValue*) (clang-19+0x3cd1852)
#26 0x000055d509909f4c clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) (clang-19+0x3cccf4c)
#27 0x000055d50991382c clang::CodeGen::CodeGenModule::EmitDeferred() (clang-19+0x3cd682c)
#28 0x000055d509913844 clang::CodeGen::CodeGenModule::EmitDeferred() (clang-19+0x3cd6844)
#29 0x000055d509913844 clang::CodeGen::CodeGenModule::EmitDeferred() (clang-19+0x3cd6844)
#30 0x000055d509913844 clang::CodeGen::CodeGenModule::EmitDeferred() (clang-19+0x3cd6844)
#31 0x000055d5099145ac clang::CodeGen::CodeGenModule::Release() (clang-19+0x3cd75ac)
#32 0x000055d509db89de (anonymous namespace)::CodeGeneratorImpl::HandleTranslationUnit(clang::ASTContext&) ModuleBuilder.cpp:0:0
#33 0x000055d509db66d5 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (clang-19+0x41796d5)
#34 0x000055d50b68713c clang::ParseAST(clang::Sema&, bool, bool) (clang-19+0x5a4a13c)
#35 0x000055d50a061db1 clang::FrontendAction::Execute() (clang-19+0x4424db1)
#36 0x000055d509fd9c3b clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (clang-19+0x439cc3b)
#37 0x000055d50a126237 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (clang-19+0x44e9237)
#38 0x000055d506b41aca cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (clang-19+0xf04aca)
#39 0x000055d506b3bdca ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
#40 0x000055d509e00a19 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const::'lambda'()>(long) Job.cpp:0:0
#41 0x000055d50949f1d3 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (clang-19+0x38621d3)
#42 0x000055d509e00da9 clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const (.part.0) Job.cpp:0:0
#43 0x000055d509dc7e25 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (clang-19+0x418ae25)
#44 0x000055d509dc884d clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (clang-19+0x418b84d)
#45 0x000055d509dda5ac clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (clang-19+0x419d5ac)
#46 0x000055d506b3efbc clang_main(int, char**, llvm::ToolContext const&) (clang-19+0xf01fbc)
#47 0x000055d506a20c93 main (clang-19+0xde3c93)
#48 0x00007fdafea9924a (/lib/x86_64-linux-gnu/libc.so.6+0x2724a)
#49 0x00007fdafea99305 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x27305)
#50 0x000055d506b3b5c1 _start (clang-19+0xefe5c1)
>> clang: error: clang frontend command failed with exit code 139 (use -v to see invocation)
--
In file included from drivers/gpu/drm/xe/xe_gt.c:6:
In file included from drivers/gpu/drm/xe/xe_gt.h:11:
In file included from include/drm/drm_util.h:35:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/um/include/asm/hardirq.h:5:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:12:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:1175:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
1175 | return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
| ~~~~~~~~~~ ^
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: clang -Wp,-MMD,drivers/gpu/drm/xe/.xe_gt.o.d -nostdinc -Iarch/um/include -I./arch/um/include/generated -Iinclude -I./include -Iarch/um/include/uapi -I./arch/um/include/generated/uapi -Iinclude/uapi -I./include/generated/uapi -include include/linux/compiler-version.h -include include/linux/kconfig.h -include include/linux/compiler_types.h -D__KERNEL__ --target=x86_64-linux-gnu -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -Werror=option-ignored -Werror=unused-command-line-argument -m64 -Iarch/x86/um -Iarch/x86/include -Iarch/x86/include/uapi -I./arch/x86/include/generated -I./arch/x86/include/generated/uapi -fmacro-prefix-map== -Wundef -DKBUILD_EXTRA_WARN1 -std=gnu11 -fshort-wchar -funsigned-char -fno-common -fno-PIE -fno-strict-aliasing -mcmodel=large -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-builtin -m64 -D__arch_um__ -Iarch/um/include/shared -Iarch/x86/um/shared -Iarch/um/include/shared/skas -Dvmap=kernel_vmap -Dlongjmp=kernel_longjmp -Dsetjmp=kernel_setjmp -Din6addr_loopback=kernel_in6addr_loopback -Din6addr_any=kernel_in6addr_any -Dstrrchr=kernel_strrchr -D__close_range=kernel__close_range -D_LARGEFILE64_SOURCE -Derrno=kernel_errno -Dsigprocmask=kernel_sigprocmask -Dmktime=kernel_mktime -fno-delete-null-pointer-checks -O2 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=pattern -fno-stack-clash-protection -fzero-call-used-regs=used-gpr -falign-functions=64 -fstrict-flex-arrays=3 -fno-strict-overflow -fno-stack-check -fno-builtin-wcslen -Wall -Wextra -Wundef -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Werror=strict-prototypes -Wno-format-security -Wno-trigraphs -Wno-frame-address -Wno-address-of-packed-member -Wmissing-declarations -Wmissing-prototypes -Wframe-larger-than=2048 -Wno-gnu -Wno-format-overflow-non-kprintf -Wno-format-truncation-non-kprintf -Wno-pointer-sign -Wcast-function-type -Wimplicit-fallthrough -Werror=date-time -Werror=incompatible-pointer-types -Wenum-conversion -Wunused -Wmissing-format-attribute -Wmissing-include-dirs -Wunused-const-variable -Wno-missing-field-initializers -Wno-type-limits -Wno-shift-negative-value -Wno-enum-enum-conversion -Wno-sign-compare -Wno-unused-parameter -DRANDSTRUCT -frandomize-layout-seed-file=./scripts/basic/randstruct.seed -fno-crash-diagnostics -Wno-error=return-type -Wreturn-type -funsigned-char -Wundef -Wextra -Wunused -Wno-unused-parameter -Wmissing-format-attribute -Wold-style-definition -Wmissing-include-dirs -Wunused-but-set-variable -Wunused-const-variable -Wformat-overflow -Wno-missing-field-initializers -Wno-type-limits -Wno-shift-negative-value -Wno-sign-compare -Wformat-truncation -Idrivers/gpu/drm/xe -Idrivers/gpu/drm/xe -fsanitize=kernel-address -mllvm -asan-mapping-offset=0x100000000000 -mllvm -asan-instrumentation-with-call-threshold=10000 -mllvm -asan-stack=0 -mllvm -asan-globals=1 -mllvm -asan-kernel-mem-intrinsic-prefix=1 -fsanitize=array-bounds -fsanitize=shift -fsanitize=unreachable -fsanitize=bool -fsanitize=enum -fsanitize-coverage=trace-pc -fsanitize-coverage=trace-cmp -Idrivers/gpu/drm/xe -Idrivers/gpu/drm/xe -DMODULE -DKBUILD_BASENAME=\"xe_gt\" -DKBUILD_MODNAME=\"xe\" -D__KBUILD_MODNAME=kmod_xe -c -o drivers/gpu/drm/xe/xe_gt.o drivers/gpu/drm/xe/xe_gt.c
1. drivers/gpu/drm/xe/xe_gt.c:389:1: current parser token 'int'
2. drivers/gpu/drm/xe/xe_gt.c:313:5: LLVM IR generation of declaration 'xe_gt_record_default_lrcs'
3. drivers/gpu/drm/xe/xe_gt.c:313:5: Generating code for declaration 'xe_gt_record_default_lrcs'
4. drivers/gpu/drm/xe/xe_gt.c:320:34: LLVM IR generation of compound statement ('{}')
#0 0x000055da2d8fd59b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (clang-19+0x391359b)
#1 0x000055da2d8fb534 llvm::sys::CleanupOnSignal(unsigned long) (clang-19+0x3911534)
#2 0x000055da2d84be08 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
#3 0x00007f619511a050 (/lib/x86_64-linux-gnu/libc.so.6+0x3c050)
#4 0x000055da30ddebbb clang::ASTContext::getASTRecordLayout(clang::RecordDecl const*) const (clang-19+0x6df4bbb)
#5 0x000055da2dfcfea0 getFieldOffsetInBits(clang::CodeGen::CodeGenFunction&, clang::RecordDecl const*, clang::FieldDecl const*, long&) CGExpr.cpp:0:0
#6 0x000055da2dfcfed9 getFieldOffsetInBits(clang::CodeGen::CodeGenFunction&, clang::RecordDecl const*, clang::FieldDecl const*, long&) CGExpr.cpp:0:0
#7 0x000055da2dfcfed9 getFieldOffsetInBits(clang::CodeGen::CodeGenFunction&, clang::RecordDecl const*, clang::FieldDecl const*, long&) CGExpr.cpp:0:0
#8 0x000055da2dff7e24 clang::CodeGen::CodeGenFunction::EmitArraySubscriptExpr(clang::ArraySubscriptExpr const*, bool) (clang-19+0x400de24)
#9 0x000055da2dffa022 clang::CodeGen::CodeGenFunction::EmitCheckedLValue(clang::Expr const*, clang::CodeGen::CodeGenFunction::TypeCheckKind) (clang-19+0x4010022)
#10 0x000055da2e045eee (anonymous namespace)::ScalarExprEmitter::EmitLoadOfLValue(clang::Expr const*) CGExprScalar.cpp:0:0
#11 0x000055da2e04283a (anonymous namespace)::ScalarExprEmitter::Visit(clang::Expr*) CGExprScalar.cpp:0:0
#12 0x000055da2e0462cb (anonymous namespace)::ScalarExprEmitter::VisitCastExpr(clang::CastExpr*) CGExprScalar.cpp:0:0
#13 0x000055da2e04591f clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) (clang-19+0x405b91f)
#14 0x000055da2dff0e25 EmitPointerWithAlignment(clang::Expr const*, clang::CodeGen::LValueBaseInfo*, clang::CodeGen::TBAAAccessInfo*, clang::CodeGen::KnownNonNull_t, clang::CodeGen::CodeGenFunction&) CGExpr.cpp:0:0
#15 0x000055da2dffa0d3 clang::CodeGen::CodeGenFunction::EmitMemberExpr(clang::MemberExpr const*) (.part.0) CGExpr.cpp:0:0
#16 0x000055da2dffa79e clang::CodeGen::CodeGenFunction::EmitMemberExpr(clang::MemberExpr const*) (clang-19+0x401079e)
#17 0x000055da2dfeeb42 clang::CodeGen::CodeGenFunction::EmitLValueHelper(clang::Expr const*, clang::CodeGen::KnownNonNull_t) (clang-19+0x4004b42)
#18 0x000055da2dff9e70 clang::CodeGen::CodeGenFunction::EmitCheckedLValue(clang::Expr const*, clang::CodeGen::CodeGenFunction::TypeCheckKind) (clang-19+0x400fe70)
#19 0x000055da2e045eee (anonymous namespace)::ScalarExprEmitter::EmitLoadOfLValue(clang::Expr const*) CGExprScalar.cpp:0:0
#20 0x000055da2e0460e6 (anonymous namespace)::ScalarExprEmitter::VisitMemberExpr(clang::MemberExpr*) CGExprScalar.cpp:0:0
#21 0x000055da2e04283a (anonymous namespace)::ScalarExprEmitter::Visit(clang::Expr*) CGExprScalar.cpp:0:0
#22 0x000055da2e0462cb (anonymous namespace)::ScalarExprEmitter::VisitCastExpr(clang::CastExpr*) CGExprScalar.cpp:0:0
#23 0x000055da2e04591f clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) (clang-19+0x405b91f)
#24 0x000055da2dff0e25 EmitPointerWithAlignment(clang::Expr const*, clang::CodeGen::LValueBaseInfo*, clang::CodeGen::TBAAAccessInfo*, clang::CodeGen::KnownNonNull_t, clang::CodeGen::CodeGenFunction&) CGExpr.cpp:0:0
#25 0x000055da2dffa0d3 clang::CodeGen::CodeGenFunction::EmitMemberExpr(clang::MemberExpr const*) (.part.0) CGExpr.cpp:0:0
#26 0x000055da2dffa79e clang::CodeGen::CodeGenFunction::EmitMemberExpr(clang::MemberExpr const*) (clang-19+0x401079e)
#27 0x000055da2dfeeb42 clang::CodeGen::CodeGenFunction::EmitLValueHelper(clang::Expr const*, clang::CodeGen::KnownNonNull_t) (clang-19+0x4004b42)
#28 0x000055da2dfef4d0 clang::CodeGen::CodeGenFunction::EmitLValue(clang::Expr const*, clang::CodeGen::KnownNonNull_t) (clang-19+0x40054d0)
#29 0x000055da2e040bd6 clang::StmtVisitorBase<std::add_pointer, (anonymous namespace)::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt*) CGExprScalar.cpp:0:0
#30 0x000055da2e04283a (anonymous namespace)::ScalarExprEmitter::Visit(clang::Expr*) CGExprScalar.cpp:0:0
#31 0x000055da2e0462cb (anonymous namespace)::ScalarExprEmitter::VisitCastExpr(clang::CastExpr*) CGExprScalar.cpp:0:0
#32 0x000055da2e04591f clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) (clang-19+0x405b91f)
#33 0x000055da2dfe2397 clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*, clang::CodeGen::AggValueSlot, bool) (clang-19+0x3ff8397)
#34 0x000055da2dfe2633 clang::CodeGen::CodeGenFunction::EmitAnyExprToTemp(clang::Expr const*) (clang-19+0x3ff8633)
#35 0x000055da2df61088 clang::CodeGen::CodeGenFunction::EmitCallArg(clang::CodeGen::CallArgList&, clang::Expr const*, clang::QualType) (clang-19+0x3f77088)
#36 0x000055da2df62fb4 clang::CodeGen::CodeGenFunction::EmitCallArgs(clang::CodeGen::CallArgList&, clang::CodeGen::CodeGenFunction::PrototypeWrapper, llvm::iterator_range<clang::Stmt::CastIterator<clang::Expr, clang::Expr const* const, clang::Stmt const* const>>, clang::CodeGen::CodeGenFunction::AbstractCallee, unsigned int, clang::CodeGen::CodeGenFunction::EvaluationOrder) (clang-19+0x3f78fb4)
#37 0x000055da2dfed408 clang::CodeGen::CodeGenFunction::EmitCall(clang::QualType, clang::CodeGen::CGCallee const&, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot, llvm::Value*) (clang-19+0x4003408)
#38 0x000055da2dfee516 clang::CodeGen::CodeGenFunction::EmitCallExpr(clang::CallExpr const*, clang::CodeGen::ReturnValueSlot) (clang-19+0x4004516)
#39 0x000055da2e0488e6 (anonymous namespace)::ScalarExprEmitter::VisitCallExpr(clang::CallExpr const*) CGExprScalar.cpp:0:0
#40 0x000055da2e04591f clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) (clang-19+0x405b91f)
#41 0x000055da2dfe2397 clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*, clang::CodeGen::AggValueSlot, bool) (clang-19+0x3ff8397)
#42 0x000055da2dfece67 clang::CodeGen::CodeGenFunction::EmitIgnoredExpr(clang::Expr const*) (clang-19+0x4002e67)
#43 0x000055da2dc00c62 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (clang-19+0x3c16c62)
#44 0x000055da2dc075f9 clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (clang-19+0x3c1d5f9)
#45 0x000055da2dc0799d clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (clang-19+0x3c1d99d)
#46 0x000055da2dc07c7d clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (clang-19+0x3c1dc7d)
#47 0x000055da2dc00bd2 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (clang-19+0x3c16bd2)
#48 0x000055da2dc07113 clang::CodeGen::CodeGenFunction::EmitIfStmt(clang::IfStmt const&) (clang-19+0x3c1d113)
#49 0x000055da2dc04b53 clang::CodeGen::CodeGenFunction::EmitForStmt(clang::ForStmt const&, llvm::ArrayRef<clang::Attr const*>) (clang-19+0x3c1ab53)
#50 0x000055da2dc075f9 clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (clang-19+0x3c1d5f9)
#51 0x000055da2dc64fab clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::Stmt const*) (clang-19+0x3c7afab)
#52 0x000055da2dc77824 clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) (clang-19+0x3c8d824)
#53 0x000055da2dcbb852 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl, llvm::GlobalValue*) (clang-19+0x3cd1852)
#54 0x000055da2dcb6f4c clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) (clang-19+0x3cccf4c)
#55 0x000055da2dcb7603 clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) (clang-19+0x3ccd603)
#56 0x000055da2dcbf807 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) (.part.0) CodeGenModule.cpp:0:0
#57 0x000055da2e166100 (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) ModuleBuilder.cpp:0:0
#58 0x000055da2e158255 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) (clang-19+0x416e255)
#59 0x000055da2fa33edc clang::ParseAST(clang::Sema&, bool, bool) (clang-19+0x5a49edc)
#60 0x000055da2e40edb1 clang::FrontendAction::Execute() (clang-19+0x4424db1)
#61 0x000055da2e386c3b clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (clang-19+0x439cc3b)
#62 0x000055da2e4d3237 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (clang-19+0x44e9237)
#63 0x000055da2aeeeaca cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (clang-19+0xf04aca)
#64 0x000055da2aee8dca ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
#65 0x000055da2e1ada19 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const::'lambda'()>(long) Job.cpp:0:0
#66 0x000055da2d84c1d3 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (clang-19+0x38621d3)
#67 0x000055da2e1adda9 clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const (.part.0) Job.cpp:0:0
#68 0x000055da2e174e25 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (clang-19+0x418ae25)
#69 0x000055da2e17584d clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (clang-19+0x418b84d)
#70 0x000055da2e1875ac clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (clang-19+0x419d5ac)
#71 0x000055da2aeebfbc clang_main(int, char**, llvm::ToolContext const&) (clang-19+0xf01fbc)
#72 0x000055da2adcdc93 main (clang-19+0xde3c93)
#73 0x00007f619510524a (/lib/x86_64-linux-gnu/libc.so.6+0x2724a)
#74 0x00007f6195105305 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x27305)
#75 0x000055da2aee85c1 _start (clang-19+0xefe5c1)
>> clang: error: clang frontend command failed with exit code 139 (use -v to see invocation)
--
In file included from drivers/gpu/drm/xe/xe_guc_capture.c:19:
In file included from drivers/gpu/drm/xe/xe_bo.h:9:
In file included from include/drm/ttm/ttm_tt.h:30:
In file included from include/linux/pagemap.h:11:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from arch/um/include/asm/hardirq.h:5:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:12:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:1175:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
1175 | return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
| ~~~~~~~~~~ ^
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: clang -Wp,-MMD,drivers/gpu/drm/xe/.xe_guc_capture.o.d -nostdinc -Iarch/um/include -I./arch/um/include/generated -Iinclude -I./include -Iarch/um/include/uapi -I./arch/um/include/generated/uapi -Iinclude/uapi -I./include/generated/uapi -include include/linux/compiler-version.h -include include/linux/kconfig.h -include include/linux/compiler_types.h -D__KERNEL__ --target=x86_64-linux-gnu -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -Werror=option-ignored -Werror=unused-command-line-argument -m64 -Iarch/x86/um -Iarch/x86/include -Iarch/x86/include/uapi -I./arch/x86/include/generated -I./arch/x86/include/generated/uapi -fmacro-prefix-map== -Wundef -DKBUILD_EXTRA_WARN1 -std=gnu11 -fshort-wchar -funsigned-char -fno-common -fno-PIE -fno-strict-aliasing -mcmodel=large -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fno-builtin -m64 -D__arch_um__ -Iarch/um/include/shared -Iarch/x86/um/shared -Iarch/um/include/shared/skas -Dvmap=kernel_vmap -Dlongjmp=kernel_longjmp -Dsetjmp=kernel_setjmp -Din6addr_loopback=kernel_in6addr_loopback -Din6addr_any=kernel_in6addr_any -Dstrrchr=kernel_strrchr -D__close_range=kernel__close_range -D_LARGEFILE64_SOURCE -Derrno=kernel_errno -Dsigprocmask=kernel_sigprocmask -Dmktime=kernel_mktime -fno-delete-null-pointer-checks -O2 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=pattern -fno-stack-clash-protection -fzero-call-used-regs=used-gpr -falign-functions=64 -fstrict-flex-arrays=3 -fno-strict-overflow -fno-stack-check -fno-builtin-wcslen -Wall -Wextra -Wundef -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Werror=strict-prototypes -Wno-format-security -Wno-trigraphs -Wno-frame-address -Wno-address-of-packed-member -Wmissing-declarations -Wmissing-prototypes -Wframe-larger-than=2048 -Wno-gnu -Wno-format-overflow-non-kprintf -Wno-format-truncation-non-kprintf -Wno-pointer-sign -Wcast-function-type -Wimplicit-fallthrough -Werror=date-time -Werror=incompatible-pointer-types -Wenum-conversion -Wunused -Wmissing-format-attribute -Wmissing-include-dirs -Wunused-const-variable -Wno-missing-field-initializers -Wno-type-limits -Wno-shift-negative-value -Wno-enum-enum-conversion -Wno-sign-compare -Wno-unused-parameter -DRANDSTRUCT -frandomize-layout-seed-file=./scripts/basic/randstruct.seed -fno-crash-diagnostics -Wno-error=return-type -Wreturn-type -funsigned-char -Wundef -Wextra -Wunused -Wno-unused-parameter -Wmissing-format-attribute -Wold-style-definition -Wmissing-include-dirs -Wunused-but-set-variable -Wunused-const-variable -Wformat-overflow -Wno-missing-field-initializers -Wno-type-limits -Wno-shift-negative-value -Wno-sign-compare -Wformat-truncation -Idrivers/gpu/drm/xe -Idrivers/gpu/drm/xe -fsanitize=kernel-address -mllvm -asan-mapping-offset=0x100000000000 -mllvm -asan-instrumentation-with-call-threshold=10000 -mllvm -asan-stack=0 -mllvm -asan-globals=1 -mllvm -asan-kernel-mem-intrinsic-prefix=1 -fsanitize=array-bounds -fsanitize=shift -fsanitize=unreachable -fsanitize=bool -fsanitize=enum -fsanitize-coverage=trace-pc -fsanitize-coverage=trace-cmp -Idrivers/gpu/drm/xe -Idrivers/gpu/drm/xe -DMODULE -DKBUILD_BASENAME=\"xe_guc_capture\" -DKBUILD_MODNAME=\"xe\" -D__KBUILD_MODNAME=kmod_xe -c -o drivers/gpu/drm/xe/xe_guc_capture.o drivers/gpu/drm/xe/xe_guc_capture.c
1. drivers/gpu/drm/xe/xe_guc_capture.c:1905:1: current parser token 'void'
2. drivers/gpu/drm/xe/xe_guc_capture.c:1847:1: LLVM IR generation of declaration 'xe_guc_capture_get_matching_and_lock'
3. drivers/gpu/drm/xe/xe_guc_capture.c:1847:1: Generating code for declaration 'xe_guc_capture_get_matching_and_lock'
4. drivers/gpu/drm/xe/xe_guc_capture.c:1874:42: LLVM IR generation of compound statement ('{}')
#0 0x000055921541d59b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (clang-19+0x391359b)
#1 0x000055921541b534 llvm::sys::CleanupOnSignal(unsigned long) (clang-19+0x3911534)
#2 0x000055921536be08 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
#3 0x00007ff305c58050 (/lib/x86_64-linux-gnu/libc.so.6+0x3c050)
#4 0x00005592188febbb clang::ASTContext::getASTRecordLayout(clang::RecordDecl const*) const (clang-19+0x6df4bbb)
#5 0x0000559215aefea0 getFieldOffsetInBits(clang::CodeGen::CodeGenFunction&, clang::RecordDecl const*, clang::FieldDecl const*, long&) CGExpr.cpp:0:0
#6 0x0000559215aefed9 getFieldOffsetInBits(clang::CodeGen::CodeGenFunction&, clang::RecordDecl const*, clang::FieldDecl const*, long&) CGExpr.cpp:0:0
#7 0x0000559215aefed9 getFieldOffsetInBits(clang::CodeGen::CodeGenFunction&, clang::RecordDecl const*, clang::FieldDecl const*, long&) CGExpr.cpp:0:0
#8 0x0000559215b17e24 clang::CodeGen::CodeGenFunction::EmitArraySubscriptExpr(clang::ArraySubscriptExpr const*, bool) (clang-19+0x400de24)
#9 0x0000559215b1a022 clang::CodeGen::CodeGenFunction::EmitCheckedLValue(clang::Expr const*, clang::CodeGen::CodeGenFunction::TypeCheckKind) (clang-19+0x4010022)
#10 0x0000559215b65eee (anonymous namespace)::ScalarExprEmitter::EmitLoadOfLValue(clang::Expr const*) CGExprScalar.cpp:0:0
#11 0x0000559215b6283a (anonymous namespace)::ScalarExprEmitter::Visit(clang::Expr*) CGExprScalar.cpp:0:0
#12 0x0000559215b662cb (anonymous namespace)::ScalarExprEmitter::VisitCastExpr(clang::CastExpr*) CGExprScalar.cpp:0:0
#13 0x0000559215b6591f clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) (clang-19+0x405b91f)
#14 0x0000559215b02397 clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*, clang::CodeGen::AggValueSlot, bool) (clang-19+0x3ff8397)
#15 0x0000559215b02633 clang::CodeGen::CodeGenFunction::EmitAnyExprToTemp(clang::Expr const*) (clang-19+0x3ff8633)
#16 0x0000559215a81088 clang::CodeGen::CodeGenFunction::EmitCallArg(clang::CodeGen::CallArgList&, clang::Expr const*, clang::QualType) (clang-19+0x3f77088)
#17 0x0000559215a82fb4 clang::CodeGen::CodeGenFunction::EmitCallArgs(clang::CodeGen::CallArgList&, clang::CodeGen::CodeGenFunction::PrototypeWrapper, llvm::iterator_range<clang::Stmt::CastIterator<clang::Expr, clang::Expr const* const, clang::Stmt const* const>>, clang::CodeGen::CodeGenFunction::AbstractCallee, unsigned int, clang::CodeGen::CodeGenFunction::EvaluationOrder) (clang-19+0x3f78fb4)
#18 0x0000559215b0d408 clang::CodeGen::CodeGenFunction::EmitCall(clang::QualType, clang::CodeGen::CGCallee const&, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot, llvm::Value*) (clang-19+0x4003408)
#19 0x0000559215b0e516 clang::CodeGen::CodeGenFunction::EmitCallExpr(clang::CallExpr const*, clang::CodeGen::ReturnValueSlot) (clang-19+0x4004516)
#20 0x0000559215b688e6 (anonymous namespace)::ScalarExprEmitter::VisitCallExpr(clang::CallExpr const*) CGExprScalar.cpp:0:0
#21 0x0000559215b6591f clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) (clang-19+0x405b91f)
#22 0x0000559215ac66b7 clang::CodeGen::CodeGenFunction::EmitScalarInit(clang::Expr const*, clang::ValueDecl const*, clang::CodeGen::LValue, bool) (clang-19+0x3fbc6b7)
#23 0x0000559215ac7b7f clang::CodeGen::CodeGenFunction::EmitExprAsInit(clang::Expr const*, clang::ValueDecl const*, clang::CodeGen::LValue, bool) (clang-19+0x3fbdb7f)
#24 0x0000559215ad2f2f clang::CodeGen::CodeGenFunction::EmitAutoVarInit(clang::CodeGen::CodeGenFunction::AutoVarEmission const&) (clang-19+0x3fc8f2f)
#25 0x0000559215ad50dc clang::CodeGen::CodeGenFunction::EmitVarDecl(clang::VarDecl const&) (.part.0) CGDecl.cpp:0:0
#26 0x0000559215ad54e5 clang::CodeGen::CodeGenFunction::EmitDecl(clang::Decl const&) (clang-19+0x3fcb4e5)
#27 0x0000559215714b3f clang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt const&) (clang-19+0x3c0ab3f)
#28 0x0000559215727be5 clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (clang-19+0x3c1dbe5)
#29 0x0000559215720bd2 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (clang-19+0x3c16bd2)
#30 0x00005592157275f9 clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (clang-19+0x3c1d5f9)
#31 0x000055921572799d clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (clang-19+0x3c1d99d)
#32 0x0000559215727c7d clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (clang-19+0x3c1dc7d)
#33 0x0000559215720bd2 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (clang-19+0x3c16bd2)
#34 0x0000559215727029 clang::CodeGen::CodeGenFunction::EmitIfStmt(clang::IfStmt const&) (clang-19+0x3c1d029)
#35 0x00005592157275f9 clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (clang-19+0x3c1d5f9)
#36 0x0000559215784fab clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::Stmt const*) (clang-19+0x3c7afab)
#37 0x0000559215797824 clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) (clang-19+0x3c8d824)
#38 0x00005592157db852 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl, llvm::GlobalValue*) (clang-19+0x3cd1852)
#39 0x00005592157d6f4c clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) (clang-19+0x3cccf4c)
#40 0x00005592157d7603 clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) (clang-19+0x3ccd603)
#41 0x00005592157df807 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) (.part.0) CodeGenModule.cpp:0:0
#42 0x0000559215c86100 (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) ModuleBuilder.cpp:0:0
#43 0x0000559215c78255 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) (clang-19+0x416e255)
#44 0x0000559217553edc clang::ParseAST(clang::Sema&, bool, bool) (clang-19+0x5a49edc)
#45 0x0000559215f2edb1 clang::FrontendAction::Execute() (clang-19+0x4424db1)
#46 0x0000559215ea6c3b clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (clang-19+0x439cc3b)
#47 0x0000559215ff3237 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (clang-19+0x44e9237)
#48 0x0000559212a0eaca cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (clang-19+0xf04aca)
#49 0x0000559212a08dca ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
#50 0x0000559215ccda19 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const::'lambda'()>(long) Job.cpp:0:0
#51 0x000055921536c1d3 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (clang-19+0x38621d3)
#52 0x0000559215ccdda9 clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const (.part.0) Job.cpp:0:0
#53 0x0000559215c94e25 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (clang-19+0x418ae25)
#54 0x0000559215c9584d clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (clang-19+0x418b84d)
#55 0x0000559215ca75ac clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (clang-19+0x419d5ac)
#56 0x0000559212a0bfbc clang_main(int, char**, llvm::ToolContext const&) (clang-19+0xf01fbc)
#57 0x00005592128edc93 main (clang-19+0xde3c93)
#58 0x00007ff305c4324a (/lib/x86_64-linux-gnu/libc.so.6+0x2724a)
#59 0x00007ff305c43305 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x27305)
#60 0x0000559212a085c1 _start (clang-19+0xefe5c1)
>> clang: error: clang frontend command failed with exit code 139 (use -v to see invocation)
..
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-08-06 12:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-06 12:00 [linux-next:master 11376/13338] clang: error: clang frontend command failed with exit code 139 (use -v to see invocation) kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.