From nobody Tue Nov 26 12:32:59 2024 X-Original-To: freebsd-current@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 4XyMRd2xqPz5fPVj; Tue, 26 Nov 2024 12:33:01 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XyMRd1MZyz46F2; Tue, 26 Nov 2024 12:33:01 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732624381; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tix2TSlScJEv85RcKuPOW0PXrwyrPYhassD35aj5hCs=; b=Bh2vNmqv9JXY/c2/PQ3oo6gX9EyCHJidt6u/Tvn+OexR7FzieBdE7j6T2zxGdzHXNUe7NC MpqodmeskxHJ4KOIjr6oW/cpwsM/Dgdr7Rv0+RGVeebS6sdLEpJ3Ql40ECyCuvQlqfEEyu ZcSiYeEgJ1EhbYkk8vj1wxxpY/vksLDBVV8dO/YnbJyMWgAyfuRoo1MsE/2dROU5+qu7Lr Kg7USWpZSJBLhY+KrKTOStiMrqNoo3GdMuxt+xDBKeEbZv5jBMgmfkBNoBcogVuTLobTZJ VXd63ZE3tgcnFbidrCXDPIsVVCMXeaRAqBC/MSC4OxzsPA/pXe3Adg3ktnxVRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732624381; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tix2TSlScJEv85RcKuPOW0PXrwyrPYhassD35aj5hCs=; b=pgIybOSb3Hca5VNXjHoQgkRpEj3QQuVdL35MO9GEl3O6i+Xn4UmG8zBEIwH+CHm1Q8vtBH aNHWtyZftEYxqNvykpeJ89D7FZ+rJ2KglCI6tV4vtbDTXv7gm8bvfN69cqX6iigVZwORco /yphDeoNJrtdT8A2CZwUb5XSMH9vOvCioJdiluQYoHVeaBZcjJJQcl9oCPtNXBUZSuuykO hpv9QZ085tyOfgwikBp5b9vCjJLAnM63peGd8SSucEsFrAy8VhiwmC5cx2F1W1XZ8oB7YG 2AUftUcvH+S+tpU9EvwlqJ6t0cGySsZIKj8FUZyiSF7srfMD+fwsPnMho9h13w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732624381; a=rsa-sha256; cv=none; b=nn+3ewm7dGT0BEK+JgRo8IQG4Tld4L1e16hYTQuR7/Y+Z43dJEDulDsm33lkB2o/f9kaBr raKYCF1qLtPWjnvDHG7+T1HRJE8jvDB1RbTN9/IN62sO4Q/ThKMwFRsrClRnzxTXAGQm9y mNYAP6qnm/peRjWUHJUmh785jytEJ1gWJaqimI/k48con8xiNh1CG3bY5FCcEXqfxINlWg YDj/LDw19h8oaeDgOBvpd+QCOMN43zepBJRIJVe5JNq/yepvZP5q5bs5gZihnhfjzTfYoF uCg7wiq0Dr5ATpG5tyAn/WUVFpTZ0RcFCVbH99PFgjtfPVMRh05g1YdozbzAVA== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (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 (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R10" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XyMRd0Q8Gzg64; Tue, 26 Nov 2024 12:33:01 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.wg.andric.com [10.69.1.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id B21B13D086; Tue, 26 Nov 2024 13:32:59 +0100 (CET) Content-Type: text/plain; charset=utf-8 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6.1.9\)) Subject: Re: port binary dumping core on recent head in poudriere [tmpfs corruptions involving blocks of zeros that should not be all zeros] From: Dimitry Andric In-Reply-To: <865xoa2t6f.fsf@ltc.des.dev> Date: Tue, 26 Nov 2024 13:32:59 +0100 Cc: Mark Millard , "jah@freebsd.org" , dougm@freebsd.org, Alan Somers , Mark Johnston , FreeBSD Current , Guido Falsi , Yasuhiro Kimura , ports@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <69A2E921-F5E3-40D2-977D-0964EE27349A@FreeBSD.org> References: <7c9c3cf5-bbd1-4642-8d04-33aa07a4db02@madpilot.net> <9df256a8-c6ed-46d9-b955-fc2657c12d36@madpilot.net> <5c502054-7353-4a1e-8350-c403482e9c0d@madpilot.net> <3127C3BA-FC93-4636-ADDB-89518DE9C60D@FreeBSD.org> <86ed2zsp6l.fsf@ltc.des.dev> <5f24a570-26e0-4c0a-817f-591a234fd07b@madpilot.net> <5918C6A1-8FDB-40CA-8C86-EB7B7BE75A2E@yahoo.com> <86ed2zc8r5.fsf@ltc.des.dev> <45098ccf-4dc6-426c-849a-c923805d6723@madpilot.net> <38658C0D-CA33-4010-BBE1-E68D253A3DF7@FreeBSD.org> <1004a753-9a3c-4aa2-bfa8-4a0c471fe3ea@madpilot.net> <0690CFB1-6A6D-4B63-916C-BAB7F6256000@yahoo.com> <3660625A-0EE8-40DA-A248-EC18C734718C@yahoo.com> <865xoa2t6f.fsf@ltc.des.dev> To: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= X-Mailer: Apple Mail (2.3731.700.6.1.9) On 26 Nov 2024, at 11:19, Dag-Erling Sm=C3=B8rgrav = wrote: >=20 > Mark Millard writes: >> =46rom inside a bulk -i where I did a manual make command >> after it built and installed libsass.so.1.0.0 . The >> manual make produced a /wrkdirs/ : >> [...] >> So the original creation looks okay. But . . . >> [...] >> So: The later, staged copy is a bad copy. Both are in the >> tmpfs. So copying to the staging area makes a corrupted >> copy inside the same tmpfs. After that, further copies of >> staging's bad copy can be expected to be messed up. >=20 > This and the fact that it happens on 14 and 15 but not on 13 strongly > suggests an issue wth `copy_file_range(2)`, since `install(1)` in 14 = and > 15 (but not in 13) now uses `copy_file_range(2)` if at all possible. >=20 > My educated guess is that hole detection doesn't work reliably for = files > that have had holes filled while memory-mapped, so = `copy_file_range(2)` > thinks there is a hole where there isn't one and skips some of the = data > when `install(1)` uses it to copy the library from `${WRKSRC}` to > `${STAGEDIR}`. This may or may not be specific to tmpfs. >=20 > You may want to try applying the attached patch to your FreeBSD 14 and > 15 jails. It prevents `cp(1)` and `install(1)` from trying to use > `copy_file_range(2)`. Yes, tmpfs is indeed the culprit (or at least involved). I have had = USE_TMPFS=3Dlocalbase in my poudriere.conf for a long time, since = otherwise my build machine would run out of memory very quickly, so I = didn't encounter any issues. Now I changed it to USE_TMPFS=3Dyes, rebuilt only textproc/libsass and = textproc/sassc, and then after reinstalling those packages: $ /usr/local/bin/sassc Segmentation fault -Dimitry