<?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>293911</bug_id>
          
          <creation_ts>2025-06-02 11:13:13 -0700</creation_ts>
          <short_desc>ASSERTION FAILED: osrEntryCallee.osrEntryScratchBufferSize() == valueSize * osrEntryData.values().size()</short_desc>
          <delta_ts>2025-06-05 14:34:52 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebAssembly</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>289723</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lilan">z694081360</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>daniel_liu4</cc>
    
    <cc>keith_miller</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2121157</commentid>
    <comment_count>0</comment_count>
    <who name="Lilan">z694081360</who>
    <bug_when>2025-06-02 11:13:13 -0700</bug_when>
    <thetext>tested in the following commit:
201464e0c29adb867d38fd481e5ac707a48ea9e2(wpewebkit-2.48.2)

run argument:
./jsc crash.js

build argument:
./Tools/Scripts/build-jsc --jsc-only --debug 

crash.js:
```
const wasmcode = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([
    0x00, 0x61, 0x73, 0x6D, 0x01, 0x00, 0x00, 0x00, 0x01, 0x13,
    0x03, 0x60, 0x01, 0x7E, 0x01, 0x7C, 0x60, 0x00, 0x00, 0x60,
    0x06, 0x7C, 0x7D, 0x7C, 0x7D, 0x7F, 0x7C, 0x01, 0x7D, 0x03,
    0x02, 0x01, 0x02, 0x04, 0x01, 0x00, 0x05, 0x01, 0x00, 0x06,
    0x01, 0x00, 0x07, 0x06, 0x01, 0x02, 0x77, 0x30, 0x00, 0x00,
    0x09, 0x01, 0x00, 0x0A, 0x39, 0x01, 0x37, 0x05, 0x01, 0x7C,
    0x01, 0x7E, 0x01, 0x7E, 0x01, 0x7F, 0x01, 0x7C, 0x44, 0x00,
    0xF4, 0x82, 0xB5, 0x6C, 0x78, 0x81, 0x3F, 0x21, 0x06, 0x20,
    0x04, 0xAC, 0x21, 0x07, 0x20, 0x07, 0x06, 0x00, 0x21, 0x08,
    0x41, 0x0A, 0x21, 0x09, 0x03, 0x01, 0x20, 0x09, 0x0D, 0x00,
    0x0B, 0x20, 0x06, 0x19, 0x20, 0x00, 0x0B, 0x21, 0x0A, 0x20,
    0x03, 0x0B,
])));
wasmcode.exports.w0();
gc();

```

output:
ASSERTION FAILED: osrEntryCallee.osrEntryScratchBufferSize() == valueSize * osrEntryData.values().size()
/root/webkit/Source/JavaScriptCore/wasm/WasmOperations.cpp(865) : void JSC::Wasm::doOSREntry(JSC::JSWebAssemblyInstance *, Probe::Context &amp;, JSC::Wasm::BBQCallee &amp;, JSC::Wasm::OMGOSREntryCallee &amp;, JSC::Wasm::OSREntryData &amp;)

backtrace:
#0  __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, 
    futex_word=0x7fffe7027be4) at ./nptl/futex-internal.c:57
#1  __futex_abstimed_wait_common (cancel=true, private=0, abstime=0x0, clockid=0, expected=0, 
    futex_word=0x7fffe7027be4) at ./nptl/futex-internal.c:87
#2  __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x7fffe7027be4, 
    expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, 
    private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x00007ffff0e62a41 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x7fffe7027b90, 
    cond=0x7fffe7027bb8) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x7fffe7027bb8, mutex=0x7fffe7027b90) at ./nptl/pthread_cond_wait.c:627
#5  0x00007ffff78e7efd in WTF::ThreadCondition::wait (this=0x7fffe7027bb8, mutex=...)
    at /root/webkit/Source/WTF/wtf/posix/ThreadingPOSIX.cpp:650
#6  0x00007ffff78e8026 in WTF::ThreadCondition::timedWait (this=0x7fffe7027bb8, mutex=..., 
    absoluteTime=...) at /root/webkit/Source/WTF/wtf/posix/ThreadingPOSIX.cpp:659
#7  0x00007ffff770f921 in WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda&lt;bool ()&gt; const&amp;, WTF::ScopedLambda&lt;void ()&gt; const&amp;, WTF::TimeWithDynamicClockType const&amp;) (address=0x7fffe7009618, 
    validation=..., beforeSleep=..., timeout=...) at /root/webkit/Source/WTF/wtf/ParkingLot.cpp:597
