<?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>190327</bug_id>
          
          <creation_ts>2018-10-06 00:40:17 -0700</creation_ts>
          <short_desc>[Xcode] Never build yasm with ASAN</short_desc>
          <delta_ts>2020-04-06 10:27:50 -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>WebRTC</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=210057</see_also>
          <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>mitz</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>commit-queue</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1466847</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2018-10-06 00:40:17 -0700</bug_when>
    <thetext>yasm is only used at build time to derive other source files, so there’s no point building it with ASAN. Worse, when targeting the iOS Simulator, yasm is built as a Simulator binary, even though it’s then run on the host. This works, but if ASAN is enabled, it tries to link against the Simulator ASAN dylib, which causes a failure at runtime.

Patch forthcoming.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1466848</commentid>
    <comment_count>1</comment_count>
      <attachid>351719</attachid>
    <who name="">mitz</who>
    <bug_when>2018-10-06 00:43:36 -0700</bug_when>
    <thetext>Created attachment 351719
Opt yasm out of ASAN</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1466859</commentid>
    <comment_count>2</comment_count>
      <attachid>351719</attachid>
    <who name="youenn fablet">youennf</who>
    <bug_when>2018-10-06 07:23:39 -0700</bug_when>
    <thetext>Comment on attachment 351719
Opt yasm out of ASAN

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

&gt; Tools/asan/asan.xcconfig:16
&gt; +CLANG_ADDRESS_SANITIZER_NO = YES;

Is it working?
Should we set WK_ASAN_ALLOWED = NO in yasm.xcconfig and 
CLANG_ADDRESS_SANITIZER = $(CLANG_ADDRESS_SANITIZER_$(WK_ASAN_ALLOWED));
CLANG_ADDRESS_SANITIZER_NO = NO;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1466873</commentid>
    <comment_count>3</comment_count>
      <attachid>351719</attachid>
    <who name="">mitz</who>
    <bug_when>2018-10-06 08:49:52 -0700</bug_when>
    <thetext>Comment on attachment 351719
Opt yasm out of ASAN

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

&gt;&gt; Tools/asan/asan.xcconfig:16
&gt;&gt; +CLANG_ADDRESS_SANITIZER_NO = YES;
&gt; 
&gt; Is it working?
&gt; Should we set WK_ASAN_ALLOWED = NO in yasm.xcconfig and 
&gt; CLANG_ADDRESS_SANITIZER = $(CLANG_ADDRESS_SANITIZER_$(WK_ASAN_ALLOWED));
&gt; CLANG_ADDRESS_SANITIZER_NO = NO;

By convention, if a build setting is not specified, it’s equivalent to being set to NO. So if we wanted a build setting that means “ASAN allowed” we’d have to remember to explicitly set it to YES in every project. Since this is such a rare exception, I opted for something we set in the one place where we make the exception.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1466875</commentid>
    <comment_count>4</comment_count>
      <attachid>351719</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2018-10-06 09:05:09 -0700</bug_when>
    <thetext>Comment on attachment 351719
Opt yasm out of ASAN

Rejecting attachment 351719 from commit-queue.

Failed to run &quot;[&apos;/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch&apos;, &apos;--status-host=webkit-queues.webkit.org&apos;, &apos;--bot-id=webkit-cq-01&apos;, &apos;apply-attachment&apos;, &apos;--no-update&apos;, &apos;--non-interactive&apos;, 351719, &apos;--port=mac&apos;]&quot; exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Logging in as commit-queue@webkit.org...
Fetching: https://bugs.webkit.org/attachment.cgi?id=351719&amp;action=edit
Fetching: https://bugs.webkit.org/show_bug.cgi?id=190327&amp;ctype=xml&amp;excludefield=attachmentdata
Processing 1 patch from 1 bug.
Processing patch 351719 from bug 190327.
Fetching: https://bugs.webkit.org/attachment.cgi?id=351719
Failed to run &quot;[u&apos;/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply&apos;, &apos;--force&apos;, &apos;--reviewer&apos;, u&apos;Youenn Fablet&apos;]&quot; exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Parsed 4 diffs from patch file(s).
(Stripping trailing CRs from patch.)
patching file Source/ThirdParty/libwebrtc/ChangeLog
Hunk #1 succeeded at 1 with fuzz 3.
(Stripping trailing CRs from patch.)
patching file Source/ThirdParty/libwebrtc/Configurations/yasm.xcconfig
Hunk #1 FAILED at 19.
1 out of 1 hunk FAILED -- saving rejects to file Source/ThirdParty/libwebrtc/Configurations/yasm.xcconfig.rej
(Stripping trailing CRs from patch.)
patching file Tools/ChangeLog
(Stripping trailing CRs from patch.)
patching file Tools/asan/asan.xcconfig

