From owner-freebsd-bugs@freebsd.org Sat May 23 17:11:55 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CC7692D86C6 for ; Sat, 23 May 2020 17:11:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 49Tqf354mvz4KTK for ; Sat, 23 May 2020 17:11:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id AE52C2D857C; Sat, 23 May 2020 17:11:55 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AE15E2D86C3 for ; Sat, 23 May 2020 17:11: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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49Tqf340BJz4KVV for ; Sat, 23 May 2020 17:11:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 6A9A71331A for ; Sat, 23 May 2020 17:11: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 04NHBtki088875 for ; Sat, 23 May 2020 17:11:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 04NHBtYO088874 for bugs@FreeBSD.org; Sat, 23 May 2020 17:11: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 246630] stable/11 regression: base.txz reproducibility depends on number of cpu cores Date: Sat, 23 May 2020 17:11:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@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: 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 MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 May 2020 17:11:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246630 --- Comment #16 from Dimitry Andric --- Okay, I can reproduce, and it appears to be something in usr.bin/printf/printf.c, which gets built as part of sh. In particular, in = the printf_doformat function. One version gives: 0000000000000440 : 440: 55 push %rbp 441: 48 89 e5 mov %rsp,%rbp 444: 41 57 push %r15 446: 41 56 push %r14 448: 41 55 push %r13 44a: 41 54 push %r12 44c: 53 push %rbx 44d: 48 81 ec e8 00 00 00 sub $0xe8,%rsp 454: 49 89 f4 mov %rsi,%r12 457: 48 89 fb mov %rdi,%rbx 45a: 48 8b 05 00 00 00 00 mov 0x0(%rip),%rax # 461 461: 48 89 45 d0 mov %rax,-0x30(%rbp) 465: e8 00 00 00 00 callq 46a another: 0000000000000440 : 440: 55 push %rbp 441: 48 89 e5 mov %rsp,%rbp 444: 41 57 push %r15 446: 41 56 push %r14 448: 41 55 push %r13 44a: 41 54 push %r12 44c: 53 push %rbx 44d: 48 81 ec e8 00 00 00 sub $0xe8,%rsp 454: 49 89 f5 mov %rsi,%r13 457: 48 89 fb mov %rdi,%rbx 45a: 48 8b 05 00 00 00 00 mov 0x0(%rip),%rax # 461 461: 48 89 45 d0 mov %rax,-0x30(%rbp) 465: e8 00 00 00 00 callq 46a The C function starts with: static char * printf_doformat(char *fmt, int *rval) { static const char skip1[] =3D "#'-+ 0"; int fieldwidth, haveprec, havewidth, mod_ldbl, precision; char convch, nextch; char start[strlen(fmt) + 1]; char **fargv; char *dptr; int l; and the starting piece of code corresponds to the dynamic array declaration, char start[strlen(fmt) + 1]. As to why this is happening, no clue yet... I'm trying to build clang with UBSan, to see if it hits something in particular. --=20 You are receiving this mail because: You are the assignee for the bug.=