<?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>300735</bug_id>
          
          <creation_ts>2025-10-14 15:35:21 -0700</creation_ts>
          <short_desc>[CMake] Adds checks for execinfo.h and backtrace[_symbols]</short_desc>
          <delta_ts>2025-11-04 17:42:50 -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>CMake</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=300701</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=102946</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=173531</see_also>
          <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="Adrian Perez">aperez</reporter>
          <assigned_to name="WebKitGTK+ bugs">bugs-noreply</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2151008</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2025-10-14 15:35:21 -0700</bug_when>
    <thetext>Instead of relying on a set of preprocessor checks to determine whether the execinfo.h header and the backtrace/backtrace_symbols functions are available, it would be better to detect this with CMake. The plan would be to:

  - Check whether &lt;execinfo.h&gt; is present.
  - Check whether the backtrace() function can be linked, either from libc, or from libexecinfo (some systems provide it there)
  - Define PAS_HAVE_BACKTRACE and HAVE_BACKTRACE accordingly.
  - Change the guards in libpas and WTF to PAS_HAVE(BACKTRACE) and HAVE(BACKTRACE) accordingly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2156459</commentid>
    <comment_count>1</comment_count>
    <who name="Alexsander Borges Damaceno">alexbdamac</who>
    <bug_when>2025-11-04 17:42:50 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/53431</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>