<?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>94191</bug_id>
          
          <creation_ts>2012-08-15 23:51:10 -0700</creation_ts>
          <short_desc>JSC: 2 regex assertion failures in webkit tests with LLint interpreter</short_desc>
          <delta_ts>2013-02-26 03:39:57 -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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Mark Lam">mark.lam</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mark.lam</cc>
    
    <cc>ossy</cc>
    
    <cc>rgabor</cc>
    
    <cc>zherczeg</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>696794</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2012-08-15 23:51:10 -0700</bug_when>
    <thetext>If you disable the JITs and run interpreted only on a debug build, 2 regex tests will crash with assertion failures:

Regressions: Unexpected crashes : (2)
  fast/js/regexp-non-greedy-parentheses.html = CRASH
  fast/regex/parentheses.html = CRASH

To reproduce:
1. Apply the following patch to runtime/Options.cpp.  This will disable the JITs:

Index: Source/JavaScriptCore/runtime/Options.cpp
===================================================================
--- Source/JavaScriptCore/runtime/Options.cpp	(revision 125744)
+++ Source/JavaScriptCore/runtime/Options.cpp	(working copy)
@@ -138,6 +138,9 @@
     ; // Deconfuse editors that do auto indentation
 #endif
     
+    useJIT() = false;
+    useDFGJIT() = false;
+
     // Do range checks where needed and make corrections to the options:
     ASSERT(thresholdForOptimizeAfterLongWarmUp() &gt;= thresholdForOptimizeAfterWarmUp());
     ASSERT(thresholdForOptimizeAfterWarmUp() &gt;= thresholdForOptimizeSoon());

2. Do a debug build.
3. Run the webkit JS tests:

$ ./Tools/Scripts/run-webkit-tests --debug fast/js/ fast/regex/ ietestcenter/Javascript/ sputnik/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>696797</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2012-08-15 23:57:35 -0700</bug_when>
    <thetext>rdar://problem/12108184</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>696798</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2012-08-15 23:58:59 -0700</bug_when>
    <thetext>Correction: rdar://problem/12110946</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>841849</commentid>
    <comment_count>3</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2013-02-26 03:39:57 -0800</bug_when>
    <thetext>cc-ing Gábor and Zoltán, maybe you are interested in this LLINT bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>