Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2219392

Summary: Bad magic format `version %#x (MVP)' (bad format char: #) for wasm files
Product: Red Hat Enterprise Linux 9 Reporter: Paul Dwyer <pdwyer>
Component: fileAssignee: Vincent Mihalkovič <vmihalko>
Status: CLOSED ERRATA QA Contact: Karel Volný <kvolny>
Severity: high Docs Contact:
Priority: urgent    
Version: 9.2CC: fkrska, fsumsal, kdudka, kvolny, lzaoral
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: file-5.39-13.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2221659 (view as bug list) Environment:
Last Closed: 2023-11-07 08:55:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2221659    

Description Paul Dwyer 2023-07-03 12:43:42 UTC
Description of problem:
file cannot identify wasm (Web Assembly files)

Version-Release number of selected component (if applicable):
file-5.39-12.el9.x86_64

How reproducible:
always

Steps to Reproduce:
1. download a sample wasm file e.g.
curl --max-time 60 -s -H "Accept:application/vnd.github.v3.raw" "https://api.github.com/repos/mozilla/source-map/contents/lib/mappings.wasm" -O
2. file ./mappings.wasm

Actual results:
./mappings.wasm: ERROR: Bad magic format `version %#x (MVP)' (bad format char: #)

Expected results:
Not to error

RHEL8 (file-5.33-8.el8.x86_64) produces the following but this does not look quite right either
$ file mappings.wasm 
mappings.wasm: , created: Fri Jul 10 18:08:00 2037, modified: Tue Apr 20 16:29:51 2021

Fedora 38 (file-5.44-3.fc38.x86_64) produces the following output
$ file mappings.wasm 
mappings.wasm: WebAssembly (wasm) binary module version 0x1 (MVP)

Additional info:
Problem looks like the reported upstream issue, fixed in 5.40, however I cannot see the fix to test.

https://bugs.astron.com/view.php?id=170

Comment 16 errata-xmlrpc 2023-11-07 08:55:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (file bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:6693