<?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>254574</bug_id>
          
          <creation_ts>2023-03-28 00:02:35 -0700</creation_ts>
          <short_desc>[JSC ] Segmentation fault in JSC</short_desc>
          <delta_ts>2023-04-20 11:34:21 -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 Local Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</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>xiangwei1895</reporter>
          <assigned_to name="Yijia Huang">yijia_huang</assigned_to>
          <cc>webkit-bug-importer</cc>
    
    <cc>yijia_huang</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1944514</commentid>
    <comment_count>0</comment_count>
    <who name="">xiangwei1895</who>
    <bug_when>2023-03-28 00:02:35 -0700</bug_when>
    <thetext>## JavaScriptCore Version
b2362a5d6b0dcee521bbc38c226ea2216e2422e7

## Build 
Ubuntu 20.04.2 LTS (Linux 5.15.0-67-generic x86_64)

./Tools/Scripts/build-jsc --jsc-only --debug --cmakeargs=&quot;-DENABLE_STATIC_JSC=ON -DCMAKE_CXX_FLAGS=&apos;-fsanitize=address -g&apos;&quot; --build-dir=ASAN

## Testcase and  Execution steps
```
&quot;use strict&quot;;

function bar(x, y){
    function auxBar(a, b) {
        if(a == 0)b+=&apos;,&apos;;
        return auxBar(b-1,a,43);
    }
    return auxBar(x, y);
}

bar(10, 10);
```
./bin/jsc  testcase.js

## Output
Segmentation fault (core dumped)

## Backtrace
AddressSanitizer:DEADLYSIGNAL
=================================================================
==187557==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000002a (pc 0x7f7f3b084044 bp 0x7ffe61a8f270 sp 0x7ffe61a8f1e8 T0)
==187557==The signal is caused by a READ memory access.
==187557==Hint: address points to the zero page.
    #0 0x7f7f3b084043  (&lt;unknown module&gt;)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (&lt;unknown module&gt;) 
==187557==ABORTING</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1946451</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-04-04 00:03:15 -0700</bug_when>
    <thetext>&lt;rdar://problem/107598022&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1949913</commentid>
    <comment_count>2</comment_count>
    <who name="Yijia Huang">yijia_huang</who>
    <bug_when>2023-04-19 17:21:50 -0700</bug_when>
    <thetext>*** Bug 255694 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1949914</commentid>
    <comment_count>3</comment_count>
    <who name="Yijia Huang">yijia_huang</who>
    <bug_when>2023-04-19 17:25:22 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/12949</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1950125</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-04-20 11:34:19 -0700</bug_when>
    <thetext>Committed 263183@main (a75b74fc83c0): &lt;https://commits.webkit.org/263183@main&gt;

Reviewed commits have been landed. Closing PR #12949 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>