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 1if2te-0000Jx-K3 for pgsql-bugs@arkaria.postgresql.org; Wed, 11 Dec 2019 14:23:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1if2tc-00013e-Uu for pgsql-bugs@arkaria.postgresql.org; Wed, 11 Dec 2019 14:23:20 +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 1if2tc-00013X-Dx for pgsql-bugs@lists.postgresql.org; Wed, 11 Dec 2019 14:23:20 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1if2tY-0003rV-Pp for pgsql-bugs@lists.postgresql.org; Wed, 11 Dec 2019 14:23:18 +0000 Received: by mail-wm1-x342.google.com with SMTP id f4so1321098wmj.1 for ; Wed, 11 Dec 2019 06:23:16 -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=6ZMSdi1ZZotek2+TYpuWMUn6XQ6dvdy4ZCqbTIfvbDM=; b=LLTs96fUWcO8fv+LBWhmhfAr/IDqJtKScENWZpWI8pCXCVpsdgt+9O4OFSErk/6O5c 70LNiYc5pDcXaFlA9Z8szQJRYOis/6na1Hqp9zCSE1CNqw1SP/Y4cdFEvkNmASfrspdJ //4kKVk5uB0VCQ/5FA94jo7FmnzJ4MwBQ2H/tq0Ydf8BVBDzWpiueogoI7w/lQmbqhlY thpcNF8Hb9NG10MnRYomY3b3sdLTxnVhTStg0SftrdXdCqg1froJo7Y9kcdoCotK3sdG E4MOWioTHuLUMjLKXct6OgvsZYn51PFcOKhUqcwb50vDvl1Fq3shsKrE+z+zx42WlV1Z WdtA== 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=6ZMSdi1ZZotek2+TYpuWMUn6XQ6dvdy4ZCqbTIfvbDM=; b=Tpg5WpWrnawJZgA/cJdlzDU79JuoE0I+dl5AN6eMuH8AzPb1B7DzO1XqidJonZgsUS NtNvWuBDonEmTrhafZhc9nZ+DHHVoncYiMKRzq+UXGe2U/Y0BMIS+1j//YXPFhXr/tB+ u+fQXSGZNiHt5zlXwoMLaX7AZZcM27xj3tvzrqKfDeCOmoMeLJDWQP3LM7qqJMfXF/lm IR/o9Fit6PHaK0cwX108DjN4QASquawdZ0ltD9ELxTCq1AvX8ODZDYmA7b765qKHqGA2 4VwcU8gO2sCcyWwbV66A6zR9KcqNGszun66iTJvtHzCV/QmuNmEBqRjEsYQAhkfrEX6y +aJw== X-Gm-Message-State: APjAAAWl158gA3aNDG6pIORME5XphtSx6baDahH/ZZ5I3yuJRIVDN7OM aUaFW5u8uLAr9clfHqCuSmfbhI1KX8g= X-Google-Smtp-Source: APXvYqze5zR7bR0Q6IyXdZw98Bm2YtU0ksrfQ0G3fGLj8aCB84YEf9rksSYupWnJrRC9q9WbcHVAAA== X-Received: by 2002:a1c:f706:: with SMTP id v6mr50595wmh.172.1576074195280; Wed, 11 Dec 2019 06:23:15 -0800 (PST) Received: from localhost (static-84-42-175-93.net.upcbroadband.cz. [84.42.175.93]) by smtp.gmail.com with ESMTPSA id k19sm2367261wmi.42.2019.12.11.06.23.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2019 06:23:13 -0800 (PST) Date: Wed, 11 Dec 2019 15:23:10 +0100 From: Tomas Vondra To: Roman Cervenak Cc: pgsql-bugs@lists.postgresql.org Subject: Re: Memory leak (possibly connected to postgis) leading to server crash Message-ID: <20191211142310.f5qqzsgxkwt64j42@development> References: <20191206110154.v7yshqsn32zyxx4q@development> <20191206124119.qe2xaffcbkcbmve3@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 Hi, On Wed, Dec 11, 2019 at 12:09:11PM +0100, Roman Cervenak wrote: >Hi, >I am trying to do > >(gdb) p MemoryContextStats(TopMemoryContext) > >on postgres backend process, but the response is: 'TopMemoryContext' has >unknown type; cast it to its declared type > >I never debugged postgres (or anything under linux), and google is not >helpful. Can you please advise? Full output is attached. > Hmmmm, I don't recall having this issue. Can you try installing the package with debug symbols, it should be called -debug or so. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services