From nobody Tue Nov 28 16:53:49 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SfpSZ0MMqz52D2X for ; Tue, 28 Nov 2023 16:53:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SfpSY6KL4z3XhX for ; Tue, 28 Nov 2023 16:53:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701190429; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DrbFoL1RN8Y3sBbMht36Z/NeEOo8rsbdfEx6/wEbij4=; b=LJnaGkGoF2h0LKdr2IsZ2hLxiPT8ZbrEzbauvGzdPTYv5ue4jwElM4diWaPB6IjjVQpWi4 +drblkJ7N5QfnQ5U2rljpgA2trwahFSWtyEDHzGC6CET6unLgBxwbEMLOrPYUP9aKkvQVw hmg2ZR0uXKcWg9BoSdX7gaKgZFr9jr5JWPzJlDgKC15lcMbJKZ+ZxOXj1GJGs7lauSIst1 +Ska10IjIiYKIFyQWaeaGqdGsYSJnbdDTc0hUZUwepu86KRrZlOnQy1FUM9Hvo6VySq0Wn dQGpL5AG7shdrS3KVYqUCwRERHa3afKFVpJKSBh2F8YU0yaSvNjqJWoRAGGuig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701190429; a=rsa-sha256; cv=none; b=ru6suHOElMflKkrynqYludxPEq/YLjAe1mvlDZiGJxfmv8qS9EXOcbOw0BMkZJh0oUb53b 3a31xoZnfE8015MYznlv4gqEogavsCCuaZHobTwA+BsheftN/TdVL7Mr3kufNlTm1QewSW iArj9OlTmAl+DG1JeU3kOJgyV1gCTKvIgrIDq2+K+B1xDJYFSaAcbqiQBxK08bTznQd7rB nOAgeUL+OxPWcjhdh8pz2ItCFOPZvYLp+68ZcE0FTmw0/GcOJKUZ+pCXpNIHVVkgMgu9ya i4Y082znFH5fUnA0BbwjvTBImyC1FMM1zSzih/8bWYdWRX3hETAIYYYx7gDiWg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SfpSY5PcnzTp7 for ; Tue, 28 Nov 2023 16:53:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3ASGrnfe052806 for ; Tue, 28 Nov 2023 16:53:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3ASGrnPf052805 for bugs@FreeBSD.org; Tue, 28 Nov 2023 16:53:49 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 275322] Improper handling of mxcsr register during debug (gdb/lldb) Date: Tue, 28 Nov 2023 16:53:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: olivier.freebsd@free.fr X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275322 Olivier Certner changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |olivier.freebsd@free.fr --- Comment #8 from Olivier Certner --- On a bare-metal Ryzen 3900X running 13-STABLE, I get: ra=3D7.01209994486364354e-310 reatt=3D10000000000 ra * reatt-> result =3D0 = savemxcsr 00001f80 mxcsr_set 00009fc0 showmxcsr 00009fc0 mxcsr 00009fc0 With a breakpoint I see the same, and when stopped at "mulsd": (gdb) info register mxcsr mxcsr 0x1f80 [ IM DM ZM OM UM PM ] (gdb) continue Continuing. ra=3D7.01209994486364354e-310 reatt=3D10000000000 ra * reatt-> result =3D7.01209994486364403e-300 savemxcsr 00001f80 mxcsr_set 00009fc0 showmxcsr 00009fc0 mxcsr 00001fa2 So I get the same results as markj@ (comment #7), and the same as Cheyenne Wills (comment #1) except for mxcsr in the first print (00009fc0). Given t= he code, I don't get how you can possibly obtain 00001f80. Anyway, there is a discrepancy between a normal run (and a debugged run without "info register mxcsr") and a debug run with "info register mxcsr"). --=20 You are receiving this mail because: You are the assignee for the bug.=