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 1iGCST-0001xV-LA for pgsql-bugs@arkaria.postgresql.org; Fri, 04 Oct 2019 01:32:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iGCSR-00039E-RW for pgsql-bugs@arkaria.postgresql.org; Fri, 04 Oct 2019 01:32:35 +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 1iGBt4-000348-02 for pgsql-bugs@lists.postgresql.org; Fri, 04 Oct 2019 00:56:02 +0000 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iGBsx-00046L-6g for pgsql-bugs@lists.postgresql.org; Fri, 04 Oct 2019 00:56:00 +0000 Received: by mail-lj1-x230.google.com with SMTP id v24so4728991ljj.3 for ; Thu, 03 Oct 2019 17:55:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=WdIH3BQfA5G+f41XwpV1Bp4ap1JYapoznnk0jr4HWXY=; b=G9pMPeF9NSEhNu7pndq9aj37TY1EuSXnjgLAdxHnPF9DC1uBieSWlZJ71YPq9ILHg3 9p7hYiWk1DOGzglmTGUa1jRJOZKXGD1AFfWCYflfk5IVvirJI9YfkQaj+ftVOEz9bctY XF9tkgtW0ZFz+Y80pOnOulnKR2icvC3L1xoitIh9K5K+gCP/rZVNfXj2JnirZVurujI1 6JNV29gWCODZYy9cbb/gSCCW16B89sVQW2dJXFRX1z/eeeawemnEc2DFP3I99+/ZJ58M HjvsJme5kzJX8GyjaYcqrmtzNIvxU6FyWE9iF9xL11n4JO9L7wrvMcEC3qVHg4zF3ceC y/tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=WdIH3BQfA5G+f41XwpV1Bp4ap1JYapoznnk0jr4HWXY=; b=hVdbYDhvBR2e5f67Hj3up7n6iQmX8Kw7ecXTZPpC0/ZdKp/8CoOGPg9/2KZYborJrP ZHKwl/6Hb34BQhDIt/qLirmPveMVAU/ihZCTMhoRlV2jlV7KXKGe2LNdra8FulAWw6++ R9ryckBs/QcuoQ2OVlK9tR/xbUopPJCQmuKONlxyfF+d6vbVbtJY9mh55xwPR4/AkcKn 8xNnqIHjxgVHCpA0cIzzTWIlY3wRivpYA5DyqDpHBDEN5zlolXO0W2WqVxuuVpWN91/G Xa1tMF1iXtRxZAqJ0cTKyjr9rjD2UY+vZUcCdabZCdwowE0Dwdu26PCAXKFPwxO2jNVT Rc5Q== X-Gm-Message-State: APjAAAXgQqMNbUcrR8wEZ2R5OFbAo7gmkYcLCSN69ypOoh+fPplPoR0S bGdFKkIRIZ6m/QM6RlFTRi0= X-Google-Smtp-Source: APXvYqzjDP55PzpBF+fo7j5Z+4QbEXGjLrYpV21BwozddCa43hBFl2PkEDRwgkAni70p6opGl+lUbQ== X-Received: by 2002:a2e:85d2:: with SMTP id h18mr7731089ljj.18.1570150551947; Thu, 03 Oct 2019 17:55:51 -0700 (PDT) Received: from [192.168.1.2] (router.dv-dev.ru. [188.235.1.38]) by smtp.gmail.com with ESMTPSA id b20sm846390ljo.106.2019.10.03.17.55.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Oct 2019 17:55:51 -0700 (PDT) From: =?utf-8?B?0JDQvdGC0L7QvSDQktC70LDRgdC+0LI=?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: BUG #16036: Segmentation fault while doing an update Date: Fri, 4 Oct 2019 03:55:49 +0300 References: <16036-28184c90d952fb7f@postgresql.org> To: =?utf-8?B?0JDQvdGC0L7QvSDQktC70LDRgdC+0LI=?= , pgsql-bugs@lists.postgresql.org In-Reply-To: <16036-28184c90d952fb7f@postgresql.org> Message-Id: X-Mailer: Apple Mail (2.3445.104.11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Got normal backtrace: #0 GetMemoryChunkContext (pointer=3D0x0) at = ./build/../src/include/utils/memutils.h:127 #1 pfree (pointer=3D0x0) at = ./build/../src/backend/utils/mmgr/mcxt.c:1033 #2 0x0000564c3f007aca in heap_freetuple (htup=3D) at = ./build/../src/backend/access/common/heaptuple.c:1340 #3 0x0000564c3f1b5889 in tts_buffer_heap_clear (slot=3D0x564c40650298) = at ./build/../src/backend/executor/execTuples.c:652 #4 0x0000564c3f1b5cbe in ExecClearTuple (slot=3D0x564c40650298) at = ./build/../src/include/executor/tuptable.h:428 #5 ExecResetTupleTable (tupleTable=3D0x564c4068a6b0, shouldFree=3Dfalse) = at ./build/../src/backend/executor/execTuples.c:1165 #6 0x0000564c3f1abc40 in ExecEndPlan (estate=3D0x564c40689740, = planstate=3D) at = ./build/../src/backend/executor/execMain.c:1560 #7 standard_ExecutorEnd (queryDesc=3D0x564c40663d80) at = ./build/../src/backend/executor/execMain.c:496 #8 0x0000564c3f30a6e8 in ProcessQuery (plan=3D, = sourceText=3D0x564c40663c60 "update tracking.test_session set = list_position =3D list_position + 1 where id =3D $1", = params=3D0x564c40663cf0, queryEnv=3D0x0, dest=3D0x564c3f8b1c00 = , completionTag=3D0x7ffd3557c720 "UPDATE 0") at = ./build/../src/backend/tcop/pquery.c:204 #9 0x0000564c3f30a8c3 in PortalRunMulti = (portal=3Dportal@entry=3D0x564c405cb3b0, = isTopLevel=3DisTopLevel@entry=3Dtrue, = setHoldSnapshot=3DsetHoldSnapshot@entry=3Dfalse, dest=3D0x564c3f8b1c00 = , dest@entry=3D0x564c4052dc90, altdest=3D0x564c3f8b1c00 = , altdest@entry=3D0x564c4052dc90, = completionTag=3DcompletionTag@entry=3D0x7ffd3557c720 "UPDATE 0") at = ./build/../src/backend/tcop/pquery.c:1283 #10 0x0000564c3f30b4db in PortalRun (portal=3Dportal@entry=3D0x564c405cb3b= 0, count=3Dcount@entry=3D9223372036854775807, = isTopLevel=3DisTopLevel@entry=3Dtrue, run_once=3D, = dest=3Ddest@entry=3D0x564c4052dc90, = altdest=3Daltdest@entry=3D0x564c4052dc90, completionTag=3D0x7ffd3557c720 "UPDATE 0") at = ./build/../src/backend/tcop/pquery.c:796 #11 0x0000564c3f308d05 in exec_execute_message = (max_rows=3D9223372036854775807, portal_name=3D0x564c4052d880 "") at = ./build/../src/backend/tcop/postgres.c:2090 #12 PostgresMain (argc=3D, = argv=3Dargv@entry=3D0x564c40578e80, dbname=3D, = username=3D) at = ./build/../src/backend/tcop/postgres.c:4297 #13 0x0000564c3effcbe1 in BackendRun (port=3D0x564c40574ba0, = port=3D0x564c40574ba0) at = ./build/../src/backend/postmaster/postmaster.c:4431 #14 BackendStartup (port=3D0x564c40574ba0) at = ./build/../src/backend/postmaster/postmaster.c:4122 #15 ServerLoop () at ./build/../src/backend/postmaster/postmaster.c:1704 #16 0x0000564c3f28fe81 in PostmasterMain (argc=3D5, argv=3D0x564c40524b70)= at ./build/../src/backend/postmaster/postmaster.c:1377 #17 0x0000564c3effdea8 in main (argc=3D5, argv=3D0x564c40524b70) at = ./build/../src/backend/main/main.c:228 > 4 =D0=BE=D0=BA=D1=82. 2019 =D0=B3., =D0=B2 3:29, PG Bug reporting form = =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB(=D0=B0= ): >=20 > The following bug has been logged on the website: >=20 > Bug reference: 16036 > Logged by: =D0=90=D0=BD=D1=82=D0=BE=D0=BD =D0=92=D0=BB=D0=B0=D1= =81=D0=BE=D0=B2 > Email address: druidvav@gmail.com > PostgreSQL version: 12.0 > Operating system: PostgreSQL 12.0 (Debian 12.0-1.pgdg90+1) on x86_64 > Description: =20 >=20 > I am having segmentation fault like this: >=20 > 2019-10-04 02:30:02 MSK [16919-6] LOG: server process (PID 18415) was > terminated by signal 11: Segmentation fault > 2019-10-04 02:30:02 MSK [16919-7] DETAIL: Failed process was running: > update tracking.test_session set list_position =3D list_position + 1 = where id > =3D $1 > 2019-10-04 02:30:02 MSK [16919-8] LOG: terminating any other active = server > processes >=20 > When there are several queries running simultaneously. Tried to get = some > info from coredump, but that's all i have: >=20 > (gdb) bt > #0 GetMemoryChunkContext (pointer=3D0x0) at > ./build/../src/include/utils/memutils.h:127 > #1 pfree (pointer=3D0x0) at = ./build/../src/backend/utils/mmgr/mcxt.c:1033 > Backtrace stopped: Cannot access memory at address 0x7ffc990e7218 >=20