From: Tom Lane <tgl@sss.pgh.pa.us>
To: lr@pcorp.us
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13334: PostGIS 2.2 crash in topology (array_contain_compare)
Date: Fri, 22 May 2015 18:25:23 -0400
Message-ID: <14779.1432333523@sss.pgh.pa.us> (raw)
In-Reply-To: <20150522181334.24047.38596@wrigleys.postgresql.org>
References: <20150522181334.24047.38596@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
lr@pcorp.us writes:
> Since May 9th our Debian build bot has been crashing on one of our PostGIS
> regression tests.
> I tried the same exercise on my Mingw-w64 GCC 4.8.3 (with latest PostgreSQL
> 9.5 - (dated 5/22) and also have crashing in same spot.
> I isoloated the offending query in PostGIS to this:
> with inp as ( select 'MULTIPOINT((0 -10),(5 -10))' ::geometry as g)
> select St_AsText(g), ST_Equals(totopogeom(g, 'tt', 1)::geometry, g) from
> inp;
> Which produces a gdb backtrace:
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 4252.0x3cf4]
> array_contain_compare (array1=array1@entry=0xdd94200,
> array2=array2@entry=0xde69db8, collation=<optimized out>,
> matchall=matchall@entry=1 '\001', fn_extra=0xdeac920) at arrayfuncs.c:4116
> 4116 if (isnull2)
Hm. Just guessing from the location of the crash, but I'll bet I
overlooked the case of an expanded array with no nulls, ie should be
- bool isnull2 = nulls2[j];
+ bool isnull2 = nulls2 ? nulls2[j] : false;
I'll commit that in a few minutes, please confirm whether it fixes this
for you.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, lr@pcorp.us
Subject: Re: BUG #13334: PostGIS 2.2 crash in topology (array_contain_compare)
In-Reply-To: <14779.1432333523@sss.pgh.pa.us>
References: <20150522181334.24047.38596@wrigleys.postgresql.org> <14779.1432333523@sss.pgh.pa.us>
* 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