<?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>244546</bug_id>
          
          <creation_ts>2022-08-30 10:37:56 -0700</creation_ts>
          <short_desc>ASSERTION FAILED: baseValue.isObject()</short_desc>
          <delta_ts>2022-10-14 14:14:33 -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>JavaScriptCore</component>
          <version>WebKit Nightly 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>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mikhail R. Gadelha">mikhail</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>1894871</commentid>
    <comment_count>0</comment_count>
      <attachid>462013</attachid>
    <who name="Mikhail R. Gadelha">mikhail</who>
    <bug_when>2022-08-30 10:37:56 -0700</bug_when>
    <thetext>Created attachment 462013
Testcase

Tested on linux intel 64 and ARMv7.

Running the attached test case fails with the following message:

#0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140737313221504) at ./nptl/pthread_kill.c:44
#1  __pthread_kill_internal (signo=6, threadid=140737313221504) at ./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=140737313221504, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3  0x00007ffff755e476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4  0x00007ffff75447f3 in __GI_abort () at ./stdlib/abort.c:79
#5  0x000055555562a8a7 in WTFCrashWithInfo () at /home/mgadelha/tools/WebKit/WebKitBuild/Debug/WTF/Headers/wtf/Assertions.h:754
#6  0x0000555556639b95 in JSC::LLInt::llint_slow_path_put_by_val_direct (callFrame=0x7fffffffd310, pc=0x55555939a17e) at /home/mgadelha/tools/WebKit/Source/JavaScriptCore/llint/LLIntSlowPaths.cpp:1239
#7  0x00005555570f18e7 in llint_op_put_by_val_direct () at /home/mgadelha/tools/WebKit/Source/JavaScriptCore/llint/LowLevelInterpreter64.asm:118
#8  0x0000000000000000 in ?? ()

When disabling LLInt, we get:

#0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140737313221504) at ./nptl/pthread_kill.c:44
#1  __pthread_kill_internal (signo=6, threadid=140737313221504) at ./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=140737313221504, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3  0x00007ffff755e476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4  0x00007ffff75447f3 in __GI_abort () at ./stdlib/abort.c:79
#5  0x000055555562a8a7 in WTFCrashWithInfo () at /home/mgadelha/tools/WebKit/WebKitBuild/Debug/WTF/Headers/wtf/Assertions.h:754
#6  0x000055555657ccf1 in JSC::directPutByValOptimize (globalObject=0x5555593132b8, codeBlock=0x5555593ac580, baseValue=..., subscript=..., value=..., stubInfo=0x5555593d3888, profile=0x5555593d3f98, 
    ecmaMode=...) at /home/mgadelha/tools/WebKit/Source/JavaScriptCore/jit/JITOperations.cpp:1168
#7  0x000055555657d3ab in JSC::operationDirectPutByValStrictOptimize (globalObject=0x5555593132b8, encodedBaseValue=10, encodedSubscript=-562949953421312, encodedValue=10, stubInfo=0x5555593d3888, 
    profile=0x5555593d3f98) at /home/mgadelha/tools/WebKit/Source/JavaScriptCore/jit/JITOperations.cpp:1218
...
#56 0x00005555570e2406 in vmEntryToJavaScript () at /home/mgadelha/tools/WebKit/Source/JavaScriptCore/llint/LowLevelInterpreter64.asm:367

Found by Igalia Fuzzing Campaign.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1894872</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-08-30 10:38:06 -0700</bug_when>
    <thetext>&lt;rdar://problem/99338799&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1905438</commentid>
    <comment_count>2</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2022-10-13 14:57:58 -0700</bug_when>
    <thetext>Removing security tag since this is JSC shell only deterministic crash issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1905440</commentid>
    <comment_count>3</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2022-10-13 15:01:38 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/5343</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1905709</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-10-14 14:14:28 -0700</bug_when>
    <thetext>Committed 255553@main (96ac9c31b19e): &lt;https://commits.webkit.org/255553@main&gt;

Reviewed commits have been landed. Closing PR #5343 and removing active labels.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>462013</attachid>
            <date>2022-08-30 10:37:56 -0700</date>
            <delta_ts>2022-08-30 10:37:56 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>bar.js</filename>
            <type>text/javascript</type>
            <size>118</size>
            <attacher name="Mikhail R. Gadelha">mikhail</attacher>
            
              <data encoding="base64">Y2xhc3MgX19jXzAgewogIGNvbnN0cnVjdG9yKCkgeyByZXR1cm4gY3JlYXRlR2xvYmFsT2JqZWN0
KCkgfQp9CgpjbGFzcyBfX2NfMSBleHRlbmRzIF9fY18wIHsKICAwID0gdGhpcyAKfQoKbmV3IF9f
Y18xCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>