[PostGIS] #6061: segmentation fault when loading geometries

PostGIS trac at osgeo.org
Wed Apr 8 06:32:46 PDT 2026


#6061: segmentation fault when loading geometries
----------------------------+---------------------------
  Reporter:  maxsynytsky1v  |      Owner:  pramsey
      Type:  defect         |     Status:  new
  Priority:  medium         |  Milestone:  PostGIS 3.6.2
 Component:  postgis        |    Version:  3.6.x
Resolution:                 |   Keywords:
----------------------------+---------------------------
Comment (by robe):

 Here is the backtrace:


 {{{
 #0  0x00007fff9380b91e in strncat () from C:\WINDOWS\System32\msvcrt.dll
 #1  0x00007ffef562e04d in lwmessage_truncate (
     str=0x229f2af816d "MULTIPOLYGON  ((( 15.46475600 46.64170500,
 15.46562100 46.64115900, 15.46663100 46.64050400, 15.46761900 46.63984000,
 15.46857900 46.63916700, 15.46950600 46.63848600, 15.47039300 46.63779600,
 15.4712"...,
     startpos=startpos at entry=0, endpos=1131024,
 maxlength=maxlength at entry=40, truncdirection=truncdirection at entry=0) at
 lwutil.c:299
 #2  0x00007ffef55fb5b0 in pg_parser_errhint
 (lwg_parser_result=lwg_parser_result at entry=0x9b3f7ff1f0) at
 lwgeom_pg.c:290
 #3  0x00007ffef55b0cf8 in LWGEOM_in (fcinfo=0x9b3f7ff290) at
 lwgeom_inout.c:164
 #4  0x00007ff7a5d70433 in InputFunctionCallSafe (flinfo=0x229f0959580,
     str=0x229f2af816d "MULTIPOLYGON  ((( 15.46475600 46.64170500,
 15.46562100 46.64115900, 15.46663100 46.64050400, 15.46761900 46.63984000,
 15.46857900 46.63916700, 15.46950600 46.63848600, 15.47039300 46.63779600,
 15.4712"...,
     typioparam=<optimized out>, typmod=<optimized out>, escontext=0x0,
 result=0x229f09511c0) at fmgr.c:1607
 #5  0x00007ff7a59a2070 in CopyFromTextLikeOneRow (is_csv=false,
 nulls=0x229f09511c8, values=<optimized out>, econtext=<optimized out>,
 cstate=0x229f0965c48) at copyfromparse.c:1029
 #6  CopyFromTextOneRow (cstate=<optimized out>, econtext=<optimized out>,
 values=0x229f0951158, nulls=0x229f09511c8) at copyfromparse.c:919
 #7  0x00007ff7a59a1d7b in NextCopyFrom (cstate=cstate at entry=0x229f0965c48,
 econtext=econtext at entry=0x229f0952fc0, values=0x229f0951158,
 nulls=0x229f09511c8) at copyfromparse.c:890
 #8  0x00007ff7a599e78a in CopyFrom (cstate=cstate at entry=0x229f0965c48) at
 copyfrom.c:1149
 #9  0x00007ff7a599d2be in DoCopy (pstate=0x229f08c9bd0,
 stmt=0x229f0949d50, stmt_location=0, stmt_len=183, processed=0x9b3f7ff6e8)
 at copy.c:306
 #10 0x00007ff7a5c1ea0e in standard_ProcessUtility (pstmt=0x229f0949e20,
     queryString=0x229f0948d60 "COPY foo.gf_active_play_area
 (objectid,ap_id,play_id,playname,basin_id,basin_name,description,playbasin_name,age_base_ma,age_base_name,age_top_ma,age_top_name,mapped,shape)
 FROM STDIN;",
     readOnlyTree=<optimized out>, context=PROCESS_UTILITY_TOPLEVEL,
 params=0x0, queryEnv=0x0, dest=0x229f094a1e0, qc=0x9b3f7ff9a0) at
 utility.c:738
 #11 0x00007ff7a5c1c79b in PortalRunUtility
 (portal=portal at entry=0x229f0912c80, pstmt=pstmt at entry=0x229f0949e20,
 isTopLevel=isTopLevel at entry=true,
 setHoldSnapshot=setHoldSnapshot at entry=false, dest=0x229f094a1e0,
 qc=0x9b3f7ff9a0)
     at pquery.c:1153
 #12 0x00007ff7a5c1c8f7 in PortalRunMulti
 (portal=portal at entry=0x229f0912c80, isTopLevel=isTopLevel at entry=true,
 setHoldSnapshot=setHoldSnapshot at entry=false,
 dest=dest at entry=0x229f094a1e0, altdest=altdest at entry=0x229f094a1e0,
     qc=qc at entry=0x9b3f7ff9a0) at pquery.c:1317
 #13 0x00007ff7a5c1cf8f in PortalRun (portal=portal at entry=0x229f0912c80,
 count=count at entry=2147483647, isTopLevel=isTopLevel at entry=true,
 dest=dest at entry=0x229f094a1e0, altdest=altdest at entry=0x229f094a1e0,
 qc=qc at entry=0x9b3f7ff9a0)
     at pquery.c:788
 #14 0x00007ff7a5c14b91 in exec_simple_query (
     query_string=0x229f0948d60 "COPY foo.gf_active_play_area
 (objectid,ap_id,play_id,playname,basin_id,basin_name,description,playbasin_name,age_base_ma,age_base_name,age_top_ma,age_top_name,mapped,shape)
 FROM STDIN;")
     at postgres.c:1273
 #15 0x00007ff7a5c19f77 in PostgresMain (dbname=0x229f08c5b10 "crashdb",
 username=0x229f0556778 "postgres") at postgres.c:4766
 #16 0x00007ff7a5c10be9 in BackendMain (startup_data=<optimized out>,
 startup_data_len=<optimized out>) at backend_startup.c:124
 #17 0x00007ff7a5b5f346 in SubPostmasterMain (argc=argc at entry=3,
 argv=argv at entry=0x229f0551980) at launch_backend.c:713
 #18 0x00007ff7a5e3d32d in main (argc=3, argv=0x229f0551980) at main.c:214

 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/6061#comment:13>
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