Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxcOt-0001Wi-8c for pgsql-bugs@arkaria.postgresql.org; Thu, 28 Sep 2017 17:15:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dxcOs-0005T4-Ri for pgsql-bugs@arkaria.postgresql.org; Thu, 28 Sep 2017 17:15:02 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dxcOA-0004E8-Nq for pgsql-bugs@postgresql.org; Thu, 28 Sep 2017 17:14:18 +0000 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dxcO3-0004R4-CE for pgsql-bugs@postgresql.org; Thu, 28 Sep 2017 17:14:17 +0000 Received: by mail-wm0-x22e.google.com with SMTP id i124so3616486wmf.3 for ; Thu, 28 Sep 2017 10:14:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=rcjG3PggeceNtxttwq/pT2V+Pal2MNTlYPpYH/Vgudo=; b=XFgVkFgJGUiTyvdeSYbzBaAdJm3LxxJ6lOb669svgP5JegFIxFFIIe4P8jkQsPGrxX aJgNSDcUWoJcA2oSrcvFN17noHLnBbKiMafuviKT6XVtZd1odg3ULI/c393TEjVB/5xO Os/nxiKzexQ0vhBKh7O/y2CjSTX3Tk2M+YyVDeOjCPgCTNZ43VIBGiJhjk69IwvrJadx GV5txsVKCYjTII0hHsEyLNCP3KSo1QDb4Y9CuB0aHlUevuvnE/tlxmCFUD+2NyfxArpm m3zZo0fWuLCIOQAWAVTTyUEtSl1CJ6F1KNJhRlmIjcO7XYJjVrx+9QDqLyaEUGzSFzJ+ 6ehA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=rcjG3PggeceNtxttwq/pT2V+Pal2MNTlYPpYH/Vgudo=; b=FF7LGUAfMN0glwahc6KrNh3vIq6dI34xM92zf+wVtRgcD+7ASbO2Raqs8JGuzqKUHA zPrQuPzg9b70nPlNTGyaIJAEjP6iYRIMNnOq28G1XPmClBY/Fd3x8URUbowC8S+anR95 ZLmcH5dWz42cUdoYA4YyWw5mceqxYHzo1rVHz7N6wkacfkI+rhLb0g/WRgb38RhS0UNO qK0EVc/D9PMf6J6PAj12VtSHvrlzTjJqhKuiLTkpqNpEu3Uo35VsDFC+wE1ecfa/9E8X 1eJwdP/t16hepUIm71iVF6kCDfAZ7jhptPOPWKXcu1af8drvyZuOzb2fCEQL8ua/XICE 3jwA== X-Gm-Message-State: AHPjjUhRYAzI3iu824wQ6jIoB6oVuA/W6BvU1lRy04mBZ1ujFsvBeCKv Wbj6os10DiDZu05DbR/J/RHEWhTho6Y6fTYTeLwnBZezGKNLLkDY/LiKuV/fnkkwbO/T1uy8Slr YISZRl9hqt0wKYsXQl7NeYgHWEBtSXTeLo/7F2l4lu/R6QEz1RI7A6aon9Eh7PJxNv6ybSq6q6r nS5C8a X-Google-Smtp-Source: AOwi7QBa2G8PZEdMw/aOSs1aIR3xbJcvTOlLA5/6jV7VGgcb9gZ4683tnxTlbFwtaViUz6HdVMAi4g== X-Received: by 10.80.145.40 with SMTP id e37mr6500213eda.245.1506618849491; Thu, 28 Sep 2017 10:14:09 -0700 (PDT) Received: from [10.137.2.19] (ip-78-102-97-226.net.upcbroadband.cz. [78.102.97.226]) by smtp.gmail.com with ESMTPSA id i6sm1959416edk.3.2017.09.28.10.14.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Sep 2017 10:14:08 -0700 (PDT) Subject: Re: BUG #14835: Postgres crashed To: nicola.contu@gmail.com, pgsql-bugs@postgresql.org References: <20170928154651.28557.52625@wrigleys.postgresql.org> From: Tomas Vondra Message-ID: Date: Thu, 28 Sep 2017 19:14:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20170928154651.28557.52625@wrigleys.postgresql.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 09/28/2017 05:46 PM, nicola.contu@gmail.com wrote: > The following bug has been logged on the website: > > Bug reference: 14835 > Logged by: Nicola Contu > Email address: nicola.contu@gmail.com > PostgreSQL version: 9.6.5 > Operating system: Centos 6.9 > Description: > > Hello, > after upgrading to postgres 9.6.5 in the last 3weeks we had the db crashing > three times for the same reason : > > SELECT: double free or corruption (!prev): 0x0000000001f4b440 *** > ======= Backtrace: ========= > /lib64/libc.so.6[0x3eee675dee] > /lib64/libc.so.6[0x3eee678c80] > > > ======= Memory map: ======== > 00400000-009ff000 r-xp 00000000 fd:00 6431324 > /usr/local/pgsql9.6.5/bin/postgres Yes, this seems like a bug, but it's quite unclear if it's in PostgreSQL or due to a bug in some other library. Please, make sure next time a core dump is generated, so that you can inspect it, and generate backtrace for example. You'll probably have to do this: 1) install debuginfo packages (likely using debuginfo-install) 2) enable core files (you'll probably have to set limits in limits.conf and set core_pattern), see [1] for details It might also be useful to know what query was being executed at the time of the crash - that should be logged into the PostgreSQL log. [1] http://man7.org/linux/man-pages/man5/core.5.html regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs