[postgis-users] Segfault when calling ST_AsGeoJSON()

Darafei "Komяpa" Praliaskouski me at komzpa.net
Thu Mar 21 06:27:01 PDT 2019


Hi,

PostGIS 2.2 is End of Life. No bugs are going to be fixed in it. Current
version is 2.5.2, please upgrade both.
GeoJSON serialization was tweaked in 2.5.0, please check if bug still
reproduces there.

On Thu, Mar 21, 2019 at 3:47 PM Micha Silver <tsvibar at gmail.com> wrote:

> I am getting a segfault when trying to display geom as GeoJSON. My
> Postgresql server is 9.4, with PostGIS 2.2 running on top. Other functions
> to display geom seem to be working fine (As_EWKT, As_Text, As_EWKB, As_KML
> etc...)
>
>
> I increased the debug level, and attached is the relevant part of my
> Postgresql log.
>
>
> Any tips are welcome.
>
> Thanks,
>
>
> Versions:
>
>
> geodata=# select version();
> version
>
> ----------------------------------------------------------------------------------------------------------------
>  PostgreSQL 9.4.21 on x86_64-unknown-linux-gnu, compiled by gcc (GCC)
> 4.8.5 20150623 (Red Hat 4.8.5-36), 64-bit
> (1 row)
> geodata=# select postgis_version();
>             postgis_version
> ---------------------------------------
>  2.2 USE_GEOS=1 USE_PROJ=1 USE_STATS=1
> (1 row)
>
>
> and this is what I get from abrt:
>
> reason:         postgres killed by SIGSEGV
> cmdline:        'postgres: geodba geodata 192.168.1.29(51278) SELECT' '' '' ''
> executable:     /usr/pgsql-9.4/bin/postgres
> package:        postgresql94-server-9.4.21-1PGDG.rhel7
> component:      postgresql94
> pid:            29785
> pwd:            /var/lib/pgsql/9.4/data
> hostname:       nekarot
> count:          4
> abrt_version:   2.1.11
> analyzer:       CCpp
> architecture:   x86_64
> event_log:
> global_pid:     29785
> kernel:         3.10.0-957.5.1.el7.x86_64
> last_occurrence: 1553166685
> os_release:     CentOS Linux release 7.6.1810 (Core)
> pkg_arch:       x86_64
> pkg_epoch:      0
> pkg_fingerprint: 1F16 D2E1 442D F0F8
> pkg_name:       postgresql94-server
> pkg_release:    1PGDG.rhel7
> pkg_vendor:     PostgreSQL Global Development Group
> pkg_version:    9.4.21
> runlevel:       N 3
> time:           Thu 21 Mar 2019 12:04:15 PM IST
> type:           CCpp
> uid:            26
> username:       postgres
> uuid:           0d18aed0d162f863b3a330db343a76b887319e0b
>
> --
> Micha Silver
> Ben Gurion Univ.
> Sde Boker, Remote Sensing Lab
> +972-523-665918
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-users



-- 
Darafei Praliaskouski
Support me: http://patreon.com/komzpa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20190321/505fe136/attachment.html>


More information about the postgis-users mailing list