Failed to run &quot;[u&apos;/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply&apos;, &apos;--force&apos;, &apos;--reviewer&apos;, u&apos;Youenn Fablet&apos;]&quot; exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Full output: https://webkit-queues.webkit.org/results/9473060</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1466876</commentid>
    <comment_count>5</comment_count>
    <who name="">mitz</who>
    <bug_when>2018-10-06 09:07:37 -0700</bug_when>
    <thetext>Committed &lt;https://trac.webkit.org/r236898&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1466877</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-10-06 09:08:22 -0700</bug_when>
    <thetext>&lt;rdar://problem/45068477&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1466879</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2018-10-06 10:16:18 -0700</bug_when>
    <thetext>There is some benefit building internal tools with ASan - we want them to behave reliably, so catching random memory corruption is useful.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>351719</attachid>
            <date>2018-10-06 00:43:36 -0700</date>
            <delta_ts>2018-10-06 09:05:09 -0700</delta_ts>
            <desc>Opt yasm out of ASAN</desc>
            <filename>file_190327.txt</filename>
            <type>text/plain</type>
            <size>2678</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9UaGlyZFBhcnR5L2xpYndlYnJ0Yy9DaGFuZ2VMb2cNCj09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0N
Ci0tLSBTb3VyY2UvVGhpcmRQYXJ0eS9saWJ3ZWJydGMvQ2hhbmdlTG9nCShyZXZpc2lvbiAyMzY4
OTQpDQorKysgU291cmNlL1RoaXJkUGFydHkvbGlid2VicnRjL0NoYW5nZUxvZwkod29ya2luZyBj
b3B5KQ0KQEAgLTEsMyArMSwxMiBAQA0KKzIwMTgtMTAtMDYgI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GhhbiBOTyBvciB1bnNldCkuDQorDQogMjAxOC0xMC0wNSAgQ2hyaXMg
RHVtZXogIDxjZHVtZXpAYXBwbGUuY29tPg0KIA0KICAgICAgICAgUmVncmVzc2lvbihyMjM2ODYy
KTogQ3Jhc2ggdW5kZXIgRE9NV2luZG93RXh0ZW5zaW9uOjp3aWxsRGV0YWNoR2xvYmFsT2JqZWN0
RnJvbUZyYW1lKCkNCkluZGV4OiBUb29scy9hc2FuL2FzYW4ueGNjb25maWcNCj09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0N
Ci0tLSBUb29scy9hc2FuL2FzYW4ueGNjb25maWcJKHJldmlzaW9uIDIzNjg5NCkNCisrKyBUb29s
cy9hc2FuL2FzYW4ueGNjb25maWcJKHdvcmtpbmcgY29weSkNCkBAIC0xMSw3ICsxMSw5IEBAIEdD
Q19PUFRJTUlaQVRJT05fTEVWRUxfRGVidWcgPSAwOw0KIEdDQ19PUFRJTUlaQVRJT05fTEVWRUxf
UHJvZHVjdGlvbiA9IDE7DQogR0NDX09QVElNSVpBVElPTl9MRVZFTF9SZWxlYXNlID0gMTsNCiAN
Ci1DTEFOR19BRERSRVNTX1NBTklUSVpFUj1ZRVMNCitDTEFOR19BRERSRVNTX1NBTklUSVpFUiA9
ICQoQ0xBTkdfQUREUkVTU19TQU5JVElaRVJfJChXS19BU0FOX0RJU0FMTE9XRUQpKTsNCitDTEFO
R19BRERSRVNTX1NBTklUSVpFUl8gPSBZRVM7DQorQ0xBTkdfQUREUkVTU19TQU5JVElaRVJfTk8g
PSBZRVM7DQogDQogQVNBTl9PVEhFUl9DRkxBR1MgPSAtZm5vLW9taXQtZnJhbWUtcG9pbnRlciAt
ZzsNCiBBU0FOX09USEVSX0NQTFVTUExVU0ZMQUdTID0gJChBU0FOX09USEVSX0NGTEFHUyk7DQo=
</data>
<flag name="review"
          id="369065"
          type_id="1"
          status="+"
          setter="youennf"
    />
    <flag name="commit-queue"
          id="369069"
          type_id="3"
          status="-"
          setter="commit-queue"
    />
          </attachment>
      

    </bug>

</bugzilla>