<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>249378</bug_id>
          
          <creation_ts>2022-12-15 00:45:39 -0800</creation_ts>
          <short_desc>[JSC] Tuple should be able to include V128 constant</short_desc>
          <delta_ts>2022-12-16 21:34:13 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="CAO ZONG">cz18811105578</reporter>
          <assigned_to name="Yusuke Suzuki">ysuzuki</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1919488</commentid>
    <comment_count>0</comment_count>
      <attachid>464055</attachid>
    <who name="CAO ZONG">cz18811105578</who>
    <bug_when>2022-12-15 00:45:39 -0800</bug_when>
    <thetext>Created attachment 464055
Reproducible poc

this poc can reproduce the crash stably
commit: bcd8cc0c0c83b0f2ddb78977a843650168bb138f

Stack
#0  0x00007ffff5ad400b in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff5ab3859 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x0000555555a3a1da in WTFCrashWithInfo(int, char const*, char const*, int) ()
#3  0x0000555556a13a79 in JSC::Wasm::AirIRGenerator64::emitMaterializeConstant(JSC::B3::Air::BasicBlock*, JSC::Wasm::Type, unsigned long, JSC::Wasm::TypedTmp&amp;) ()
#4  0x0000555556a48b0d in JSC::Wasm::AirIRGeneratorBase&lt;JSC::Wasm::AirIRGenerator64, JSC::Wasm::TypedTmp&gt;::addEndToUnreachable(JSC::Wasm::FunctionParserTypes&lt;JSC::Wasm::AirIRGeneratorBase&lt;JSC::Wasm::AirIRGenerator64, JSC::Wasm::TypedTmp&gt;::ControlData, JSC::Wasm::TypedTmp&gt;::ControlEntry&amp;, WTF::Vector&lt;JSC::Wasm::FunctionParserTypes&lt;JSC::Wasm::AirIRGeneratorBase&lt;JSC::Wasm::AirIRGenerator64, JSC::Wasm::TypedTmp&gt;::ControlData, JSC::Wasm::TypedTmp&gt;::TypedExpression, 16ul, WTF::UnsafeVectorOverflow, 16ul, WTF::FastMalloc&gt; const&amp;) ()
#5  0x0000555556a2dfa6 in JSC::Wasm::FunctionParser&lt;JSC::Wasm::AirIRGenerator64&gt;::parseUnreachableExpression() ()
#6  0x0000555556a2d5c1 in JSC::Wasm::FunctionParser&lt;JSC::Wasm::AirIRGenerator64&gt;::parseBody() ()
#7  0x0000555556a2c65f in JSC::Wasm::FunctionParser&lt;JSC::Wasm::AirIRGenerator64&gt;::parse() ()
#8  0x0000555556a23eae in std::experimental::fundamentals_v3::expected&lt;std::unique_ptr&lt;JSC::Wasm::InternalFunction, std::default_delete&lt;JSC::Wasm::InternalFunction&gt; &gt;, WTF::String&gt; JSC::Wasm::parseAndCompileAirImpl&lt;JSC::Wasm::AirIRGenerator64&gt;(JSC::Wasm::CompilationContext&amp;, JSC::Wasm::FunctionData const&amp;, JSC::Wasm::TypeDefinition const&amp;, WTF::Vector&lt;JSC::Wasm::UnlinkedWasmToWasmCall, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;, JSC::Wasm::ModuleInformation const&amp;, JSC::MemoryMode, unsigned int, std::optional&lt;bool&gt;, JSC::Wasm::TierUpCount*) ()
#9  0x0000555556a1c5d1 in JSC::Wasm::parseAndCompileAir(JSC::Wasm::CompilationContext&amp;, JSC::Wasm::FunctionData const&amp;, JSC::Wasm::TypeDefinition const&amp;, WTF::Vector&lt;JSC::Wasm::UnlinkedWasmToWasmCall, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;, JSC::Wasm::ModuleInformation const&amp;, JSC::MemoryMode, unsigned int, std::optional&lt;bool&gt;, JSC::Wasm::TierUpCount*) ()
#10 0x00005555569c7e76 in JSC::Wasm::BBQPlan::compileFunction(unsigned int, JSC::Wasm::CompilationContext&amp;, WTF::Vector&lt;JSC::Wasm::UnlinkedWasmToWasmCall, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;, JSC::Wasm::TierUpCount*) ()
#11 0x00005555569c6a56 in JSC::Wasm::BBQPlan::work(JSC::Wasm::Plan::CompilationEffort) ()
#12 0x0000555556b49ab2 in JSC::Wasm::Worklist::Thread::work() ()
#13 0x0000555556bf4143 in WTF::Detail::CallableWrapper&lt;WTF::AutomaticThread::start(WTF::AbstractLocker const&amp;)::$_0, void&gt;::call() ()
#14 0x0000555556c1537f in WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) ()
#15 0x0000555556c6f096 in WTF::wtfThreadEntryPoint(void*) ()
#16 0x00007ffff5fe3609 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#17 0x00007ffff5bb0133 in clone () from /lib/x86_64-linux-gnu/libc.so.6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1919489</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-12-15 00:45:51 -0800</bug_when>
    <thetext>&lt;rdar://problem/103392110&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1919812</commentid>
    <comment_count>2</comment_count>
    <who name="CAO ZONG">cz18811105578</who>
    <bug_when>2022-12-15 22:04:14 -0800</bug_when>
    <thetext>with --useWebAssemblySIMD=true flag</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920043</commentid>
    <comment_count>3</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2022-12-16 13:01:40 -0800</bug_when>
    <thetext>Changing the component from security to normal since this is not shipped. This is WIP developing feature.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920056</commentid>
    <comment_count>4</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2022-12-16 14:03:03 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/7779</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920185</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-12-16 21:34:10 -0800</bug_when>
    <thetext>Committed 258034@main (c19143329472): &lt;https://commits.webkit.org/258034@main&gt;

Reviewed commits have been landed. Closing PR #7779 and removing active labels.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>464055</attachid>
            <date>2022-12-15 00:45:39 -0800</date>
            <delta_ts>2022-12-15 00:45:39 -0800</delta_ts>
            <desc>Reproducible poc</desc>
            <filename>poc1215-2.js</filename>
            <type>text/javascript</type>
            <size>1060</size>
            <attacher name="CAO ZONG">cz18811105578</attacher>
            
              <data encoding="base64">dmFyIHdhc21fY29kZSA9IG5ldyBVaW50OEFycmF5KFswLDk3LDExNSwxMDksMSwwLDAsMCwxLDIw
MywxMjgsMTI4LDEyOCwwLDcsOTYsMywxMjcsMTI3LDEyNywxLDEyNyw5NiwxLDEyMywwLDk2LDEs
MTI2LDE1LDEyNSwxMjYsMTI1LDEyNywxMjMsMTI1LDEyNywxMjYsMTI0LDEyNSwxMjcsMTI3LDEy
NywxMjYsMTI3LDk2LDEsMTI2LDEsMTI2LDk2LDE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