pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Ondřej Jirman <ienieghapheoghaiwida@xff.cz>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16129: Segfault in tts_virtual_materialize in logical replication worker
Date: Thu, 21 Nov 2019 18:01:52 +0100
Message-ID: <20191121170152.6vi2dly5ade6eyga@development> (raw )
In-Reply-To: <20191121163506.pfe4u3jinrjdodtx@core.my.home >
References: <20191121115326.arierrbeok6we5sv@core.my.home >
<20191121125913.4dhhwpbw67vqx37o@core.my.home >
<20191121133237.vgxoilemblaqmstu@development >
<20191121135523.aybyo7o6yzxxungd@core.my.home >
<20191121143503.nkdwgjwb7xjopeuq@development >
<20191121150716.szxqukxrtpjpckm3@core.my.home >
<20191121152732.hu6y4wzw7nkxpsvk@development >
<20191121155707.pqkgjphh65o5fapz@core.my.home >
<20191121160906.wpq5u6yh6pxv6hyo@development >
<20191121163506.pfe4u3jinrjdodtx@core.my.home >
On Thu, Nov 21, 2019 at 05:35:06PM +0100, Ondřej Jirman wrote:
>On Thu, Nov 21, 2019 at 05:09:06PM +0100, Tomas Vondra wrote:
>
>> On Thu, Nov 21, 2019 at 04:57:07PM +0100, Ondřej Jirman wrote:
>> > On Thu, Nov 21, 2019 at 04:27:32PM +0100, Tomas Vondra wrote:
>> > > On Thu, Nov 21, 2019 at 04:07:16PM +0100, Ondřej Jirman wrote:
>> > > > I've also managed to get valgrind output on the segfaulting process:
>> > > >
>> > > > https://megous.com/dl/tmp/valgrind-105524-109020.log
>> > > >
>> > > > Though it probably doesn't show much new.
>> > > >
>> > >
>> > > Is postgres actually compiled with valgrind support? What does pg_config
>> > > say?
>> >
>> > I don't see any valgrind related options in configure --help, I repackaged it
>> > just with CFLAGS set to -ggdb -Og.
>> >
>>
>> You need to use -DUSE_VALGRIND or edit pg_config_manual.h. I usually
>> just use
>>
>> CFLAGS="-DRANDOMIZE_ALLOCATED_MEMORY -DUSE_VALGRIND -O0 -ggdb"
>>
>> which does the trick. Without the USE_VALGRIND defined, we don't include
>> the valgrind instrumentation, so I suppose the previous results are bogus.
>
>Two new valgrind logs, now with -DUSE_VALGRIND:
>
>https://megous.com/dl/tmp/valgrind-172090.log
>https://megous.com/dl/tmp/valgrind-172143.log
>
Unfortunately, I only get HTTP 403 :-(
>A lots of uninitialized 1b accesses around VARATT_IS_EXTERNAL_EXPANDED.
>
>So slot->tts_values[natt] is probably uninitialized.
>
>Which is why the backtrace had a weird value there, I guess.
>
Possibly. Something is clearly wrong.
regards
--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
view thread (40+ messages) latest in thread
Message-ID: <20191121170152.6vi2dly5ade6eyga@development>
Permalink: ../20191121170152.6vi2dly5ade6eyga@development/
Also on: postgresql.org/message-id/20191121170152.6vi2dly5ade6eyga@development
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tomas.vondra@2ndquadrant.com, ienieghapheoghaiwida@xff.cz, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16129: Segfault in tts_virtual_materialize in logical replication worker
In-Reply-To: <20191121170152.6vi2dly5ade6eyga@development>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox