magic.mgc, 1: Warning: offset `' invalid
Metadata
Current evaluation
Fixed by merged PR snapcore/snapcraft#1870 (d20b9678d), replacing python-magic ELF detection with readelf and eliminating magic.mgc warnings and architecture-specific crashes.
Resolution: closed resolved
Reason: PR #1870 was merged as commit d20b9678d, removing Snapcraft's dependency on python-magic/libmagic and using readelf for ELF parsing.
Evaluated by: mr-cal-bot
No scores available.
Issue body
snapcraft from the beta channel..
beta: 2.38 (1009) 52MB classic
I am building a snap which built find using 2.35 (deb) but I wanted to build with 2.38 so removed the deb and installed the snap from beta.
I'm doing this on an i386 VPS (which is running under Xen I believe, but a genuine Ubuntu install).
Part way through the build my terminal is spammed with:-
Building remove-symlink
Staging remove-symlink
Priming get-iplayer
/snap/snapcraft/1009/usr/share/file/magic.mgc, 1: Warning: offset `' invalid
/snap/snapcraft/1009/usr/share/file/magic.mgc, 6: Warning: offset `Firmware v' invalid
/snap/snapcraft/1009/usr/share/file/magic.mgc, 7: Warning: offset `' invalid
/snap/snapcraft/1009/usr/share/file/magic.mgc, 8: Warning: offset `' invalid
/snap/snapcraft/1009/usr/share/file/magic.mgc, 13: Warning: offset `' invalid
/snap/snapcraft/1009/usr/share/file/magic.mgc, 15: Warning: offset `::[ frontEndVersion = ' invalid
' invalidpcraft/1009/usr/share/file/magic.mgc, 20: Warning: offset `
/snap/snapcraft/1009/usr/share/file/magic.mgc, 22: Warning: offset `East_Side_Invertationa' invalid
/snap/snapcraft/1009/usr/share/file/magic.mgc, 25: Warning: offset `The_Incinerator_Plant' invalid
/snap/snapcraft/1009/usr/share/file/magic.mgc, 26: Warning: offset `Takahiro_Laboratories' invalid
/snap/snapcraft/1009/usr/share/file/magic.mgc, 30: Warning: offset `<protocol bbn-m' invalid
/snap/snapcraft/1009/usr/share/file/magic.mgc, 31: Warning: offset `the_Slipgate_Complex' invalid
/snap/snapcraft/1009/usr/share/file/magic.mgc, 32: Warning: offset `Castle_of_the_Damned' invalid
/snap/snapcraft/1009/usr/share/file/magic.mgc, 33: Warning: offset `the_Dismal_Oubliette' invalid
/snap/snapcraft/1009/usr/share/file/magic.mgc, 34: Warning: offset `Satan's_Dark_Delight' invalid
/snap/snapcraft/1009/usr/share/file/magic.mgc, 35: Warning: offset `The_Tower_of_Despair' invalid
/snap/snapcraft/1009/usr/share/file/magic.mgc, 36: Warning: offset `The_Elder_God_Shrine' invalid
/snap/snapcraft/1009/usr/share/file/magic.mgc, 37: Warning: offset `Shub-Niggurath's_Pit' invalid
and tons more until:-
/snap/snapcraft/1009/usr/share/file/magic.mgc, 1588: Warning: offset `ship' invalid
/snap/snapcraft/1009/usr/share/file/magic.mgc, 1589: Warning: offset `=' invalid
/snap/snapcraft/1009/usr/share/file/magic.mgc, 1590: Warning: offset `=' invalid
/snap/snapcraft/1009/usr/share/file/magic.mgc, 1601: Warning: offset `=' invalid
/snap/snapcraft/1009/usr/share/file/magic.mgc, 1602: Warning: offset `=' invalid
/snap/snapcraft/1009/usr/share/file/magic.mgc, 1603: Warning: offset `' invalid
/snap/snapcraft/1009/usr/share/file/magic.mgc, 1604: Warning: offset `=' ☃┼┴▒┌☃d
/⎽┼▒⎻/⎽┼▒⎻c⎼▒°├/1▮▮9/┤⎽⎼/⎽▒▒⎼e/°☃┌e/└▒±☃c↓└±c← 16▮5: W▒⎼┼☃┼±: ⎺°°⎽e├ ◆=' ☃┼┴▒┌☃d
/⎽┼▒⎻/⎽┼▒⎻c⎼▒°├/1▮▮9/┤⎽⎼/⎽▒▒⎼e/°☃┌e/└▒±☃c↓└±c← 16▮6: W▒⎼┼☃┼±: ⎺°°⎽e├ ◆!' ☃┼┴▒┌☃d
/⎽┼▒⎻/⎽┼▒⎻c⎼▒°├/1▮▮9/┤⎽⎼/⎽▒▒⎼e/°☃┌e/└▒±☃c↓└±c← 1614: W▒⎼┼☃┼±: ⎺°°⎽e├ ◆↑' ☃┼┴▒┌☃d
/⎽┼▒⎻/⎽┼▒⎻c⎼▒°├/1▮▮9/┤⎽⎼/⎽▒▒⎼e/°☃┌e/└▒±☃c↓└±c← 1615: W▒⎼┼☃┼±: ⎺°°⎽e├ ◆↑' ☃┼┴▒┌☃d
/⎽┼▒⎻/⎽┼▒⎻c⎼▒°├/1▮▮9/┤⎽⎼/⎽▒▒⎼e/°☃┌e/└▒±☃c↓└±c← 18▮7: W▒⎼┼☃┼±: ⎺°°⎽e├ ◆' ☃┼┴▒┌☃d
/⎽┼▒⎻/⎽┼▒⎻c⎼▒°├/1▮▮9/┤⎽⎼/⎽▒▒⎼e/°☃┌e/└▒±☃c↓└±c← 1847: W▒⎼┼☃┼±: ⎺°°⎽e├ ◆↓' ☃┼┴▒┌☃d
/⎽┼▒⎻/⎽┼▒⎻c⎼▒°├/1▮▮9/┤⎽⎼/⎽▒▒⎼e/°☃┌e/└▒±☃c↓└±c← 1848: W▒⎼┼☃┼±: ⎺°°⎽e├ ◆↑' ☃┼┴▒┌☃d
/⎽┼▒⎻/⎽┼▒⎻c⎼▒°├/1▮▮9/┤⎽⎼/⎽▒▒⎼e/°☃┌e/└▒±☃c↓└±c← 185▮: W▒⎼┼☃┼±: ⎺°°⎽e├ ◆↓' ☃┼┴▒┌☃d
and finally:-
⎽e┌°↓_⎼┤┼_⎽├e⎻(⎽├e⎻← ⎻▒⎼├← ⎻▒⎼├_┼▒└e⎽)
F☃┌e "/⎽┼▒⎻/⎽┼▒⎻c⎼▒°├/1▮▮9/┌☃b/⎻≤├▒⎺┼3↓6/⎽☃├e↑⎻▒c┐▒±e⎽/⎽┼▒⎻c⎼▒°├/☃┼├e⎼┼▒┌/┌☃°ec≤c┌e/_⎼┤┼┼e⎼↓⎻≤"← ┌☃┼e
221← ☃┼ _⎼┤┼_⎽├e⎻
±e├▒├├⎼(⎻▒⎼├← ⎽├e⎻)()
F☃┌e "/⎽┼▒⎻/⎽┼▒⎻c⎼▒°├/1▮▮9/┌☃b/⎻≤├▒⎺┼3↓6/⎽☃├e↑⎻▒c┐▒±e⎽/⎽┼▒⎻c⎼▒°├/☃┼├e⎼┼▒┌/⎻┌┤±☃┼▒▒┼d┌e⎼/__☃┼☃├__↓⎻≤"←
┌☃┼e 516← ☃┼ ⎻⎼☃└e
e┌°_°☃┌e⎽ = e┌°↓±e├_e┌°_°☃┌e⎽(⎽e┌°↓⎻⎼☃└ed☃⎼← ⎽┼▒⎻_°☃┌e⎽)
F☃┌e "/⎽┼▒⎻/⎽┼▒⎻c⎼▒°├/1▮▮9/┌☃b/⎻≤├▒⎺┼3↓6/⎽☃├e↑⎻▒c┐▒±e⎽/⎽┼▒⎻c⎼▒°├/☃┼├e⎼┼▒┌/e┌°↓⎻≤"← ┌☃┼e 373← ☃┼ ±e├_e
┌°_°☃┌e⎽
°☃┌e_└ = _±e├_└▒±☃c(⎻▒├▒)
F☃┌e "/⎽┼▒⎻/⎽┼▒⎻c⎼▒°├/1▮▮9/┌☃b/⎻≤├▒⎺┼3↓6/⎽☃├e↑⎻▒c┐▒±e⎽/⎽┼▒⎻c⎼▒°├/☃┼├e⎼┼▒┌/e┌°↓⎻≤"← ┌☃┼e 339← ☃┼ _±e├_
└▒±☃c
⎼▒☃⎽e R┤┼├☃└eE⎼⎼⎺⎼('C▒┼┼⎺├ ┌⎺▒d └▒±☃c ▒e▒de⎼ de├ec├☃⎺┼')
R┤┼├☃└eE⎼⎼⎺⎼: C▒┼┼⎺├ ┌⎺▒d └▒±☃c ▒e▒de⎼ de├ec├☃⎺┼
1 ▒┌▒┼@▒⎽▒:·/±e├↑☃⎻┌▒≤e⎼⟫
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR snapcore/snapcraft#1870 (d20b9678d), replacing python-magic ELF detection with readelf and eliminating magic.mgc warnings and architecture-specific crashes. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR snapcore/snapcraft#1870 (d20b9678d), replacing python-magic-based ELF detection with readelf to avoid magic.mgc warnings and crashes. | |
| stealth/space-bunny-alpha | — | closed stale | Closed stale after 30 days without a response or fix; Snapcraft 2.38's i386 magic.mgc parsing failure has no linked PR, commit, or release resolution. | |
| stealth/space-bunny-alpha | — | closed stale | Closed without resolution after reports of magic.mgc offset warnings during Snapcraft 2.38 builds; no fix, merge, or maintainer response was recorded. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned and closed without resolution. No fix, merge, or developer comments were provided to address the magic.mgc offset warnings during snapcraft builds. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution after 30 days of inactivity. The report described snapcraft beta v2.38 spamming magic.mgc offset warnings during i386 builds. Zero comments and no follow-up indicate the issue was abandoned. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcore/snapcraft#1870
(confidence 100%)
Merged commit d20b9678d directly removed the magic-based ELF detection that produced the reported warnings.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1870 elf: remove dependency on magic | snapcraft | merged | Merged PR #1870 in commit d20b9678d, replacing python-magic with readelf for ELF parsing and cleaning up the implementation. | |
| #1685530 the snapcraft snap prints: using regular magic file `/usr/share/misc/magic' | snapcraft (launchpad) | closed | Warnings were fixed by merged PR snapcore/snapcraft#1283, which selects the magic database path when Snapcraft runs as a snap (commit 8694f55ec). |