Bug 263616

Summary: [WebGPU] Crash running http/tests/webgpu/webgpu/api/operation/sampling/anisotropy.html
Product: WebKit Reporter: Mike Wyrzykowski <mwyrzykowski>
Component: WebGPUAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Mike Wyrzykowski 2023-10-24 14:49:47 PDT
OpenSource % ./Tools/Scripts/run-webkit-tests --release --no-build http/tests/webgpu/webgpu/api/operation/sampling/anisotropy.html


OpenSource % more ./WebKitBuild/Debug/layout-test-results/http/tests/webgpu/webgpu/api/operation/sampling/anisotropy-crash-log.txt 
No crash log found for com.apple.WebKit.GPU.Development:81738.

stdout:

stderr:
SHOULD NEVER BE REACHED
/Volumes/Data/OpenSource/Source/WebGPU/WGSL/ConstantFunctions.h(265) : ConstantValue WGSL::constantMatrix(const Type *, const FixedVector<ConstantValue> &, unsigned int, unsigned int)
1   0x13be33f3c WTFCrash
2   0x1067e3874 WTF::StringImpl* WTF::RawPtrTraits<WTF::StringImpl>::exchange<std::nullptr_t>(WTF::StringImpl*&, std::nullptr_t&&)
3   0x106a6da08 WGSL::ConstantValue::isVector() const
4   0x106a2f334 WGSL::constantMat4x4(WGSL::Type const*, WTF::FixedVector<WGSL::ConstantValue> const&)
5   0x106a544d4 WGSL::Type const* WGSL::TypeChecker::chooseOverload<WTF::ReferenceWrapperVector<WGSL::AST::Expression, 0ul>&>(char const*, WGSL::AST::Expression&, WTF::String const&, WTF::ReferenceWrapperVector<WGSL::AST::Expression, 0ul>&, WTF::Vector<WGSL::Type const*, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> const&)
6   0x106a53334 WGSL::TypeChecker::visit(WGSL::AST::CallExpression&)
7   0x1068c6f18 void WGSL::AST::Visitor::checkErrorAndVisit<WGSL::AST::CallExpression>(WGSL::AST::CallExpression&)
8   0x1068c6918 WGSL::AST::Visitor::visit(WGSL::AST::Expression&)
9   0x106a4eaf4 WGSL::TypeChecker::infer(WGSL::AST::Expression&)
10  0x106a4e280 WGSL::TypeChecker::visitVariable(WGSL::AST::Variable&, WGSL::TypeChecker::VariableKind)
11  0x106a4ea24 WGSL::TypeChecker::visit(WGSL::AST::Variable&)
12  0x1068c5960 void WGSL::AST::Visitor::checkErrorAndVisit<WGSL::AST::Variable>(WGSL::AST::Variable&)
13  0x1068c9568 WGSL::AST::Visitor::visit(WGSL::AST::VariableStatement&)
14  0x1068c8b54 void WGSL::AST::Visitor::checkErrorAndVisit<WGSL::AST::VariableStatement>(WGSL::AST::VariableStatement&)
15  0x1068c7e70 WGSL::AST::Visitor::visit(WGSL::AST::Statement&)
16  0x1068c8e84 void WGSL::AST::Visitor::checkErrorAndVisit<WGSL::AST::Statement>(WGSL::AST::Statement&)
17  0x1068c8e04 WGSL::AST::Visitor::visit(WGSL::AST::CompoundStatement&)
18  0x106a4f20c WGSL::TypeChecker::visit(WGSL::AST::Function&)
19  0x106a4e148 WGSL::TypeChecker::check()
20  0x106a56d50 WGSL::typeCheck(WGSL::ShaderModule&)
21  0x106abe134 WGSL::staticCheck(WTF::String const&, std::__1::optional<WGSL::SourceMap> const&, WGSL::Configuration const&)::$_2::operator()() const
22  0x106abdd78 WGSL::staticCheck(WTF::String const&, std::__1::optional<WGSL::SourceMap> const&, WGSL::Configuration const&)
23  0x10689db28 WebGPU::Device::createShaderModule(WGPUShaderModuleDescriptor const&)
24  0x10682a988 wgpuDeviceCreateShaderModule
Comment 1 Radar WebKit Bug Importer 2023-10-24 14:50:16 PDT
<rdar://problem/117437787>