[PostGIS] #6015: Server Crash accessing Linestring as MultiLinestring
PostGIS
trac at osgeo.org
Wed Nov 12 13:40:02 PST 2025
#6015: Server Crash accessing Linestring as MultiLinestring
----------------------+---------------------------
Reporter: fomp | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 3.6.1
Component: postgis | Version: 3.6.x
Resolution: | Keywords:
----------------------+---------------------------
Description changed by fomp:
Old description:
> This code produces on a segmentation fault:
>
> CREATE TABLE geom (geo GEOMETRY(Geometry,31467));
> INSERT INTO geom VALUES ('SRID=31467;LINESTRING(1 1, 2 3, 5 4)');
> SELECT ST_SRID(ST_GeometryN(geo, 1)) FROM geom; -- returns wrong SRID
> SELECT ST_Transform(ST_GeometryN(geo, 1), 4326) FROM geom; -- CRASH!
>
> The segmentation fault happens only, when the Linestring is stored in a
> table.
>
> Linux Debian 12.12 on x86_64
> postgresql-16 (16.10-1.pgdg12+1)
> postgresql-16-postgis-3 (3.6.0+dfsg-2.pgdg12+1)
New description:
This code produces on a segmentation fault:
{{{
CREATE TABLE geom (geo GEOMETRY(Geometry,31467));
INSERT INTO geom VALUES ('SRID=31467;LINESTRING(1 1, 2 3, 5 4)');
SELECT ST_SRID(ST_GeometryN(geo, 1)) FROM geom; -- returns wrong SRID
SELECT ST_Transform(ST_GeometryN(geo, 1), 4326) FROM geom; -- CRASH!
}}}
The segmentation fault happens only, when the Linestring is stored in a
table.
Linux Debian 12.12 on x86_64
postgresql-16 (16.10-1.pgdg12+1)
postgresql-16-postgis-3 (3.6.0+dfsg-2.pgdg12+1)
--
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/6015#comment:1>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list