From nobody Sun Feb 11 00:21:14 2024 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 4TXStg1w9wz58x4t for ; Sun, 11 Feb 2024 00:21:15 +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 4TXStf70wVz4tJv for ; Sun, 11 Feb 2024 00:21:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707610875; a=rsa-sha256; cv=none; b=FShFYLM2TuvtGjlvCqpDiknTfcAjEeN4Sp7a5oE0lDO1R2Xfk0juI9vTRbxaTCp4pzcKuu MbqwwDshP/0cpf81j8KaADth5ZFAqXeJThuh8zttNuU/Xbc0rxbi79q5CIgzX+30VGq9Tw ly8oHdnUtnVOqo5aRX97VVO506zB89UWKhJuJPJi9OxPrAWGxtg04CWSiswY8Wny8+25vg 93EEp5FdVzeL8w+wgB4e92P3xSFdh2Fm89zhFfCaCaRBIduVwCoUU9WBbpggBV9q+PEPuG cu41azExj0ENM4LBx+3whoQ7fXJJRFHPwDjlUhjcIudNJ3WPv3SVeQZSBTeT4g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707610875; 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; bh=jBGbgFd3oTtVka31ByF0bk0ERruQXs/jP+Qhh+jWgSM=; b=jgWx7+7jsA0eogRKBZ6gOLHnqEHUNvy/+BSgbTXwBjg1cVG80Vd1PUGjxnWKmuqUC8LHXi e6AphE3VR77uBtDbdGfVkOAsC+UQ9H4h0dLcehAJeM7pTJCUe4+ejabRo9CJG1OuAqMk0y oZRaPDey0nfbnGFrSmbryIQH080umXQq05/EiO4+0kUaOTXXHe11f4pnV5/j7L6kx8v5Ej B8CJb70ZxU3neNgJfCqXD/J+/Jf9Z7bTj/IZb3B9t6BSCt5XqBPPAtqTbpFVsRw70Vw74g X1sxzQ839EFDZ11AaKDI3qLnJGZbpNoHFMfnvMogh/OirCSLygObACkuz6MIzQ== 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 4TXStf65s1zdRx for ; Sun, 11 Feb 2024 00:21:14 +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 41B0LEkS009643 for ; Sun, 11 Feb 2024 00:21:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 41B0LERA009641 for bugs@FreeBSD.org; Sun, 11 Feb 2024 00:21:14 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 276961] buildworld artifacts not reproducible between native and cross build Date: Sun, 11 Feb 2024 00:21:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@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: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: 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=3D276961 Bug ID: 276961 Summary: buildworld artifacts not reproducible between native and cross build Product: Base System Version: 13.3-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: emaste@freebsd.org Created attachment 248338 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D248338&action= =3Dedit list of differing artifacts On stable/13 cperciva discovered a number of artifacts produced by buildwor= ld that differ between native (e.g. i386 buildworld in i386 jail) and cross (e= .g. i386 buildworld on amd64 with TARGET/TARGET_ARCH set) builds. PR276960 describes one example. Other cases are different stack layouts or instruction ordering, pointing to nondeterminism in Clang. This example is a disassembly of mkfs.o, responsible for the difference in makefs: - objdump --line-numbers --disassemble --demangle --reloc --no-show-raw-insn --section=3D.text {} @@ -24590,15 +24590,15 @@ movl $0x0, 0x42ca00=20=20=20=20 movl $0x0, 0x42cccc=20=20=20=20 movl $0x1, 0x42cec0=20=20=20=20 movl $0x1, 0x42cec4=20=20=20=20 xorl %eax, %eax movl $0x2000, %ecx # imm =3D 0x2000 jmp 0x41e7fa + movl %ebx, 0x2c(%esp)=20=20 - movl %ebx, 0x30(%esp)=20=20 movl $0x19540119, 0x42ced0 # imm =3D 0x19540119 movl $0x0, 0x42cd60=20=20=20=20 movl $0x10000, 0x42cd5c # imm =3D 0x10000=20=20=20 movl 0x4(%esp), %eax=20=20=20 movl %eax, %ecx shrl $0x3, %ecx movl %ecx, %edi @@ -24611,15 +24611,15 @@ movl $0x10000, %ecx # imm =3D 0x10000 movl 0x8(%esp), %edx=20=20=20 cmpl $0x1, 0x70(%edx)=20=20 movl %esi, 0x20(%esp)=20=20 movl %edi, (%esp) jne 0x41e7f6 orb $0x2, 0x42ce94=20=20=20=20 + movl 0x2c(%esp), %ebx=20=20 - movl 0x30(%esp), %ebx=20=20 movl 0x14(%esp), %edx=20=20 addl %ecx, %edx adcl %eax, %ebx addl $0x2000, %edx # imm =3D 0x2000 adcl $0x0, %ebx movl 0xc(%esp), %esi=20=20=20 movl %esi, %eax @@ -24749,57 +24749,57 @@ leal (%ebx,%ecx), %edx=20 leal (%eax,%edx), %ecx=20 decl %ecx movl %ecx, %eax xorl %edx, %edx divl %ebx subl %edx, %ecx + movl %ecx, 0x2c(%esp)=20=20 - movl %ecx, 0x3c(%esp)=20=20 movl %ebx, 0x28(%esp)=20=20 movl 0xc(%esp), %eax=20=20=20 addl %ebx, %eax decl %eax movl %eax, 0x38(%esp)=20=20 movl 0x42ca28, %eax=20=20=20=20 addl %eax, %eax leal (%eax,%eax,2), %eax movl %eax, 0x34(%esp)=20=20 movl 0x42c9a4, %eax=20=20=20=20 addl $-0x8, %eax + movl %eax, 0x48(%esp)=20=20 + movl 0x42c9a8, %eax=20=20=20=20 movl %eax, 0x40(%esp)=20=20 - movl 0x42c9a8, %eax=20=20=20=20 - movl %eax, 0x44(%esp)=20=20 negl %eax + movl %eax, 0x30(%esp)=20=20 - movl %eax, 0x2c(%esp)=20=20 movl %edi, (%esp) leal -0x1(%edi), %eax=20=20 movl %eax, 0x4(%esp)=20=20=20 movl 0x42ce98, %eax=20=20=20=20 + movl %eax, 0x3c(%esp)=20=20 - movl %eax, 0x48(%esp)=20=20 leal (,%eax,4), %eax=20=20=20 movl %eax, 0x50(%esp)=20=20 movl %esi, %edx movl 0x14(%esp), %ecx --=20 You are receiving this mail because: You are the assignee for the bug.=