Open Bug 1989079 Opened 4 months ago Updated 2 months ago

raptor-gecko-profile Critical: Encountered an exception during profile symbolication on ARM Mac

Categories

(Testing :: Raptor, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: animalan, Unassigned)

References

Details

(Whiteboard: [fxp])

When running a raptor test with --gecko-profile flag (ex. ./mach raptor -t amazon --gecko-profile) on an M4 Mac, the following error occurred:

0:18:29 CRITICAL -  raptor-gecko-profile Critical: Encountered an exception during profile symbolication

Logging the exception gives:

20:18:29     INFO -  raptor-gecko-profile Info: [Errno 86] Bad CPU type in executable: '/Users/animalan/firefox/testing/mozbase/mozgeckoprofiler/mozgeckoprofiler/dump_syms_mac'

The issue seems to be due to the dump_syms_mac binary being an x86-64 executable.

file /Users/animalan/firefox/testing/mozbase/mozgeckoprofiler/mozgeckoprofiler/dump_syms_mac

/Users/animalan/firefox/testing/mozbase/mozgeckoprofiler/mozgeckoprofiler/dump_syms_mac: Mach-O 64-bit executable x86_64

A workaround for ARM Macs is just installing Rosetta i.e. running something like:

softwareupdate --install-rosetta --agree-to-license
xattr -dr com.apple.quarantine /Users/animalan/firefox/testing/mozbase/mozgeckoprofiler/mozgeckoprofiler/dump_syms_mac
chmod +x /Users/animalan/firefox/testing/mozbase/mozgeckoprofiler/mozgeckoprofiler/dump_syms_mac

Including a static binary directly into source seems problematic. Ideally this binary should be removed or dealt with more dynamically (possibly in bug 1970961). The dump_syms Rust rewrite (which offers Apple ARM builds) might be useful here.

With Bug 1970961 we may be able to remove this binary

See Also: → 1970961
Severity: -- → S3
Priority: -- → P3
Whiteboard: [fxp]
You need to log in before you can comment on or make changes to this bug.