Re: BUG #16283: crash on create index segmentation fault

From: Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>
To: przemyslaw(dot)szustak(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16283: crash on create index segmentation fault
Date: 2020-02-28 16:26:20
Message-ID: 20200228162620.pfrugnfk527bml6y@development
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)szustak(at)gmail(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2020-02-28 16:47:52 Re: BUG #16279: Permissions doc incorrect for pg_buffercache
Previous Message Tom Lane 2020-02-28 15:39:01 Re: BUG #16281: LN() function inaccurate at 1000th fractional digit