Closed
Bug 1947958
Opened 1 month ago
Closed 1 month ago
Missing symbols from gnome-sdk 42 and 46
Categories
(Socorro :: Symbols, defect)
Socorro
Symbols
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gerard-majax, Assigned: gerard-majax)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
for term in $(curl -sS "https://crash-stats.mozilla.org/api/SuperSearch/?distribution_id=canonical-002&product=Firefox&platform=Linux&_facets=missing_symbols" | jq -r '.facets.missing_symbols.[].term'); do lib=$(echo "$term" | cut -d'/' -f1); version=$(echo "$term" | cut -d'/' -f2); echo " => $lib ($version)"; find /snap/ -type l -name "${lib}" 2>/dev/null; find /snap/ -type f -name "${lib}.${version}" 2>/dev/null; echo ""; done;
This yields way too many missing symbols.
Looking at some (still available) artifacts from gnome-sdk snap, one can see the .debug
zip file generated is a few MBs and while debug infos files are present they are stripped.
Symbols are handled in https://github.com/ubuntu/gnome-sdk/blob/c007fa7b00ac53014ef428382da8b4f50ec7697e/tools/strip_binaries.py#L105-L140
Running a local build one can see:
$ grep dcf5eb087a40994b5b5a2ef6151c00e48bb03b ~/.local/state/snapcraft/log/snapcraft-20250212-202751.010428.log
2025-02-12 20:49:38.110 :: 2025-02-12 20:48:46.354 :: Extracting symbols from /root/prime/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8200.2 into usr/lib/debug/.build-id/39/dcf5eb087a40994b5b5a2ef6151c00e48bb03b.debug
2025-02-12 20:49:38.222 :: 2025-02-12 20:49:04.735 :: Extracting symbols from /root/prime/usr/lib/debug/.build-id/39/dcf5eb087a40994b5b5a2ef6151c00e48bb03b.debug into usr/lib/debug/.build-id/39/dcf5eb087a40994b5b5a2ef6151c00e48bb03b.debug
2025-02-12 20:49:38.222 :: 2025-02-12 20:49:04.735 :: Stripping with --strip-unneeded /root/prime/usr/lib/debug/.build-id/39/dcf5eb087a40994b5b5a2ef6151c00e48bb03b.debug
2025-02-12 20:49:38.294 :: 2025-02-12 20:49:08.827 :: adding: usr/lib/debug/.build-id/39/dcf5eb087a40994b5b5a2ef6151c00e48bb03b.debug (deflated 73%)
So we extract debug symbols into files, which gets extracted themselves and stripped. Likely because the way the while is written.
Assignee | ||
Updated•1 month ago
|
Assignee: nobody → lissyx+mozillians
Type: task → defect
Assignee | ||
Comment 1•1 month ago
|
||
Assignee | ||
Comment 2•1 month ago
|
||
Assignee | ||
Comment 3•1 month ago
|
||
PRs locally produces much better debug info:
-rw-r--r-- 1 alexandre alexandre 306M 13 févr. 08:48 gnome-42-2204-sdk_0+git.ebe3ced_amd64.debug
-rw-r--r-- 1 alexandre alexandre 428M 13 févr. 08:49 gnome-42-2204-sdk_0+git.ebe3ced_amd64.snap
-rw-r--r-- 1 alexandre alexandre 182M 13 févr. 08:17 gnome-46-2404-sdk_0+git.b58e3bc-dirty_amd64.debug
-rw-r--r-- 1 alexandre alexandre 388M 13 févr. 08:18 gnome-46-2404-sdk_0+git.b58e3bc-dirty_amd64.snap
This will require rebuilds of GNOME SDK and maybe new builds on Firefox side.
Assignee | ||
Comment 4•1 month ago
|
||
Landed and re-running cron job task picked the new files
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•