<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>498896</bug_id>
          
          <creation_ts>2025-01-19 19:11:08 +0000</creation_ts>
          <short_desc>Corrupted data file on ASAHI</short_desc>
          <delta_ts>2025-01-28 11:18:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>Heaptrack</product>
          <component>general</component>
          <version>1.5.0</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DOWNSTREAM</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Daniel Green">ddgreen</reporter>
          <assigned_to name="Milian Wolff">mail</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2391009</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Green">ddgreen</who>
    <bug_when>2025-01-19 19:11:08 +0000</bug_when>
    <thetext>SUMMARY
When analyzing a profile in Ubuntu Asahi (Ubuntu on a 13&quot; M2 MacBook Air), it always says &quot;Trace recursion detected - corrupt data file?&quot; and all allocations are reported under &quot;&lt;unresolved function&gt; in &quot;, even though the binary was compiled with `-g` and wasn&apos;t stripped. It does record a bunch of different numbers for allocations, so numbers of allocations, leaks, etc. all have seemingly correct values, just all aggregated together.

STEPS TO REPRODUCE
1. Install heaptrack in Ubuntu-Asahi
2. `heaptrack &lt;some binary&gt;`
3. Analyze results

OBSERVED RESULT
&quot;Trace recursion detected - corrupt data file?&quot; and all allocations are reported under &quot;&lt;unresolved function&gt; in &quot;

EXPECTED RESULT
No corrupted data files and allocations broken out by function.

SOFTWARE/OS VERSIONS
Heaptrack apt package version: 1.5.0+dfsg1-2ubuntu3
Operating System: Kubuntu 24.10
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.6.2
Kernel Version: 6.12.0-1002-asahi-arm (64-bit)
Graphics Platform: Wayland
Processors: 4 × Apple Avalanche (M2), 4 × Apple Blizzard (M2)
Memory: 22.7 GiB of RAM
Graphics Processor: Apple M2
Product Name: Apple MacBook Air (13-inch, M2, 2022)
U-Boot Version: 2024.04

ADDITIONAL INFORMATION</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2392831</commentid>
    <comment_count>1</comment_count>
    <who name="Milian Wolff">mail</who>
    <bug_when>2025-01-27 08:09:29 +0000</bug_when>
    <thetext>does this only happen on asahi-linux?

does it happen with all binaries, i.e. also with, let&apos;s say, `ls` or `find`?

it certainly works fine for me, but I&apos;m neither using ubuntu nor asahi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2392851</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel Green">ddgreen</who>
    <bug_when>2025-01-27 11:10:28 +0000</bug_when>
    <thetext>(In reply to Milian Wolff from comment #1)
&gt; does this only happen on asahi-linux?
&gt; 
&gt; does it happen with all binaries, i.e. also with, let&apos;s say, `ls` or `find`?
&gt; 
&gt; it certainly works fine for me, but I&apos;m neither using ubuntu nor asahi

Yeah, I only see this in Ubuntu Asahi. I haven’t tested with other distros on this hardware, but I use Heaptrack in Ubuntu, Arch, and Rocky just fine on x86 machines.

Yes, it happens with every binary I’ve tried.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2392878</commentid>
    <comment_count>3</comment_count>
    <who name="Milian Wolff">mail</who>
    <bug_when>2025-01-27 14:04:14 +0000</bug_when>
    <thetext>last time I tried it works fine on arm32 and arm64, so if this is asahi specific then you need to debug it yourself. I have no apple hardware (or intention to get some), so unless you give me an easy way to reproduce it via docker/qemu or the like then there&apos;s nothing I can do to help you and you are on your own.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2393114</commentid>
    <comment_count>4</comment_count>
    <who name="Daniel Green">ddgreen</who>
    <bug_when>2025-01-28 00:53:51 +0000</bug_when>
    <thetext>(In reply to Milian Wolff from comment #3)
&gt; last time I tried it works fine on arm32 and arm64, so if this is asahi
&gt; specific then you need to debug it yourself. I have no apple hardware (or
&gt; intention to get some), so unless you give me an easy way to reproduce it
&gt; via docker/qemu or the like then there&apos;s nothing I can do to help you and
&gt; you are on your own.

If I clone from github and build it manually it works (both debug and release builds, both the master and 1.5 branches), so I assume it&apos;s something with how Ubuntu is building their aarch64 packages. I&apos;ll file a bug with them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2393132</commentid>
    <comment_count>5</comment_count>
    <who name="Daniel Green">ddgreen</who>
    <bug_when>2025-01-28 02:52:44 +0000</bug_when>
    <thetext>(In reply to Daniel Green from comment #4)
&gt; (In reply to Milian Wolff from comment #3)
&gt; &gt; last time I tried it works fine on arm32 and arm64, so if this is asahi
&gt; &gt; specific then you need to debug it yourself. I have no apple hardware (or
&gt; &gt; intention to get some), so unless you give me an easy way to reproduce it
&gt; &gt; via docker/qemu or the like then there&apos;s nothing I can do to help you and
&gt; &gt; you are on your own.
&gt; 
&gt; If I clone from github and build it manually it works (both debug and
&gt; release builds, both the master and 1.5 branches), so I assume it&apos;s
&gt; something with how Ubuntu is building their aarch64 packages. I&apos;ll file a
&gt; bug with them.

https://bugs.launchpad.net/ubuntu/+source/kdevelop/+bug/2096816</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>