<?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>187222</bug_id>
          
          <creation_ts>2018-06-30 11:58:02 -0700</creation_ts>
          <short_desc>[CMake] build-webkit should be able to enable address sanitizer</short_desc>
          <delta_ts>2018-07-01 22:41:10 -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>Tools / Tests</component>
          <version>WebKit Nightly 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 name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>calvaris</cc>
    
    <cc>dbates</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>lforschler</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1438189</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-06-30 11:58:02 -0700</bug_when>
    <thetext>If I have run &apos;set-webkit-configuration --asan&apos; then build-webkit should pass -DENABLE_ADDRESS_SANITIZER=ON to CMake, so it actually does something.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1438190</commentid>
    <comment_count>1</comment_count>
      <attachid>344018</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-06-30 11:58:37 -0700</bug_when>
    <thetext>Created attachment 344018
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1438192</commentid>
    <comment_count>2</comment_count>
      <attachid>344018</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2018-06-30 12:48:50 -0700</bug_when>
    <thetext>Comment on attachment 344018
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=344018&amp;action=review

Do we already support ASan building with CMake using script build-jsc? If not, we should fix this up.

&gt; Tools/ChangeLog:7
&gt; +

Please add a description for this change. I liked what you wrote in comment 0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1438193</commentid>
    <comment_count>3</comment_count>
      <attachid>344018</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2018-06-30 12:50:20 -0700</bug_when>
    <thetext>Comment on attachment 344018
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=344018&amp;action=review

&gt; Tools/Scripts/webkitdirs.pm:2255
&gt; +    determineASanIsEnabled();

It is unnecessary to call this. We should call asanIsEnabled() on the line below (notice it is a function call).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1438208</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-06-30 13:57:56 -0700</bug_when>
    <thetext>(In reply to Daniel Bates from comment #2)
&gt; Comment on attachment 344018 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=344018&amp;action=review
&gt; 
&gt; Do we already support ASan building with CMake using script build-jsc? If
&gt; not, we should fix this up.

We did not, but build-jsc uses buildCMakeProjectOrExit(), which calls generateBuildSystemFromCMakeProject(), which is the function I&apos;m modifying here, so now it will.

&gt; &gt; Tools/ChangeLog:7
&gt; &gt; +
&gt; 
&gt; Please add a description for this change. I liked what you wrote in comment
&gt; 0.

OK.


(In reply to Daniel Bates from comment #3)
&gt; It is unnecessary to call this. We should call asanIsEnabled() on the line
&gt; below (notice it is a function call).

Yes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1438210</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-06-30 14:07:54 -0700</bug_when>
    <thetext>Committed r233402: &lt;https://trac.webkit.org/changeset/233402&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1438211</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-06-30 14:08:23 -0700</bug_when>
    <thetext>&lt;rdar://problem/41682664&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>344018</attachid>
            <date>2018-06-30 11:58:37 -0700</date>
            <delta_ts>2018-06-30 12:48:50 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-187222-20180630135836.patch</filename>
            <type>text/plain</type>
            <size>1243</size>
            <attacher name="Michael Catanzaro">mcatanzaro</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjMzNDAwCmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggYjA3YjZiNGQ5ODRhZGYyZmE4NmFhYzkwNzI3MzVkYmIy
YWJmNjBlMC4uYTA4OWJkOGU4Nzc1YmZlZGNjNDg2NTc2ZDY1MzQ1OTExYWIyMGMyMCAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEz
IEBACisyMDE4LTA2LTMwICBNaWNoYWVsIENhdGFuemFybyAgPG1jYXRhbnphcm9AaWdhbGlhLmNv
bT4KKworICAgICAgICBbQ01ha2VdIGJ1aWxkLXdlYmtpdCBzaG91bGQgYmUgYWJsZSB0byBlbm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worCiAgICAgaWYgKCR3aWxsVXNlTmluamEpIHsKICAgICAgICAgcHVzaCBAYXJncywgIi1HIjsK
ICAgICAgICAgaWYgKGNhblVzZUVjbGlwc2VOaW5qYUdlbmVyYXRvcigpKSB7Cg==
</data>
<flag name="review"
          id="362071"
          type_id="1"
          status="+"
          setter="dbates"
    />
          </attachment>
      

    </bug>

</bugzilla>