org.gnome.Platform is missing frame pointers
org.freedesktop.Platform enabled them and they are there (-fno-omit-frame-pointer
):
[📦 org.gnome.Sdk ~]$ readelf --debug-dump=info /usr/lib/x86_64-linux-gnu/libfreetype.so | grep "DW_AT_producer" | head -n2
<c2eb> DW_AT_producer : (indirect string, offset: 0x3c): GNU AS 2.37
<c2ff> DW_AT_producer : (indirect string, offset: 0x5cea): GNU C17 11.2.0 -mtune=generic -march=x86-64 -g -O2 -fvisibility=hidden -fexceptions -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fno-omit-frame-pointer -fPIC
[📦 org.gnome.Sdk ~]$ readelf --debug-dump=info /usr/lib/x86_64-linux-gnu/libwayland-client.so | grep "DW_AT_producer" | head -n2
<4a6> DW_AT_producer : (alt indirect string, offset: 0x693) GNU AS 2.37
<4ba> DW_AT_producer : (alt indirect string, offset: 0x8f1) GNU C17 11.2.0 -mtune=generic -march=x86-64 -g -g -O2 -fvisibility=hidden -fexceptions -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fno-omit-frame-pointer -fPIC
However, org.gnome.Platform libraries don't have them:
[📦 org.gnome.Sdk ~]$ readelf --debug-dump=info /usr/lib/x86_64-linux-gnu/libgtk-3.so | grep "DW_AT_producer" | head -n2
<5f32a> DW_AT_producer : (indirect string, offset: 0x3c): GNU AS 2.37
<5f33d> DW_AT_producer : (indirect string, offset: 0x30c3): GNU C17 11.2.0 -march=x86-64 -mtune=generic -g -O2 -fexceptions -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC -fno-strict-aliasing -fvisibility=hidden
[📦 org.gnome.Sdk ~]$ readelf --debug-dump=info /usr/lib/x86_64-linux-gnu/libgtksourceview-4.so | grep "DW_AT_producer" | head -n2
<410a> DW_AT_producer : (alt indirect string, offset: 0x715) GNU AS 2.37
<411d> DW_AT_producer : (alt indirect string, offset: 0xb9f) GNU C99 11.2.0 -march=x86-64 -mtune=generic -g -O2 -std=gnu99 -fno-strict-aliasing -fexceptions -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC
Which also means that sysprof doesn't work properly:
Both 41 and master have this issue.