🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #5118

Bug#1154484: rust-swc-core: autopkgtest fails on 32-bit: swc_ecma_parser size_of_error assumes 8-byte pointers

#5118
From: Juan Manuel Méndez Rey
Date: Thu, 19 Nov 2026 16:10
27 lines
2746 bytes
Package: rust-swc-core
Version: 77.1.2+ds-2
Severity: important
Tags: patch upstream
Control: forwarded -1 https://github.com/swc-project/swc/issues/12813

The autopkgtest rust-swc_ecma_parser:default fails on armhf, and that
keeps 77.1.2+ds-2 out of testing:
https://ci.debian.net/packages/r/rust-swc-core/testing/armhf/77994695/

    ---- error::size_of_error stdout ----
    assertion `left == right` failed
      left: 4
     right: 8

The test asserts that Error is 8 bytes, but Error is a Box, so it's 4 on
32-bit. i386 will hit the same. It's new in ds-2 because that's the
first version that ships swc_ecma_parser.

The fix compares against size_of::<usize>() instead. I'll push it to
debian/latest as patch 1004_parser_error_size_32bit, with this bug in
the changelog. It builds on amd64 (297 tests, also on one CPU), autopkgtest
is 118/118, and the parser test passes on armhf under qemu.

Jonas, it'll be ready to upload as ds-3 whenever you like.

Juan
Technical Details
Message-ID: <O1cRY-cV4Y-11@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Juan Manuel Méndez Rey <juan.mendezr@proton.me>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1154484: rust-swc-core: autopkgtest fails on 32-bit: swc_ecma_parser size_of_error assumes 8-byte pointers
Date: Thu, 19 Nov 2026 17:10:02 +0100
Message-ID: <O1cRY-cV4Y-11@gated-at.bofh.it>
X-Original-To: submit@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Thu Nov 19 16:03:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.451
Reply-To: Juan Manuel Méndez Rey <juan.mendezr@proton.me>, 1154484@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: pkg-javascript-devel@lists.alioth.debian.org
X-Debian-Pr-Message: report 1154484
X-Debian-Pr-Package: rust-swc-core
X-Debian-Pr-Keywords: patch upstream
X-Debian-Pr-Source: rust-swc-core
Feedback-ID: 176548819:user:proton
X-Pm-Message-ID: b8194215c20b74f8d8ab201c5bd8009d47f84f73
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2003574
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 27
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 19 Nov 2026 16:01:31 +0000
X-Original-Message-ID: <1795104087602519191.3578417.sizeof@proton.me>