#8  0x00007ffff697878a in WTF::ParkingLot::parkConditionally&lt;WTF::ParkingLot::compareAndPark&lt;unsigned char, unsigned char&gt;(WTF::Atomic&lt;unsigned char&gt; const*, unsigned char)::{lambda()#1}, WTF::ParkingLot::compareAndPark&lt;unsigned char, unsigned char&gt;(WTF::Atomic&lt;unsigned char&gt; const*, unsigned char)::{lambda()#2}&gt;(void const*, WTF::ParkingLot::compareAndPark&lt;unsigned char, unsigned char&gt;(WTF::Atomic&lt;unsigned char&gt; const*, unsigned char)::{lambda()#1} const&amp;, WTF::ParkingLot::compareAndPark&lt;unsigned char, unsigned char&gt;(WTF::Atomic&lt;unsigned char&gt; const*, unsigned char)::{lambda()#2} const&amp;, WTF::TimeWithDynamicClockType const&amp;) (
    address=0x7fffe7009618, validation=..., beforeSleep=..., timeout=...)
    at WTF/Headers/wtf/ParkingLot.h:82
#9  0x00007ffff6978715 in WTF::ParkingLot::compareAndPark&lt;unsigned char, unsigned char&gt; (
    address=0x7fffe7009618, expected=3 &apos;\003&apos;) at WTF/Headers/wtf/ParkingLot.h:94
#10 0x00007ffff76ee10e in WTF::LockAlgorithm&lt;unsigned char, (unsigned char)1, (unsigned char)2, WTF::EmptyLockHooks&lt;unsigned char&gt; &gt;::lockSlow (lock=...) at /root/webkit/Source/WTF/wtf/LockAlgorithmInlines.h:84
#11 0x00007ffff76edf56 in WTF::Lock::lockSlow (this=0x7fffe7009618)
    at /root/webkit/Source/WTF/wtf/Lock.cpp:51
#12 0x00007ffff4e85575 in WTF::Lock::lock (this=0x7fffe7009618) at WTF/Headers/wtf/Lock.h:70
#13 0x00007ffff4e85534 in WTF::Locker&lt;WTF::Lock, void&gt;::Locker (this=0x7fffffffc790, lock=...)
    at WTF/Headers/wtf/Lock.h:197
#14 0x00007ffff702b446 in JSC::IPInt::jitCompileAndSetHeuristics(JSC::Wasm::IPIntCallee*, JSC::JSWebAssemblyInstance*, JSC::IPInt::OSRFor)::{lambda()#1}::operator()() const (this=0x7fffffffc858)
    at /root/webkit/Source/JavaScriptCore/wasm/WasmIPIntSlowPaths.cpp:123
#15 0x00007ffff70213f4 in JSC::IPInt::jitCompileAndSetHeuristics (callee=0x7fffe712c0e0, 
    instance=0x7fffe713c218, osrFor=JSC::IPInt::OSRFor::Loop)
    at /root/webkit/Source/JavaScriptCore/wasm/WasmIPIntSlowPaths.cpp:129
#16 0x00007ffff70218dc in ipint_extern_loop_osr (instance=0x7fffe713c218, callFrame=0x7fffffffccc0, 
    pc=0x7fffe70709b7 &quot;\001!\031!\032!\033!\034!\035!\036 \a\374\002!\037 \025 \035 \035 \022 \036 \031 \037\r&quot;, pl=0x7fffffffca40) at /root/webkit/Source/JavaScriptCore/wasm/WasmIPIntSlowPaths.cpp:289
#17 0x00007ffff4da8649 in ipint_loop () from /root/webkit/testCrashBuild/lib/libJavaScriptCore.so.1
#18 0x00007ffff4da8300 in ?? () from /root/webkit/testCrashBuild/lib/libJavaScriptCore.so.1
#19 0x00007fffffffca40 in ?? ()
#20 0x00007fffe7130115 in ?? ()
#21 0x00007fffe70709b6 in ?? ()
#22 0x000000007870cfad in ?? ()
#23 0x000000007870cfad in ?? ()
#24 0x000000001fffffe9 in ?? ()
#25 0x000000001fffffe9 in ?? ()
#26 0x000000000ffffff1 in ?? ()
#27 0x000000000ffffff1 in ?? ()
#28 0x7fefffffffffffff in ?? ()
#29 0x7fefffffffffffff in ?? ()
#30 0x7fefffffffffffff in ?? ()
#31 0x7fefffffffffffff in ?? ()
#32 0x000000001fffffe9 in ?? ()
#33 0x000000001fffffe9 in ?? ()
#34 0x0000000000000000 in ?? ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2121991</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-06-05 13:59:03 -0700</bug_when>
    <thetext>&lt;rdar://problem/152675405&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2122001</commentid>
    <comment_count>2</comment_count>
    <who name="">daniel_liu4</who>
    <bug_when>2025-06-05 14:34:52 -0700</bug_when>
    <thetext>This should already be fixed on ToT; duping

*** This bug has been marked as a duplicate of bug 289723 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>