<?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>269791</bug_id>
          
          <creation_ts>2024-02-20 07:17:44 -0800</creation_ts>
          <short_desc>[ASAN] Leaks detected on Linux, but not on macOS (clang)</short_desc>
          <delta_ts>2024-02-28 13:52:10 -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>WebKit Nightly Build</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 13</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>gorez.tony</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>gorez.tony</cc>
    
    <cc>mark.lam</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2015501</commentid>
    <comment_count>0</comment_count>
    <who name="">gorez.tony</who>
    <bug_when>2024-02-20 07:17:44 -0800</bug_when>
    <thetext>Hi everyone :) 

We recently tried to build a C++ project that has JavascriptCore as a dependency and enable ASAN.

The result was that on Linux (using `javascriptcoregtk-4.0`), Asan caught a few leaks: https://github.com/crossnx/includejs/actions/runs/7934077830/job/21667816487

But on macOS, the CI passes (and even locally) without catching anything: https://github.com/crossnx/includejs/actions/runs/7975463940/job/21773755192#step:7:26

I&apos;d like to understand why there is such a difference (clang linux vs clang on macos or whatever) :)

I would be more than happy to help if I may.

Cheers,</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2017181</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-02-27 07:18:13 -0800</bug_when>
    <thetext>&lt;rdar://problem/123690059&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2017566</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2024-02-28 13:52:10 -0800</bug_when>
    <thetext>Hi, I&apos;m not familiar with the logging of your tools.  Can you provide details on what the supposed leak is (even if it&apos;s only on Linux).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>