From nobody Tue Nov 28 15:47:55 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 4Sfn0W67pfz53M0T for ; Tue, 28 Nov 2023 15:47:55 +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 4Sfn0W50Bdz3Qy1 for ; Tue, 28 Nov 2023 15:47:55 +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=1701186475; 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=SdWGeFyoto6b98JDJLO43jz/uk/JsGaXUOiIbR1gmlM=; b=UvBXopUv+h6nMKfdz/LIe2OdhsLJ+fYVTo7tOIQhEmw33P0VZZ6BqweLHj/YJXvzdVOqUR XcvyBgUjcbOWR4M7wSiwXdGI3FR2IjWPXESRyf4vQ5MHueyH+JxwHVnceFZVXh66Ee5Or3 kaFLv6VyOFG6tYna0vwmzZlgrfC0agaKTZbM/WXV+AwZKjL7+I/d8Zqdp0h11q9iDLbZ6e KZvcYSgNOLYOBgCwqI4VRjLxl5f10nq8ntJj3st91S9QZ/xf0TAmRxyxvPbO9FHEOgIf0w Xv/cPvt41RGS391sC4ftnSWw/hTCjrCx/YHYSKtWUC+UmWWGZvZ+dE2J9F2HFQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701186475; a=rsa-sha256; cv=none; b=rNiS6GGx4YLnx548BkptmCLMOERAdqeW/lVacLhBer6KRQD9aspvoG93fnA+bZm5tDa2v9 EQpXkGEPucUi9ykW0H8jN738hFZ3viAU+9FmsAhkC1E81coDT8U2RiUlZkFuvxk2W6JkZR 09n5m+9mFU+XFXsW+yPhF3/SWfdesKe0SsAO/8wMBiy0Hkh4EOqtz0pYBzcf+iT153NhLG TSQ5YUTVhQJWNZGOOZWxb6Bxdq7yBWBoVglZ4X1j6Y+B/mTtJKdqjeZxCjDWk/yEbJSFKJ 67WE6BQTy1LZQP2O8rkpV0n/dMFsytsTr0gvP/PXPtCado1IfkveJMHDI3mJzw== 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 4Sfn0W45GLzCL6 for ; Tue, 28 Nov 2023 15:47:55 +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 3ASFltaq038826 for ; Tue, 28 Nov 2023 15:47:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3ASFltax038825 for bugs@FreeBSD.org; Tue, 28 Nov 2023 15:47:55 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 15:47:55 +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: markj@FreeBSD.org 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 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markj@FreeBSD.org --- Comment #7 from Mark Johnston --- When I run this on a Ryzen 7950X3D running main, I get: ra=3D7.01209994486364354e-310 reatt=3D10000000000 ra * reatt-> result =3D0 = savemxcsr 00001f80 mxcsr_set 00009fc0 showmxcsr 00009fc0 mxcsr 00009fc0 when I have a breakpoint on the "mulsd" instruction: ra=3D7.01209994486364354e-310 reatt=3D10000000000 ra * reatt-> result =3D0 = savemxcsr 00001f80 mxcsr_set 00009fc0 showmxcsr 00009fc0 mxcsr 00009fc0 while stopped at "mulsd": (gdb) info register mxcsr mxcsr 0x1f80 [ IM DM ZM OM UM PM ] (gdb) c Continuing. ra=3D7.01209994486364354e-310 reatt=3D10000000000 ra * reatt-> result =3D7.01209994486364403e-300 savemxcsr 00001f80 mxcsr_set 00009fc0 showmxcsr 00009fc0 mxcsr 00001fa2 So I believe the problem is reproducible here. In particular, the output of= the test program varies depending on whether I print the value of mxcsr from gd= b or not. --=20 You are receiving this mail because: You are the assignee for the bug.=