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 1nak46-0003W7-81 for pgsql-hackers@arkaria.postgresql.org; Sat, 02 Apr 2022 20:09:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nak36-0004SO-CA for pgsql-hackers@arkaria.postgresql.org; Sat, 02 Apr 2022 20:08:40 +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 1nak36-0004SE-0s for pgsql-hackers@lists.postgresql.org; Sat, 02 Apr 2022 20:08:40 +0000 Received: from mail-il1-x134.google.com ([2607:f8b0:4864:20::134]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nak31-0001ln-67 for pgsql-hackers@postgresql.org; Sat, 02 Apr 2022 20:08:39 +0000 Received: by mail-il1-x134.google.com with SMTP id z10so4268667iln.0 for ; Sat, 02 Apr 2022 13:08:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CFKLC7LYngKEyLOYoCQvNo+oFh5k6yLgKz9JOewWnDA=; b=XfwEJ/IDcAUfKz2qbxRYtdv2cfuDGzQqwxXsZ1uGbvSA/fncl3NOrDjhMV5+3xo2N/ roDQZ0K15OsK9UwhJMJP51cQyzgFq9SBaJlqn2NPip5WATCKtpirNK7iooN5rCA4wY0s xY1npkCSTfppi8+kso3Fcgdd5hPQOkVoc/8EJbrOob0zhIg9lCCySLMP8g1Zmb/pq6Pu 9q/QBLQ5u0LpZ2M4cUem3Dxmg0ibiFVKVlcOl3RHRdQtL7RPlqxbnnnV3yqeHC78w8Kj +Fuu8m02N9lRZpk/kiTBPVbBUZsRDOoaOkZMcpXWhjPhlJ/HXFIaHWJvY7dn6UK/ywo8 TnzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CFKLC7LYngKEyLOYoCQvNo+oFh5k6yLgKz9JOewWnDA=; b=7atir/gKdkDlCbw30AIxMhDCm3Uf5IUhuQJaMVeSHbQqVV9Rev3ib/sATDQrQ6lSn/ ZtHtkTR0LQ8LyeWeRdIM4o1f3fF2qZxrxiFavNWtlMFPoZ57U6orEAqMEoumNdRpk2yt IpxZkb+4hb/jOsucCsNQlzBQ6vKG2WbO8LpMKJ0gWjwAQK8SXytNsHwqdetrH3H9qyWz G0IAiUrk+hLNP6cNm9SwKxxGKanOH899ovVBVvaA3OMYq0UDlOedcexXP4Dw7fO1fds2 2A7IJP8qfGe3HWGFFlxfHvOEbC91/sFMtzzbOmPg+8H0j+a7/elTIvVV+CGGUA5LGyfh FlQg== X-Gm-Message-State: AOAM531n4sMRxKKF2hWt37lVvZoz6fkAlBbi6hFFLlNz+z9ujYzxJwHD fxOcdAlFjxNpcpQbbMjzQKn8ZfHeLTcZwaPebsU= X-Google-Smtp-Source: ABdhPJyX5xaGjEeG5/YbCIVvBBS0RCxiVKbVQp4ireyo21e0DA0UiO7eI8ja4T9C5qyL2eaIIqJMdh/S8XT3svHKybg= X-Received: by 2002:a05:6e02:ece:b0:2ca:1b6b:6180 with SMTP id i14-20020a056e020ece00b002ca1b6b6180mr2427254ilk.316.1648930113365; Sat, 02 Apr 2022 13:08:33 -0700 (PDT) MIME-Version: 1.0 References: <0F9ECBA9-1DF2-4C38-BB58-B17EEE6C7B3A@yesql.se> <20210311185847.zwb2rf3n4wzelkba@alap3.anarazel.de> In-Reply-To: From: Thomas Munro Date: Sun, 3 Apr 2022 08:07:58 +1200 Message-ID: Subject: Re: A qsort template To: John Naylor Cc: Peter Geoghegan , pgsql-hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, Apr 3, 2022 at 12:41 AM John Naylor wrote: > On Sat, Apr 2, 2022 at 5:27 PM Thomas Munro wrote: > > Reproduced locally, using the same few lines from the cluster.sql > > test. I'll try to dig more tomorrow... > > Thanks! Unfortunately I can't reproduce locally with clang 13/gcc 11, > with -Og or -O2 with CFLAGS="-fsanitize=undefined,alignment" ... Maybe you need to add -fno-sanitize-recover=all to make it crash, otherwise it just prints the warning and keeps going.