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 1nPn7a-0002sE-Dj for pgsql-general@arkaria.postgresql.org; Thu, 03 Mar 2022 15:12:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nPn7Z-0002jl-4L for pgsql-general@arkaria.postgresql.org; Thu, 03 Mar 2022 15:12:01 +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 1nPn7Y-0002jc-Pm for pgsql-general@lists.postgresql.org; Thu, 03 Mar 2022 15:12:00 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nPn7W-0006Yu-IF for pgsql-general@lists.postgresql.org; Thu, 03 Mar 2022 15:12:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:To:Sender:From:Date:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Vl6bwVCJwJXnpgiLmj/jGsbmcGNIjdyrkB6QGUcQA2U=; b=ZsIAUEHVqoid+nMgMmUyr5hpEW K2bfpSGQBCbErIE6EYpQyUw325xwomsYIQRrJGIOqrV0kWPkt6L+xyZ296LKbADrdqA1/gBq8P3fZ a2nfqPHfxU/Z8UguEzqqjQ3OL/GWelvY3qFkRww1L7Q7ev8XISYB3PfgQ+CdvtbKl8Zs=; Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by depesz.com with esmtpa (Exim 4.92) (envelope-from ) id 1nPn7U-0007dv-U9 for pgsql-general@lists.postgresql.org; Thu, 03 Mar 2022 16:11:57 +0100 Date: Thu, 3 Mar 2022 16:11:56 +0100 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: PostgreSQL General Subject: Re: Interesting fail when migrating Pg from Ubuntu Bionic to Focal Message-ID: <20220303151156.GB26036@depesz.com> Reply-To: depesz@depesz.com References: <20220303150428.GA26036@depesz.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220303150428.GA26036@depesz.com> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Mar 03, 2022 at 04:04:28PM +0100, hubert depesz lubaczewski wrote: > and it worked, so I'm kinda at loss here. based on some talk on IRC, I was able to get stack trace from fail: (gdb) bt #0 0x0000fffe4a36e4d8 in ?? () #1 0x0000aaaabe03ffb8 in ExecProcNode (node=0xaaaae4f87cf8) at ./build/../src/include/executor/executor.h:242 #2 ExecMergeJoin (pstate=0xaaaae4f87da8) at ./build/../src/backend/executor/nodeMergejoin.c:656 #3 0x0000aaaabe03ffb8 in ExecProcNode (node=0xaaaae4f87ae8) at ./build/../src/include/executor/executor.h:242 #4 ExecMergeJoin (pstate=0xaaaae4f876c8) at ./build/../src/backend/executor/nodeMergejoin.c:656 #5 0x0000aaaabe039b1c in ExecProcNode (node=0xaaaae4f876c8) at ./build/../src/include/executor/executor.h:242 #6 ExecHashJoinImpl (parallel=false, pstate=0xaaaae4f87408) at ./build/../src/backend/executor/nodeHashjoin.c:262 #7 ExecHashJoin (pstate=0xaaaae4f87408) at ./build/../src/backend/executor/nodeHashjoin.c:591 #8 0x0000aaaabe01ed5c in ExecProcNode (node=0xaaaae4f87408) at ./build/../src/include/executor/executor.h:242 #9 ExecutePlan (execute_once=, dest=0xfffe49be0828, direction=, numberTuples=0, sendTuples=, operation=CMD_SELECT, use_parallel_mode=, planstate=0xaaaae4f87408, estate=0xaaaae4ce4180) at ./build/../src/backend/executor/execMain.c:1632 #10 standard_ExecutorRun (queryDesc=0xaaaae4e9da70, direction=, count=0, execute_once=) at ./build/../src/backend/executor/execMain.c:350 #11 0x0000ffff7d1981fc in pgss_ExecutorRun (queryDesc=0xaaaae4e9da70, direction=ForwardScanDirection, count=0, execute_once=true) at ./build/../contrib/pg_stat_statements/pg_stat_statements.c:893 #12 0x0000ffff7d182688 in explain_ExecutorRun (queryDesc=0xaaaae4e9da70, direction=ForwardScanDirection, count=0, execute_once=true) at ./build/../contrib/auto_explain/auto_explain.c:320 #13 0x0000aaaabe1754c8 in PortalRunSelect (portal=portal@entry=0xaaaae4d476e0, forward=forward@entry=true, count=0, count@entry=9223372036854775807, dest=dest@entry=0xfffe49be0828) at ./build/../src/backend/tcop/pquery.c:938 #14 0x0000aaaabe176a64 in PortalRun (portal=portal@entry=0xaaaae4d476e0, count=count@entry=9223372036854775807, isTopLevel=isTopLevel@entry=true, run_once=run_once@entry=true, dest=dest@entry=0xfffe49be0828, altdest=altdest@entry=0xfffe49be0828, completionTag=completionTag@entry=0xffffc89001f8 "") at ./build/../src/backend/tcop/pquery.c:779 #15 0x0000aaaabe172a18 in exec_simple_query ( query_string=query_string@entry=0xaaaae4c6c7b0 "SELECT\n p.tableoid,\n p.oid,\n p.proname,\n p.prolang,\n p.pronargs,\n p.proargtypes,\n p.prorettype,\n (\n SELECT\n", ' ' , "pg_catalog.array_agg(acl ORDER BY row_n)\n F"...) at ./build/../src/backend/tcop/postgres.c:1215 #16 0x0000aaaabe1736ac in PostgresMain (argc=, argv=argv@entry=0xaaaae4cc9018, dbname=, username=) at ./build/../src/backend/tcop/postgres.c:4271 #17 0x0000aaaabe0fa768 in BackendRun (port=0xaaaae4cb88e0, port=0xaaaae4cb88e0) at ./build/../src/backend/postmaster/postmaster.c:4510 #18 BackendStartup (port=0xaaaae4cb88e0) at ./build/../src/backend/postmaster/postmaster.c:4193 #19 ServerLoop () at ./build/../src/backend/postmaster/postmaster.c:1725 #20 0x0000aaaabe0fb74c in PostmasterMain (argc=, argv=) at ./build/../src/backend/postmaster/postmaster.c:1398 #21 0x0000aaaabde8c8a8 in main (argc=5, argv=0xaaaae4c65ea0) at ./build/../src/backend/main/main.c:228 And one more thing - if it matters - it's on aarch64 architecture (graviton ec2 in AWS) Best regards, depesz