Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kVmE3-0004s2-Pc for pgsql-hackers@arkaria.postgresql.org; Fri, 23 Oct 2020 01:50:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kVmE2-0002FE-Oo for pgsql-hackers@arkaria.postgresql.org; Fri, 23 Oct 2020 01:50:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kVmE2-0002F6-Hs for pgsql-hackers@lists.postgresql.org; Fri, 23 Oct 2020 01:50:38 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kVmDy-0007mg-89 for pgsql-hackers@postgresql.org; Fri, 23 Oct 2020 01:50:37 +0000 Received: by mail-pg1-x543.google.com with SMTP id l18so2235125pgg.0 for ; Thu, 22 Oct 2020 18:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=dIjzS0Etex0qIceEENlhB6/C55YdNlAvCheAlZ4SQGg=; b=ZufH3XuKBdkrIlAMQ4itWZkoW3N63eIeTJxvaE1Q8ACy1ZtDKU77LDO1Ft6+a5Tp+o d87rjsaR9l6me69TscZgMaBYMGgtBQwWxFi+1pXGKfcXFEW+k4aF9IfCq0+61ZEk1LPU 0DBe1mucBIoCnjErP9w80i1mnDvCd/CSafcivzpTLoOvuK+pkutiWkLHLDW5kO1fyhyZ hpY7OdDvYKz/gE/0E09Sqt7hliP88QBq7Yk4mS2qkNSvo5l0pMG9d9Oy0SGn2LB97w6l i5QqXVG0bQs3yqmA4zOG5ryHmZn+1UPH9skijz73hraXzhiJ8A4z547kSbfwfaRR6MKz XSrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=dIjzS0Etex0qIceEENlhB6/C55YdNlAvCheAlZ4SQGg=; b=iC2Dn6XPPNOIM9+kQE6OJ9d4QxPcKakpJXkvZ/gdlIqU8fsvv9rUxIsiSOF7IOthFS pnGb+7R+ImmkU6RH0x04sJztKWpQ3UJAl2cmLwdDlU3XbASGxcYfQK3hx90uIuiQlFaF Tby9Sv42ZVFUnTApC4BYYj962d/X/55Qfdsj0K33t40ml6tiACG9y6c5JcyVLKKDvOoA gOxWw/vGtsn06MOlg85jaDFhwNQKzj3NMKCx1TlVef4MSHae6z2LBIQzl9jhkxFiEgpF 2Sqb4eo1odV4eCJnSJFvUpMAqqBTe3rS6E1IuMBrYuyT1u+ZBThgQv6WG2JNHreaqxgz q32A== X-Gm-Message-State: AOAM532GXzjqZi7bl+Ytoz7lTXFzb4tPuIsAPBRvVh3yob2sDMmE4C7M S0KBJeztRnhwUUlZz8g1H9lDjFAywSDSwEHZclkrfAJPj4z8d01PjafZQoGG11ZcppK6q0FTwIk XxSAtNANlvyQ6domczHW0kEfT0q1osM6v0hjql6fjeCzbwB6ILfqG1oQI2H+gKWkKmLlNCKXRLE iktYwu5iUOiJxFHZRKXuHP6jfM2JlEBbk0VmwY X-Google-Smtp-Source: ABdhPJzR5sEKaYmEtbVkEMFD6UhVFdBzYNIA6RpCQLxg7lB3tR8BsqeeMpfDLUtF4GAs6StsOtAAdg== X-Received: by 2002:aa7:8588:0:b029:155:7861:4c47 with SMTP id w8-20020aa785880000b029015578614c47mr18091pfn.14.1603417831646; Thu, 22 Oct 2020 18:50:31 -0700 (PDT) Received: from [192.168.0.29] (24-113-193-150.wavecable.com. [24.113.193.150]) by smtp.gmail.com with ESMTPSA id b128sm3352376pga.80.2020.10.22.18.50.30 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Oct 2020 18:50:30 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Subject: Re: new heapcheck contrib module From: Mark Dilger In-Reply-To: <114189.1603417579@sss.pgh.pa.us> Date: Thu, 22 Oct 2020 18:50:29 -0700 Cc: Robert Haas , Peter Geoghegan , "Andrey M. Borodin" , Stephen Frost , Michael Paquier , Amul Sul , Dilip Kumar , Andres Freund , PostgreSQL-development Content-Transfer-Encoding: quoted-printable Message-Id: References: <12ED3DA8-25F0-4B68-937D-D907CFBF08E7@enterprisedb.com> <20200420194210.sevnpi4lyghoanxi@alap3.anarazel.de> <23E60C3C-C20A-4508-84AC-E0CEA59E784A@enterprisedb.com> <5F743835-3399-419C-8324-2D424237E999@enterprisedb.com> <885D2EC9-7D06-4903-A17D-72C184A1E1C5@enterprisedb.com> <5CC85F28-F210-47AC-8DA8-EC4E82AF3FD5@enterprisedb.com> <0C0349EB-DD85-4DA8-82C7-DF70AB714592@enterprisedb.com> <9DF93B83-FE46-4EC4-A99D-77A60729FD2D@enterprisedb.com> <50F6468F-5A5E-412A-86EC-DF24B549D733@enterprisedb.com> <7D603B53-8078-4AF0-851B-803FF4416501@enterprisedb.com> <98265AA9-7BDC-4708-9348-CC1B173BBE1D@enterprisedb.com> <209783.1603313248@sss.pgh.pa.us> <77A60E99-6054-40FD-A5D6-769C287D4A0F@enterprisedb.com> <721BFA83-EA6F-463D-A9DF-CE78A318B73A@enterprisedb.com> <2A7DA1A8-C4AA-43DF-A985-3CA52F4DC775@enterprisedb.com> <114189.1603417579@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3608.120.23.2.1) X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Oct 22, 2020, at 6:46 PM, Tom Lane wrote: >=20 > I wrote: >> I get >> off =3D 7777, flags =3D 2, len =3D 3bbb >> on a little-endian machine, and >> off =3D 3bbb, flags =3D 2, len =3D 7777 >> on big-endian. It'd be less symmetric if the bytes weren't >> all the same ... >=20 > ... but given that this is the test value we are using, why > don't both endiannesses whine about a non-maxalign'd offset? > The code really shouldn't even be trying to follow these > redirects, because we risk SIGBUS on picky architectures. Ahh, crud. It's because syswrite($fh, '\x77\x77\x77\x77', 500) is wrong twice. The 500 was wrong, but the string there isn't the bit = pattern we want -- it's just a string literal with backslashes and such. = It should have been double-quoted. =E2=80=94 Mark Dilger EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company