Re: BUG #16283: crash on create index segmentation fault - Mailing list pgsql-bugs

From Tomas Vondra
Subject Re: BUG #16283: crash on create index segmentation fault
Date
Msg-id 20200228162620.pfrugnfk527bml6y@development
Whole thread Raw
In response to BUG #16283: crash on create index segmentation fault  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #16283: crash on create index segmentation fault  (Przemysław Szustak <przemyslaw.szustak@gmail.com>)
List pgsql-bugs
On Fri, Feb 28, 2020 at 02:23:21PM +0000, PG Bug reporting form wrote:
>The following bug has been logged on the website:
>
>Bug reference:      16283
>Logged by:          Przemysław Szustak
>Email address:      przemyslaw.szustak@gmail.com
>PostgreSQL version: 10.12
>Operating system:   Ubuntu 16.04.6 LTS
>Description:
>
>Postgresql crash segmentation fault on create index.
>More info https://github.com/przemyslaw-szustak/postgresql_postgis_crash.
>

This seems more like a bug in postgis, considering the last frame before
the segfault looks like this:

   #0  0x000055fb9015c45b in pfree ()
   #1  0x00007f64ee7f2b5e in ?? () from /usr/lib/postgresql/10/lib/postgis-2.5.so
   #2  0x00007f64ee7f4367 in gserialized_gist_picksplit () from /usr/lib/postgresql/10/lib/postgis-2.5.so
   #3  0x000055fb9013a272 in FunctionCall2Coll ()
   #4  0x000055fb8fd7f526 in gistSplitByKey ()

so it's a call from GiST, but the last two calls are somewhere in
PostGIS library. If I had to guess, I'd say this looks like double-free
or something like that.

Which PostGIS version are you using? Are you sure you have the latest
2.5.x version?

Also, maybe try to install packages with debug symbols, that should give
us a bit more context (parameters, line numbers, ...).

regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #16281: LN() function inaccurate at 1000th fractional digit
Next
From: Tom Lane
Date:
Subject: Re: BUG #16279: Permissions doc incorrect for pg_buffercache