[From nobody Mon Oct 26 09:25:06 2026
Received: (at submit) by bugs.debian.org; 13 Feb 2025 07:01:14 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
 (2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.8 required=4.0 tests=BAYES_00,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_EF,FOURLA,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,
 SPF_NONE,SUBENDNUM autolearn=no autolearn_force=no
 version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 47; hammy, 150; neutral, 150; spammy,
 0. spammytokens: hammytokens:0.000-+--XDebbugsCc,
 0.000-+--X-Debbugs-Cc, 0.000-+--trixie, 0.000-+--HX-ME-Sender:xms,
 0.000-+--HX-ME-Proxy:xmx
Return-path: &lt;debian@fabian.gruenbichler.email&gt;
Received: from fhigh-a1-smtp.messagingengine.com ([103.168.172.152]:39803)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.94.2) (envelope-from &lt;debian@fabian.gruenbichler.email&gt;)
 id 1tiTDl-00Bq00-51
 for submit@bugs.debian.org; Thu, 13 Feb 2025 07:01:14 +0000
Received: from phl-compute-10.internal (phl-compute-10.phl.internal
 [10.202.2.50])
 by mailfhigh.phl.internal (Postfix) with ESMTP id E63641140114;
 Thu, 13 Feb 2025 01:51:47 -0500 (EST)
Received: from phl-mailfrontend-02 ([10.202.2.163])
 by phl-compute-10.internal (MEProxy); Thu, 13 Feb 2025 01:51:47 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 gruenbichler.email; h=cc:content-type:content-type:date:date
 :from:from:in-reply-to:message-id:mime-version:reply-to:subject
 :subject:to:to; s=fm2; t=1739429507; x=1739515907; bh=E5kPSRTmg7
 UE0YMJB/uNtC4uM+/JvIuaocXyJrdh63o=; b=O45H0OAAcycwEDXGiJkYuAorNq
 fqA6z1b2MQtbtTj6lxvluNx7QzxFxQ/mdiRz2YkSYpbe7L1xkTP0RXiJvmODZVvx
 ttrmmVL+EwL1w+t69OD/emOIV0IWEMnKfPDtByxCYjKHJwTehTfNHNenKWdzWCQB
 4T/Qs5IedLeVKKRrKeG4jtVhbYhTl/5yITfJyfaycfw71z1bqpHZMknNnek+3UwM
 FxRp+48wMXr7jcdQv2kz1UjICGwuSMvogtEzz5JoqWfZzDXJ5jtyh4EGZBH4Cwx9
 Jixs4OqP4MLkQux954Q4njJeiyI0Nb0fsfPeSw2Ed1wfZu45pf1BQ0kFsZ1g==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:message-id
 :mime-version:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1739429507; x=
 1739515907; bh=E5kPSRTmg7UE0YMJB/uNtC4uM+/JvIuaocXyJrdh63o=; b=0
 G0K6XU3dBOK/eQOHSFHz59CwF6dfCZycwBOhiuqmEb4L3NRzVqvc0KudZXiKbjfw
 KUM20kTkC/2TP2yWvKhj0+LN7/O73CdGc2BVVpu4aiBOru7pkbxuhsRBazKcw1yp
 NxMFptMHLgRGRBSUSkshkWnu2Q+RjI2wiGMqVcxuGAM6EU6m1cgaFlgkBjP9ST+M
 W343jYP2HiY5AsmGfjbZKxHbs4ENDSK5MJFcLUlp9awrOt7vdHqLQQVTcZQ7nIuZ
 AUR8Rpana+aLQYP+E4Si9ZlrpB83iMdVq/ckgmjCarbTjMnvuWAZE4w9hCniPLHQ
 fORRGYp+iuxUWGh4V23dQ==
X-ME-Sender: &lt;xms:gpatZ-kKlfKd3_fUAgmxHN1kYa3ZMmEyEVLdbBqyfLBpGOFgNPNsNA&gt;
 &lt;xme:gpatZ10XBZa1PvdnAjF3WeGDyk-F8lED5DVSiDSxC2yjqx9WgjhkxATdhh6MVuNZW
 JKEPlRwnrU8P2KplQ0&gt;
X-ME-Received: &lt;xmr:gpatZ8rYRJppHBbqjlDL4sq9prOkrSmPDykPb-VYQQLm0sDRXNttSQ&gt;
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdegiedutdcutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp
 uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvf
 fukfggtggusehttdfstddttddvnecuhfhrohhmpefhrggsihgrnhcuifhrtphnsghitghh
 lhgvrhcuoeguvggsihgrnhesfhgrsghirghnrdhgrhhuvghnsghitghhlhgvrhdrvghmrg
 hilheqnecuggftrfgrthhtvghrnhepvdevjeduteelteefvdeijeduvddtueelveffgeev
 heeuheegjeelfeeiudelkedtnecuffhomhgrihhnpeguvggsihgrnhdrohhrghdpghhith
 hhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf
 rhhomhepuggvsghirghnsehfrggsihgrnhdrghhruhgvnhgsihgthhhlvghrrdgvmhgrih
 hlpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehs
 uhgsmhhithessghughhsrdguvggsihgrnhdrohhrghdprhgtphhtthhopeguvggsihgrnh
 esfhgrsghirghnrdhgrhhuvghnsghitghhlhgvrhdrvghmrghilh
X-ME-Proxy: &lt;xmx:gpatZyk2MdVw625-woGUeQkViHt9qwX-HBAn9GqRmHE-E02O7sStJg&gt;
 &lt;xmx:gpatZ82prLQDHxz0FTolJG-l4KlPWIeM53nJuANB78LR4gV6IEbSbw&gt;
 &lt;xmx:gpatZ5sW9d2b5-P8UTQi5V2sOMdHWQU_kfdwVz_TxXIsHXwHnPHdKw&gt;
 &lt;xmx:gpatZ4VzK2feg8-v5LFj_AQ1xQJKfeqxcEvDpNHgyDKvxKXIhRm7wg&gt;
 &lt;xmx:g5atZ599P3IRdNsOqsQqUR3rUKMjapya-17EMo5sB80cPpNaUlB2akcL&gt;
Feedback-ID: i1739464b:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 13 Feb 2025 01:51:45 -0500 (EST)
Date: Thu, 13 Feb 2025 07:51:29 +0100
From: Fabian =?utf-8?Q?Gr=C3=BCnbichler?= &lt;debian@fabian.gruenbichler.email&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: rustc unsoundness/miscompilations on i386
Message-ID: &lt;k54tsscfqnxf2hww6uvq7bsxmaq5lh62wqh65x2ce4jh4xkzco@dekfmkld5peu&gt;
X-Reportbug-Version: 13.0.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Greylist: delayed 562 seconds by postgrey-1.36 at buxtehude;
 Thu, 13 Feb 2025 07:01:13 UTC
Delivered-To: submit@bugs.debian.org

Source: rustc
Version: 1.84.0+dfsg1-1
Severity: serious
Tags: upstream
Justification: Policy 2.2.1
X-Debbugs-Cc: debian-rust@lists.debian.org, sylvestre@debian.org

Filing this bug to have a record in BTS - I'll file a separate one for
release.debian.org about the broader baseline question.

This issue came up back in November on debian-devel/-release:

https://lists.debian.org/debian-release/2024/11/msg00443.html

My original mail, partially wrongly summarizing the issue.

https://lists.debian.org/debian-release/2024/11/msg00445.html

My reponse linking to more upstream details, including why downgrading to i586
in LLVM/rustc doesn't work.

It boils down to the following:

- Debian's i386 baseline is currently 32-bit x86 without MMX or SSE (i686)
- Debian's LLVM and rustc packages accordingly patch their i686 targets to
  remove SSE support, which would be part of that target's baseline upstream
  otherwise [0,1]
- Upstream LLVM and rustc consider this combination unsound and unfixable (for
  IMHO valid reasons) because it can cause subtle miscompilations leading to
  runtime crashes, in addition to the (usual, expected) different semantics of
  x87 and SSE2 floating point implementations [2,3]

I see the following options:

A) bump i386 baseline for Trixie to match LLVM/rustc's upstream i686 target,
   i.e. Pentium 4 *with* MMX and SSE2 (separate RT bug will be filed shortly)

B) RC-ignore this bug and implications for Trixie, bump baseline for Trixie+1

C) remove LLVM and rustc and all their transitive rdeps (this includes Firefox
   and Chromium, most major Desktop environments, sequoia, and probably a bit
   more) on i386 from Trixie, further reducing the usefulness of this arch

Personally (with my rustc maintainer hat on) I have a strong preference for A).

Please keep responses on details of A) to the corresponding release.debian.org
bug!

Fabian

0: https://salsa.debian.org/rust-team/rust/-/blob/debian/sid/debian/patches/behaviour/d-rustc-i686-baseline.patch?ref_type=heads
1: https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/blob/19/debian/patches/clang-baseline-fix-i386.patch
2: https://github.com/rust-lang/compiler-team/issues/808
3: https://github.com/rust-lang/rust/issues/114479#issuecomment-2072052116
]