[PostGIS] #6066: Pg19 + topology crash on regression test

PostGIS trac at osgeo.org
Tue Apr 7 10:40:30 PDT 2026


#6066: Pg19 + topology crash on regression test
----------------------+---------------------------
  Reporter:  pramsey  |      Owner:  strk
      Type:  defect   |     Status:  assigned
  Priority:  blocker  |  Milestone:  PostGIS 3.6.2
 Component:  postgis  |    Version:  master
Resolution:           |   Keywords:
----------------------+---------------------------
Comment (by pramsey):

 Backtrace at point of crash does not provide much guidance
 {{{
 * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
   * frame #0: 0x0000000182e545e8 libsystem_kernel.dylib`__pthread_kill + 8
     frame #1: 0x0000000182e8f8d8 libsystem_pthread.dylib`pthread_kill +
 296
     frame #2: 0x0000000182d96790 libsystem_c.dylib`abort + 148
     frame #3: 0x000000010460c0f0
 postgres`ExceptionalCondition(conditionName=<unavailable>,
 fileName=<unavailable>, lineNumber=2192) at assert.c:65:2 [opt]
     frame #4: 0x00000001045ffa5c
 postgres`RelationDecrementReferenceCount(rel=<unavailable>) at
 relcache.c:2192:2 [opt] [inlined]
     frame #5: 0x00000001045ffa44
 postgres`RelationClose(relation=<unavailable>) at relcache.c:2213:2 [opt]
     frame #6: 0x000000010414c8d8
 postgres`index_close(relation=<unavailable>, lockmode=0) at
 indexam.c:185:2 [opt]
     frame #7: 0x000000010459f2dc postgres`ri_FastPathTeardown at
 ri_triggers.c:4152:4 [opt] [inlined]
     frame #8: 0x000000010459f298
 postgres`ri_FastPathEndBatch(arg=<unavailable>) at ri_triggers.c:4130:2
 [opt]
     frame #9: 0x000000010429b24c postgres`FireAfterTriggerBatchCallbacks
 at trigger.c:6861:3 [opt]
     frame #10: 0x000000010429b208
 postgres`AfterTriggerEndQuery(estate=<unavailable>) at trigger.c:5240:2
 [opt]
     frame #11: 0x00000001042c1000
 postgres`standard_ExecutorFinish(queryDesc=0x0000000c1914a900) at
 execMain.c:445:3 [opt]
     frame #12: 0x00000001042c0f18
 postgres`ExecutorFinish(queryDesc=<unavailable>) at execMain.c:413:3 [opt]
 [artificial]
     frame #13: 0x00000001044c40dc
 postgres`ProcessQuery(plan=0x0000000c190078d0, sourceText="INSERT INTO
 t5118f(g) SELECT toTopoGeom('LINESTRING(0 0, 10 0)', 't5118', 1);",
 params=0x0000000000000000, queryEnv=0x0000000000000000,
 dest=0x0000000c18ca9110, qc=0x000000016bd1d968) at pquery.c:189:2 [opt]
     frame #14: 0x00000001044c36b0
 postgres`PortalRunMulti(portal=0x0000000c19022100, isTopLevel=true,
 setHoldSnapshot=false, dest=0x0000000c18ca9110,
 altdest=0x0000000c18ca9110, qc=0x000000016bd1d968) at pquery.c:0 [opt]
     frame #15: 0x00000001044c3044
 postgres`PortalRun(portal=0x0000000c19022100, count=9223372036854775807,
 isTopLevel=<unavailable>, dest=0x0000000c18ca9110,
 altdest=0x0000000c18ca9110, qc=0x000000016bd1d968) at pquery.c:783:5 [opt]
     frame #16: 0x00000001044c2054
 postgres`exec_simple_query(query_string="INSERT INTO t5118f(g) SELECT
 toTopoGeom('LINESTRING(0 0, 10 0)', 't5118', 1);") at postgres.c:1288:10
 [opt]
     frame #17: 0x00000001044bf300
 postgres`PostgresMain(dbname=<unavailable>, username=<unavailable>) at
 postgres.c:0:24 [opt]
     frame #18: 0x00000001044bad5c
 postgres`BackendMain(startup_data=<unavailable>,
 startup_data_len=<unavailable>) at backend_startup.c:124:2 [opt]
     frame #19: 0x0000000104404ba4
 postgres`postmaster_child_launch(child_type=<unavailable>, child_slot=1,
 startup_data=0x000000016bd1e7f0, startup_data_len=24,
 client_sock=0x000000016bd1dd60) at launch_backend.c:265:3 [opt]
     frame #20: 0x0000000104408fec
 postgres`BackendStartup(client_sock=0x000000016bd1dd60) at
 postmaster.c:3627:8 [opt] [inlined]
     frame #21: 0x0000000104408f18 postgres`ServerLoop at
 postmaster.c:1722:6 [opt]
     frame #22: 0x0000000104406f9c
 postgres`PostmasterMain(argc=<unavailable>, argv=<unavailable>) at
 postmaster.c:1412:11 [opt]
     frame #23: 0x000000010431c904 postgres`main(argc=3,
 argv=0x00000001065fe870) at main.c:231:4 [opt]
     frame #24: 0x0000000182ad3da4 dyld`start + 6992

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