Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ig7dm-0005mv-87 for pgsql-bugs@arkaria.postgresql.org; Sat, 14 Dec 2019 13:39:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ig7dj-0002kW-0F for pgsql-bugs@arkaria.postgresql.org; Sat, 14 Dec 2019 13:39:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ig7di-0002kP-BO for pgsql-bugs@lists.postgresql.org; Sat, 14 Dec 2019 13:39:22 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ig7df-00077F-52 for pgsql-bugs@lists.postgresql.org; Sat, 14 Dec 2019 13:39:20 +0000 Received: by mail-wr1-x444.google.com with SMTP id c9so1767748wrw.8 for ; Sat, 14 Dec 2019 05:39:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Szjss9K5cj0zAW15M4MWfo8V26y+/CIi9d+5KPlHaKE=; b=ieuASXbGBb2c36IYS6i58UBaYMwe9fV3H0VBexpa+2XX/BYUSldRiFXK4lRRTtM84F UisN/8dKCceD8fA6M61U3tPv5YXM3Im3EMgkXR5z2KRFb6A34Qz1OY+HwrFGnEzzZ0iA vvZcmgA49goxRIqqJhRCQ2xIjtfP4bUigGL6DtiBZ1fEpKmID6zlRXgju+bmBr34mWnU 7x3srrpZbyX1u+P4ZiqsOd8Im11gRr0jUOV1DmlwC0Z06ozf/7U8zQQAPAuiYEOv5Wgz hqPf9WwCQn3CWUMT8iCApHL4vxyydOx0ClKOnT5K3VlMeX0iK5OgJwcxd2VhsL0NA4DT NcAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Szjss9K5cj0zAW15M4MWfo8V26y+/CIi9d+5KPlHaKE=; b=s6TtC98Fx0Kub9Avd2cOc1VIj8PDfjfssFeF5Ip73sS811LmMkdefaks98ZigsQApw 7c9k4dw+gOpeyXphTSL5j4QO4oxJtBSD0O2owAguj7X6YJj/hM5iq+KdJGASVC0mmsSE EVK/7QRKAQwcvwmMWq50bOmHVPe0ALMS3/cV2KhFXkQEYW+48IMSJbuoMtamx+7xVpRk NBJfKg9XcEf161aO70shJdAcRb3XQbh4CY2E6tcS8TmnIVBqS6W7//VEqQsmdy+juMZr ezmb0H+OGcr1msxskkBfF9qrRvUEpqo4YovVr57TBeQNWMqMa0gKCgNwC5vP4FRRGn2P /Nhw== X-Gm-Message-State: APjAAAUCYj0FEO/h5kuVPSNMcIXYOYAudKM/leJYAChiTNKauxb+XR8k MOLKNJqGW+DRV2wlik0uIiHZOA== X-Google-Smtp-Source: APXvYqz/z2s9NrYjXWiyUWNbpIxMPe2xZKgdP9+AN9PKzuvkOxAFkSxDXHeDNIwvaitsFCPAo1Bprg== X-Received: by 2002:adf:f990:: with SMTP id f16mr19365060wrr.185.1576330755926; Sat, 14 Dec 2019 05:39:15 -0800 (PST) Received: from localhost (ip-86-49-253-92.net.upcbroadband.cz. [86.49.253.92]) by smtp.gmail.com with ESMTPSA id s1sm14030724wmc.23.2019.12.14.05.39.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Dec 2019 05:39:14 -0800 (PST) Date: Sat, 14 Dec 2019 14:39:12 +0100 From: Tomas Vondra To: Thomas Munro Cc: Alvaro Herrera , Andres Freund , James Coleman , PostgreSQL mailing lists Subject: Re: BUG #16104: Invalid DSA Memory Alloc Request in Parallel Hash Message-ID: <20191214133912.effa4k2pwjnmplej@development> References: <20191203170704.GA28076@alvherre.pgsql> <20191210173224.y5vaam6ep7pjmddt@development> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sat, Dec 14, 2019 at 05:01:05PM +1300, Thomas Munro wrote: >On Wed, Dec 11, 2019 at 6:32 AM Tomas Vondra > wrote: >> The annoying thing is that it's the workers that crash, and the leader >> failed to notice that, so it was waiting in WaitForParallelWorkersToExit >> forever. Not sure what the issue is. > >That's bad. Some edge case in >WaitForBackgroundWorkerShutdown()/GetBackgroundWorkerPid() that is >b0rked perhaps? Can you reproduce it, and tell us what the stack >looks like, maybe on a new thread? Sure. I'll try reproducing it and get this extra info. I was planning to do that, but then I lost the data for the report because of a silly mistake. Early next week, hopefully. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services