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-00023o-0V 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-0007NJ-Rn for pgsql-bugs@arkaria.postgresql.org; Fri, 04 Oct 2019 01:35:56 +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 1iGCKd-0002MB-0R for pgsql-bugs@lists.postgresql.org; Fri, 04 Oct 2019 01:24:31 +0000 Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iGCKa-0004JZ-Pe for pgsql-bugs@lists.postgresql.org; Fri, 04 Oct 2019 01:24:29 +0000 Received: by mail-lj1-x241.google.com with SMTP id 7so4761411ljw.7 for ; Thu, 03 Oct 2019 18:24:28 -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=kVcurE3JixcWqL5V1XXqGFcGgzxisd3mJsev5NFopNA=; b=oHOH0tXKsBSG5v0gDSzR3qYhx5iw2M4TOfL+XsY5P/CnUaOJ7y42IUJC2R60sncp+7 q7Vx9fP4gu6K6se+AWRhK65hQRnJ4GDUOLpl7XHKERBG1ptBX5bXMA3tgJ9WeVlCZx9D rxIGej4dRh1o0cxRjsPvRCybEUYkJUVrXTyVKih29h35FPUxa7PVHSB2PwYA7Zykantd d5RywL4IOEUm9CreR8up1nOhhPDX323FiR3E/u9ZnQwNJNqimHD1iEViit4Ml30ZkECi 2DOg+YRoirppjHHKkNjIckbtuoxqpvOj/ferXKZ+l1XBbE2QN04EMh4uLmcsmSLSN2pY Lbgw== 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=kVcurE3JixcWqL5V1XXqGFcGgzxisd3mJsev5NFopNA=; b=R3cUdj4numr5giezwdSJ50AH8foQdnGa0/+0kDDKURNW15E9O4WD5eVvoE+51JdTIT gpG2dCdYexjw+ta5wUNIozny81FeP9c64EkZgmxweRn2QGJAJbUaNWL+TsLPEa967FEX CxzNQ3wmTgEkIPZB8fnwK+o3is0gPG53sFM1f+D/fVxNqoci1/m6edu1whxJQ5gDXQFh WhseInu+2FSqC5CsXqir28k6wCQG1ll+0FBRkG7dPztSKWS8NoDLklWU0i9F2VceW5Db 2h26MN5SXGhwWX7OPzimpIrD4d/4Ol++PupJTVQvJK2I4qXmcMp18ey8558NO/yIYgFM OQXw== X-Gm-Message-State: APjAAAUHgudlnKBAfS6afdcmo05U2Gv+IIUJdb3hLs8PQN4qBcp6d0pg zsiXF25WX4AhpAjxj8blx6d/tsQ6ixxqAQ== X-Google-Smtp-Source: APXvYqwEZVQOgZ0dTL3tphQQj4JcduB2GmWKD3suOS5+QyDGuvaPPnm82XYvPHuJedgChG9l9aHPiQ== X-Received: by 2002:a2e:9a50:: with SMTP id k16mr7442388ljj.221.1570152266860; Thu, 03 Oct 2019 18:24:26 -0700 (PDT) Received: from [192.168.1.2] (router.dv-dev.ru. [188.235.1.38]) by smtp.gmail.com with ESMTPSA id q24sm805057lfa.94.2019.10.03.18.24.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Oct 2019 18:24:25 -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:24:24 +0300 Cc: pgsql-bugs@lists.postgresql.org, PG Bug reporting form Content-Transfer-Encoding: quoted-printable Message-Id: 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 Hello, This test script always causes a crash: 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;" & 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 ); create index test_result_session_id_idx on tracking.test_result (session_id); 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. > 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.