Opened 6 years ago

Closed 6 years ago

#4240 closed defect (worksforme)

Getting segmentation faults

Reported by: robe Owned by: pramsey
Priority: low Milestone: PostGIS 2.5.2
Component: postgis Version: 2.5.x -- EOL
Keywords: Cc:

Description

This might be just my computer not seeing the same issue on bots.

My pg log shows this

2018-11-18 00:21:20.010 EST [5172] ERROR:  Number of iterations must be between 1 and 5 : LWGEOM_ChaikinSmoothing
2018-11-18 00:21:20.010 EST [5172] STATEMENT:  SELECT '2', ST_astext(ST_ChaikinSmoothing('LINESTRING(0 0, 8 8, 0 16)',10));
2018-11-18 00:21:20.010 EST [5172] ERROR:  Number of iterations must be between 1 and 5 : LWGEOM_ChaikinSmoothing
2018-11-18 00:21:20.010 EST [5172] STATEMENT:  SELECT '3', ST_astext(ST_ChaikinSmoothing('LINESTRING(0 0, 8 8, 0 16)',0));
2018-11-18 00:21:21.090 EST [14872] LOG:  could not receive data from client: An existing connection was forcibly closed by the remote host.

I tried against both mingw and VC++ build and I'm getting segmentation faults all over the place.

 subdivide ..sh: line 1:  4500 Segmentation fault      psql -v "VERBOSITY=terse" -v "tmpfile='/projects/postgis/tmp/2.5_pg11w64/pgis_reg_tmp//test_117_tmp'" -v "scriptdir=C:/MING64~1/projects/POSTGR~1/rel/PG11W6~2/share/contrib/postgis-2.5" -v "regdir=/projects/postgis/branches/2.5/regress" -tXA postgis_reg < subdivide.sql > /projects/postgis/tmp/2.5_pg11w64/test_117_out 2>&1
 failed (diff expected obtained: /projects/postgis/tmp/2.5_pg11w64/test_117_diff)
 voronoi .. ok
 minimum_clearance .. ok
 oriented_envelope .. ok
 regress_brin_index ..sh: line 1: 12568 Segmentation fault      psql -v "VERBOSITY=terse" -v "tmpfile='/projects/postgis/tmp/2.5_pg11w64/pgis_reg_tmp//test_121_tmp'" -v "scriptdir=C:/MING64~1/projects/POSTGR~1/rel/PG11W6~2/share/contrib/postgis-2.5" -v "regdir=/projects/postgis/branches/2.5/regress" -tXA postgis_reg < regress_brin_index.sql > /projects/postgis/tmp/2.5_pg11w64/test_121_out 2>&1
 failed (diff expected obtained: /projects/postgis/tmp/2.5_pg11w64/test_121_diff)
 regress_brin_index_3d ..sh: line 1: 14820 Segmentation fault      psql -v "VERBOSITY=terse" -v "tmpfile='/projects/postgis/tmp/2.5_pg11w64/pgis_reg_tmp//test_122_tmp'" -v "scriptdir=C:/MING64~1/projects/POSTGR~1/rel/PG11W6~2/share/contrib/postgis-2.5" -v "regdir=/projects/postgis/branches/2.5/regress" -tXA postgis_reg < regress_brin_index_3d.sql > /projects/postgis/tmp/2.5_pg11w64/test_122_out 2>&1
 failed (diff expected obtained: /projects/postgis/tmp/2.5_pg11w64/test_122_diff)
 regress_brin_index_geography ..sh: line 1:  5328 Segmentation fault      psql -v "VERBOSITY=terse" -v "tmpfile='/projects/postgis/tmp/2.5_pg11w64/pgis_reg_tmp//test_123_tmp'" -v "scriptdir=C:/MING64~1/projects/POSTGR~1/rel/PG11W6~2/share/contrib/postgis-2.5" -v "regdir=/projects/postgis/branches/2.5/regress" -tXA postgis_reg < regress_brin_index_geography.sql > /projects/postgis/tmp/2.5_pg11w64/test_123_out 2>&1
 failed (diff expected obtained: /projects/postgis/tmp/2.5_pg11w64/test_123_diff)
 regress_spgist_index_2d ..sh: line 1:  8904 Segmentation fault      psql -v "VERBOSITY=terse" -v "tmpfile='/projects/postgis/tmp/2.5_pg11w64/pgis_reg_tmp//test_124_tmp'" -v "scriptdir=C:/MING64~1/projects/POSTGR~1/rel/PG11W6~2/share/contrib/postgis-2.5" -v "regdir=/projects/postgis/branches/2.5/regress" -tXA postgis_reg < regress_spgist_index_2d.sql > /projects/postgis/tmp/2.5_pg11w64/test_124_out 2>&1
 failed (diff expected obtained: /projects/postgis/tmp/2.5_pg11w64/test_124_diff)
 regress_spgist_index_3d ..sh: line 1: 10132 Segmentation fault      psql -v "VERBOSITY=terse" -v "tmpfile='/projects/postgis/tmp/2.5_pg11w64/pgis_reg_tmp//test_125_tmp'" -v "scriptdir=C:/MING64~1/projects/POSTGR~1/rel/PG11W6~2/share/contrib/postgis-2.5" -v "regdir=/projects/postgis/branches/2.5/regress" -tXA postgis_reg < regress_spgist_index_3d.sql > /projects/postgis/tmp/2.5_pg11w64/test_125_out 2>&1
 failed (diff expected obtained: /projects/postgis/tmp/2.5_pg11w64/test_125_diff)

Anyway I'll investigate further - might just be something up with my pc.

Change History (4)

comment:1 by robe, 6 years ago

here is diff from subdivide

--- subdivide_expected	2018-10-29 19:26:20.791422600 -0400
+++ /projects/postgis/tmp/2.5_pg11w64/test_117_out	2018-11-18 03:28:22.625588600 -0500
@@ -4,6 +4,3 @@
 ERROR:  lwgeom_subdivide: cannot subdivide to fewer than 5 vertices per output
 #3522|POINT(1 1)
 #3744|1600000000000000
-4|29321996468.6|29321996468.6|1857|256
-#4211|0.00008316000
-#4217|0.00002463668

I think it might be something screwy with my psql though because when I run the tests from pgAdmin works fine.

comment:2 by robe, 6 years ago

Priority: blockerlow

I'm guessing it's something wrong with my pg11 compile. pg10 seems fine aside from my usual issue with proj. will downgrade this issue as I'm sure its probably local to me.

comment:3 by robe, 6 years ago

Milestone: PostGIS 2.5.1PostGIS 2.5.2

comment:4 by pramsey, 6 years ago

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.