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 1ipQVS-0001NV-Eq for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Jan 2020 05:37:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ipQVP-0000u4-5B for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Jan 2020 05:37:15 +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 1ipQVN-0000tu-Vq for pgsql-hackers@lists.postgresql.org; Thu, 09 Jan 2020 05:37:14 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ipQVK-0002oh-MY for pgsql-hackers@lists.postgresql.org; Thu, 09 Jan 2020 05:37:12 +0000 Received: by mail-pg1-x541.google.com with SMTP id z124so2630034pgb.13 for ; Wed, 08 Jan 2020 21:37:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=gDoIBXqCNoQsEHzAkwXMYwXU+fuGvQLjwlen+MHrizk=; b=FjcUyxoSirf/eyLNzzmjQpZ05JrzW7oGhriEnxzZLFSs2RW72SwEfzJrXHnYBKWGPU gzgMxhNlk/CBOi4Ah8t6g/wf1RnpCn9mVjO0VItEf6zb0c15TZulCJTWQzvtA+AD3Wdo HxqBzs4i1RInk8b4MQoRU0GgfBQzYlP4cprA4= 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:user-agent; bh=gDoIBXqCNoQsEHzAkwXMYwXU+fuGvQLjwlen+MHrizk=; b=Y3f9397I3L9WiG13KmbNx08b8M9gTB8kT37OhJMXVVkBoxbaQnvmzMatgQJN32TXB1 cZzmUdzXIEi0VwmpZtz24tD+ktNgi/fC/igI7Fr9dncYsArheSMmQY73aFaNX9e53ZRa UDxe+jaiN88dNX1u3nosVgeNPMyTXZu8hpZJ97bOmeCQ5nEmTjMDKk/GNQ95lk8xweur XoSKgUzQ3jbgEkqVwqPBepZI1KVM4rvNBSo2ps+RKkaDUaPjJchsFzxciT7NRdCIHTA9 p1ja82WsZXT4jZ+S4ViVIyBb/kgSZw+KWC/HbqoepWRVO+g277S9wfOZnsiCdEAaMnI4 YUxg== X-Gm-Message-State: APjAAAV4lOmkAn5zNgZJr8FTe2GX/qBurs/PZMy31Im95SlEMStAW/zb tq3jZqSwAgLXJW4CvVe6yXdK5w== X-Google-Smtp-Source: APXvYqzusTjemKx5HQQR5FWd9jHVWzLBlUhEiTNp6SgKHp4Rw0EWbxfuEWwtAoQQbzgY89SmkPQ6cA== X-Received: by 2002:a62:1684:: with SMTP id 126mr9494462pfw.234.1578548228582; Wed, 08 Jan 2020 21:37:08 -0800 (PST) Received: from rfd.leadboat.com (108-233-125-46.lightspeed.sntcca.sbcglobal.net. [108.233.125.46]) by smtp.gmail.com with ESMTPSA id n2sm5389911pgn.71.2020.01.08.21.37.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jan 2020 21:37:07 -0800 (PST) Date: Wed, 8 Jan 2020 21:37:04 -0800 From: Noah Misch To: Amit Khandekar Cc: Amit Kapila , Alvaro Herrera from 2ndQuadrant , Andres Freund , Juan =?iso-8859-1?Q?Jos=E9_Santamar=EDa?= Flecha , PostgreSQL Hackers , Robert Haas , Thomas Munro , Tom Lane , Tomas Vondra Subject: Re: logical decoding : exceeded maxAllocatedDescs for .spill files Message-ID: <20200109053704.GA2502006@rfd.leadboat.com> References: <20200104185148.GA2270238@rfd.leadboat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Jan 08, 2020 at 02:50:53PM +0530, Amit Khandekar wrote: > On Sun, 5 Jan 2020 at 00:21, Noah Misch wrote: > > The buildfarm client can capture stack traces, but it currently doesn't do so > > for TAP test suites (search the client code for get_stack_trace). If someone > > feels like writing a fix for that, it would be a nice improvement. Perhaps, > > rather than having the client code know all the locations where core files > > might appear, failed runs should walk the test directory tree for core files? > > I think this might end up having the same code to walk the directory > spread out on multiple files. Instead, I think in the build script, in > get_stack_trace(), we can do an equivalent of "find -name > "*core*" , as against the current way in which it looks for core files > only in the specific data directory. Agreed. > Noah, is it possible to run a patch'ed build script once I submit a > patch, so that we can quickly get the stack trace ? I mean, can we do > this before getting the patch committed ? I guess, we can run the > build script with a single branch specified, right ? Yes to all questions, but it would not have helped in this case. First, v10 deletes PostgresNode base directories at the end of this test file, despite the failure[1]. Second, the stack trace was minimal: (gdb) bt #0 0xd011119c in extend_brk () from /usr/lib/libc.a(shr.o) Even so, a web search for "extend_brk" led to the answer. By default, 32-bit AIX binaries get only 256M of RAM for stack and sbrk. The new regression test used more than that, hence this crash. Setting LDR_CNTRL=MAXDATA=0x80000000 in the environment cured the crash. I've put that in the buildfarm member configuration and started a new run. (PostgreSQL documentation actually covers this problem: https://www.postgresql.org/docs/devel/installation-platform-notes.html#INSTALLATION-NOTES-AIX) [1] It has the all_tests_passing() logic in an attempt to stop this. I'm guessing it didn't help because the file failed by calling die "connection error: ...", not by reporting a failure to Test::More via ok(0) or similar.