Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rjamR-006XoO-HU for pgsql-bugs@arkaria.postgresql.org; Mon, 11 Mar 2024 08:13:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rjamO-00APjg-5y for pgsql-bugs@arkaria.postgresql.org; Mon, 11 Mar 2024 08:13:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rjamN-00APjY-PU for pgsql-bugs@lists.postgresql.org; Mon, 11 Mar 2024 08:13:04 +0000 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rjamK-003uuA-7X for pgsql-bugs@lists.postgresql.org; Mon, 11 Mar 2024 08:13:03 +0000 Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2d26227d508so61484371fa.2 for ; Mon, 11 Mar 2024 01:13:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataegret-com.20230601.gappssmtp.com; s=20230601; t=1710144779; x=1710749579; darn=lists.postgresql.org; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject:from:to:cc :subject:date:message-id:reply-to; bh=bO9fg5zXl9dIhLHVJlMttX22JCfMGqHi7VQXyv6//xQ=; b=w1KaZktoFQE7cas3zIOqt2extGMtApOF7OPTfv+0FEaKqdvXweS7pu+Jc6LNM1bGlh PLbnDfyrATst7/VmmIjFdS8sLNrHhTX5Stkd5rzZoJ5JcI+boLdijV4OB9XodMmP94xr UaNLYTLnpNKzTGrNP8VfGPYvlp8m+D62I9VVJa514EWNwvFXssnlQjl+JTlUGcSxLQQC ZbI8svAFSoI9qM2HfD2iRPE485iH3y32wUKNMgMk9u6IKVGIAfK5Z5cWkb/JK8lUmuux W/oE6ObTTLEFRr6FlFTmHLfOUQ1QEqd06pqGeQ4/5F9uPsgv06b/tbWrsRj/+qefa/rM Fvcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710144779; x=1710749579; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bO9fg5zXl9dIhLHVJlMttX22JCfMGqHi7VQXyv6//xQ=; b=HWnUWHdrDZQ7KDWULZg4SUlPSTPIcVmS+sFXkS5Y3+j877dB+PBYYvclS91PQfeTzE AIJig9TXj3ev0nkVjSARDV6BR8GOjkA4Y/Lvme6f6QV5XP9JA7XBvFmy7ipevt5BE8ny 9MqLpuvgnWILor4Sgcxymex0f/jLvy+9700qvqIluMATHsscqIIm8p34RA50IIj0Z6Qw nkgCLXZkWlsaRJBjrtkwe/a+h9N+Phjt5tszuXGywpC5JM9wvEharrQi4+EP5YVhkAYG er//9U8ryUNaqpn33BWvFtofIwetuioIEZkCXbvkdNIaZIyuJOlswDlHlRiPRehRyvxD lP7Q== X-Forwarded-Encrypted: i=1; AJvYcCViXjNTO0qWz8L/pZ/kbs7fJ0d+ZqIHA8u8ZShRj34PjERrT4MBpgKjIWezPGpUAT/Ht/saxO8irp2nsTL3q76XbAouK2me6P9aiP6nqhol X-Gm-Message-State: AOJu0Yxx/ViqbjbtAGjblfLGMeNUuEZrpbGXkKe6s66qDicoMgu1jCj7 YYAOny+IprS1S8x8rLRK33VDuR+f+MbD3F3t4Wdmy9P70ZdMbFVJgG1BwCM2h4/foyLQD6IYTrd Ji0Y= X-Google-Smtp-Source: AGHT+IGuEGixiML/I1gZS1Opgw59YKX71juFLIKw6pQYJ1vsqSArRJ9MI2bKBjlBkcOQr6RaXXQevg== X-Received: by 2002:a2e:94c2:0:b0:2d3:f464:2274 with SMTP id r2-20020a2e94c2000000b002d3f4642274mr3377442ljh.37.1710144778584; Mon, 11 Mar 2024 01:12:58 -0700 (PDT) Received: from Alexeys-MacBook-Pro.local ([46.233.222.113]) by smtp.googlemail.com with ESMTPSA id p15-20020a2eb98f000000b002d33a1da18csm1039715ljp.113.2024.03.11.01.12.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Mar 2024 01:12:58 -0700 (PDT) Subject: Re: BUG #18349: ERROR: invalid DSA memory alloc request size 1811939328, CONTEXT: parallel worker To: Andrei Lepikhov , Tomas Vondra , pgsql-bugs@lists.postgresql.org References: <18349-83d33dd3d0c855c3@postgresql.org> <512ef568-336e-4087-ba23-f22b006d329d@postgrespro.ru> <7a1f5e5b-632f-4cc5-8078-b18a848e8924@postgrespro.ru> <2ff6260b-8722-b301-cf7e-4e66a159778c@dataegret.com> <90092199-55cd-4fa3-a608-9a41d8e76c44@postgrespro.ru> From: Alexey Ermakov Message-ID: Date: Mon, 11 Mar 2024 14:12:57 +0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.0; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <90092199-55cd-4fa3-a608-9a41d8e76c44@postgrespro.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-03-01 18:48, Andrei Lepikhov wrote: > Could you provide a backtrace at the moment of the error? It can show > us exact place of the error without guesses. Hello. Уes, you are right about ExecParallelHashJoinSetUpBatches. Backtrace looks like this: ========parallel worker Breakpoint 1, 0x0000000000a2f1e0 in errfinish () (gdb) bt #0  0x0000000000a2f1e0 in errfinish () #1  0x0000000000515d06 in dsa_allocate_extended.cold () #2  0x000000000071abdc in ExecParallelHashJoinSetUpBatches () #3  0x000000000071bd03 in ExecParallelHashIncreaseNumBatches () #4  0x000000000071c50d in ExecParallelHashTableInsert () #5  0x000000000071c6fa in MultiExecHash () #6  0x000000000071ecd1 in ExecParallelHashJoin.lto_priv.0 () #7  0x00000000006f8dc2 in standard_ExecutorRun () #8  0x00007f860667cf75 in pgss_ExecutorRun () from /usr/pgsql-16/lib/pg_stat_statements.so #9  0x00007f8606271cad in pgsk_ExecutorRun () from /usr/pgsql-16/lib/pg_stat_kcache.so #10 0x00000000006fdd36 in ParallelQueryMain () #11 0x00000000005b1ca2 in ParallelWorkerMain () #12 0x000000000083072c in StartBackgroundWorker () #13 0x000000000083a177 in maybe_start_bgworkers.lto_priv () #14 0x000000000083b7f4 in ServerLoop.lto_priv.0 () #15 0x0000000000833b6d in PostmasterMain () #16 0x000000000051c221 in main () =======backend Breakpoint 1, 0x0000000000a2f1e0 in errfinish () (gdb) bt #0  0x0000000000a2f1e0 in errfinish () #1  0x00000000005b12e8 in HandleParallelMessages () #2  0x00000000008c74f5 in ProcessInterrupts.part.0 () #3  0x00000000008b0715 in ConditionVariableTimedSleep.part.0 () #4  0x000000000089ea85 in BarrierArriveAndWait () #5  0x000000000071b9e7 in ExecParallelHashIncreaseNumBatches () #6  0x000000000071c255 in ExecParallelHashTupleAlloc () #7  0x000000000071c449 in ExecParallelHashTableInsert () #8  0x000000000071c6fa in MultiExecHash () #9  0x000000000071ecd1 in ExecParallelHashJoin.lto_priv.0 () #10 0x0000000000718124 in ExecGather () #11 0x00000000006f8dc2 in standard_ExecutorRun () #12 0x00007f860667cf75 in pgss_ExecutorRun () from /usr/pgsql-16/lib/pg_stat_statements.so #13 0x00007f8606271cad in pgsk_ExecutorRun () from /usr/pgsql-16/lib/pg_stat_kcache.so #14 0x00000000008c8ba6 in PortalRunSelect () #15 0x00000000008ca556 in PortalRun () #16 0x00000000008cb5e0 in exec_simple_query () #17 0x00000000008cd96f in PostgresMain () #18 0x000000000083d174 in ServerLoop.lto_priv.0 () #19 0x0000000000833b6d in PostmasterMain () #20 0x000000000051c221 in main () Would you like to get any additional info from gdb (like number of batches) ? -- Thanks, Alexey Ermakov