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 1iGCVi-00023p-19 for pgsql-bugs@arkaria.postgresql.org; Fri, 04 Oct 2019 01:35:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iGCVg-0007NK-Rn for pgsql-bugs@arkaria.postgresql.org; Fri, 04 Oct 2019 01:35:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iGCMZ-0002Y1-8g for pgsql-bugs@lists.postgresql.org; Fri, 04 Oct 2019 01:26:31 +0000 Received: from mail-lj1-x244.google.com ([2a00:1450:4864:20::244]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iGCMV-0000RY-Si for pgsql-bugs@lists.postgresql.org; Fri, 04 Oct 2019 01:26:30 +0000 Received: by mail-lj1-x244.google.com with SMTP id b20so4777928ljj.5 for ; Thu, 03 Oct 2019 18:26:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=2c8aJBPChBBgFeDRUzljF5bOOoOGmZcFyFZ6ZynAsRY=; b=MG9Oro4r6/ynn6WIBWqTlAwG8pMJSIqh1cpNNCZVSNAbjLxNWIhqPxUJr7FIKSbo4f nWnscuvRvHfxxKC9Rpn/fNoWekeWU37MwxPRrFAJeo15s8nDu1/iEj3blhe3bUEJSP0z AT7i01T85jus5MBVm83jxm1jc5oid0mk1fAJaehknD4dfzQAF4QMevKxYu0lretqvvTA dU0MgU+Kga0bDC1g6bfqyFwqVWGn1j/s7mUf5xLcrcl3mcpEMmUilK0mRVlt/Jf3Ry8V ClIzHQQU10L09L7Pp56BPu8g9vHEMtWZeEdCJzUoJzU9m8Hqqv0toEuzJdc5xxUzClgY D1xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=2c8aJBPChBBgFeDRUzljF5bOOoOGmZcFyFZ6ZynAsRY=; b=VWEbJ+v8TveDp8TKJW4lDwCVlIGuW29TZFm8lrTsc9kafFD9UkADoeRRRRytF/Scl9 YGP3QQXaAydEXaWT2v7UXvDw+wIILQpeiyY+a+zYUwv9YwSLAV2YcEoYX8iTjvwhbNDE E2bThYUbkgMLo6CykwgW5HAGxFOrHQE3ejbCmIIWuriU/cxs3BMp9FHCfzBsGl9ACcEm 865HL+Waz256yngLI0QI+Jtq0IBjrQjYdPELzfWUxXP9TAOUsc1KhcDcJhWebcif9PaX 2D08fK1sobAuvcxJ4LJ6reFssSEzYIWpfeGtnaz/NQT5j6HiCTN45nV+h5Bnde8D8IZg n7Ow== X-Gm-Message-State: APjAAAVpOtFdEKbl7tkCKMoDSqKEBlxHjxsai2BxbE5FaAwt0aH7ZdoA QAP8lnf//k1sdsPe1rv2Eac= X-Google-Smtp-Source: APXvYqzWN3ZflvgbCR7T2aCFbIvDGXOekZUXZC+Klqqw3IxrgkA9+uHiKCFfdgkm+3RdL6u32WCHOg== X-Received: by 2002:a2e:9584:: with SMTP id w4mr7815374ljh.145.1570152387152; Thu, 03 Oct 2019 18:26:27 -0700 (PDT) Received: from [192.168.1.2] (router.dv-dev.ru. [188.235.1.38]) by smtp.gmail.com with ESMTPSA id k23sm904884ljk.93.2019.10.03.18.26.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Oct 2019 18:26:26 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: BUG #16036: Segmentation fault while doing an update From: =?utf-8?B?0JDQvdGC0L7QvSDQktC70LDRgdC+0LI=?= In-Reply-To: Date: Fri, 4 Oct 2019 04:26:25 +0300 Cc: pgsql-bugs@lists.postgresql.org, PG Bug reporting form Content-Transfer-Encoding: quoted-printable Message-Id: <4EA4A542-4C02-4684-B269-FC9254C60028@gmail.com> References: <16036-28184c90d952fb7f@postgresql.org> <4E1FB33C-7280-487B-B3D1-D3C247AA9E3D@anarazel.de> To: Andres Freund X-Mailer: Apple Mail (2.3445.104.11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Tried only two concurrent queries and crash is still present, so it=E2=80=99= s not about total query count. > 4 =D0=BE=D0=BA=D1=82. 2019 =D0=B3., =D0=B2 4:24, =D0=90=D0=BD=D1=82=D0=BE= =D0=BD =D0=92=D0=BB=D0=B0=D1=81=D0=BE=D0=B2 = =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB(=D0=B0): >=20 > Hello, >=20 > This test script always causes a crash: >=20 > postgres@gp-app01:~$ cat test.sh > psql -d gdeposylka -c "update tracking.test_session set list_position = =3D list_position + 1 where id =3D 85638;" & > psql -d gdeposylka -c "update tracking.test_session set list_position = =3D list_position + 1 where id =3D 85638;" & > psql -d gdeposylka -c "update tracking.test_session set list_position = =3D list_position + 1 where id =3D 85638;" & > psql -d gdeposylka -c "update tracking.test_session set list_position = =3D list_position + 1 where id =3D 85638;" & > psql -d gdeposylka -c "update tracking.test_session set list_position = =3D list_position + 1 where id =3D 85638;" & > psql -d gdeposylka -c "update tracking.test_session set list_position = =3D list_position + 1 where id =3D 85638;" & > psql -d gdeposylka -c "update tracking.test_session set list_position = =3D list_position + 1 where id =3D 85638;" & >=20 > create table tracking.test_result > ( > id serial not null > constraint test_result_pkey > primary key, > session_id integer > constraint test_result_session_id_fkey > references tracking.test_session, > reported_at timestamp(0) default now(), > courier varchar(25) not null, > tracking_number varchar(60) not null, > status varchar(25) not null, > fail_combo integer default 0 not null, > response_test text, > response_real text, > response_time real, > code smallint, > message text, > retry integer > ); >=20 > create index test_result_session_id_idx > on tracking.test_result (session_id); >=20 > Didn=E2=80=99t finish isolating bug from my database so i=E2=80=99m = not sure if it work out for you. Single queries work as usual, only = concurrent ones cause crash. >=20 >=20 >> 4 =D0=BE=D0=BA=D1=82. 2019 =D0=B3., =D0=B2 4:20, Andres Freund = =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB(=D0=B0): >>=20 >> Hi,=20 >>=20 >> On October 3, 2019 6:14:33 PM PDT, "=D0=90=D0=BD=D1=82=D0=BE=D0=BD = =D0=92=D0=BB=D0=B0=D1=81=D0=BE=D0=B2" wrote: >>> Hello, >>>=20 >>> Looks like disabling jit didn=E2=80=99t affect backtrace at all: >>>=20 >>> 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 0x0000555d7276aaca in heap_freetuple (htup=3D) at >>> ./build/../src/backend/access/common/heaptuple.c:1340 >>> #3 0x0000555d72918889 in tts_buffer_heap_clear = (slot=3D0x555d73dbb118) >>> at ./build/../src/backend/executor/execTuples.c:652 >>> #4 0x0000555d72918cbe in ExecClearTuple (slot=3D0x555d73dbb118) at >>> ./build/../src/include/executor/tuptable.h:428 >>> #5 ExecResetTupleTable (tupleTable=3D0x555d73db5a10, = shouldFree=3Dfalse) >>=20 >> That's good - I was only looking at that because of the truncated = backtrace. Did you do anything to make that work better this time? >>=20 >> Are there any details that you can provide? Schema? Any extensions in = use?=20 >>=20 >> Does the problem happen always, or just under concurrency? >>=20 >> Andres >> --=20 >> Sent from my Android device with K-9 Mail. Please excuse my brevity. >=20