<?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>140095</bug_id>
          
          <creation_ts>2015-01-05 13:50:48 -0800</creation_ts>
          <short_desc>Debug ASan builds frequently crash in Register::jsValue under DFG::prepareOSREntry</short_desc>
          <delta_ts>2015-01-06 16:26:11 -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>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Alexey Proskuryakov">ap</assigned_to>
          <cc>fpizlo</cc>
    
    <cc>ggaren</cc>
    
    <cc>mrowe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1058801</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2015-01-05 13:50:48 -0800</bug_when>
    <thetext>In release builds, Register::jsValue is inlined into DFG::prepareOSREntry, so a blacklist line we have in webkit-asan-ignore.txt is sufficient. But in debug builds, it is not inlined, so we crash in this function.

Adding Register::jsValue to the blacklist is not the best fix, because this function is used elsewhere. The better fix is to blacklist the whole file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1058841</commentid>
    <comment_count>1</comment_count>
      <attachid>244013</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2015-01-05 15:50:25 -0800</bug_when>
    <thetext>Created attachment 244013
proposed fix

Actually, blacklisting the file doesn&apos;t work - if we do that, we get a non-ASan version of the inline function in DFGOSREntry.o, but it is later eliminated by the linker in favor of an ASanified copy from another file.

So I only see two options:
1. Blacklist Register::jsValue(), and ask for a better solution (which I propose here).
2. Make a copy of Register::jsValue() function with a different name, just for the purpose of using it in prepareOSREntry() in a blacklist.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1059221</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2015-01-06 16:26:11 -0800</bug_when>
    <thetext>Committed &lt;http://trac.webkit.org/r178005&gt;.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>244013</attachid>
            <date>2015-01-05 15:50:25 -0800</date>
            <delta_ts>2015-01-05 15:55:07 -0800</delta_ts>
            <desc>proposed fix</desc>
            <filename>DebugASan.txt</filename>
            <type>text/plain</type>
            <size>1226</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDE3NzkzMCkKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDEzIEBACisyMDE1LTAxLTA1ICBBbGV4ZXkgUHJvc2t1cnlha292ICA8YXBAYXBwbGUuY29t
PgorCisgICAgICAgIERlYnVnIEFTYW4gYnVpbGRzIGZyZXF1ZW50bHkgY3Jhc2ggaW4gUmVnaXN0
ZXI6OmpzVmFsdWUgdW5kZXIgREZHOjpwcmVwYXJlT1NSRW50cnkKKyAgICA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GhlcmUgaXMgY3VycmVudGx5IG5vIHdheSB0byBleHByZXNzIHRoaXMgaW4gYSBibGFja2xpc3Qu
CitmdW46KkpTQypSZWdpc3Rlcipqc1ZhbHVlKgo=
</data>
<flag name="review"
          id="268929"
          type_id="1"
          status="+"
          setter="andersca"
    />
          </attachment>
      

    </bug>

</bugzilla>