[postgis-tickets] [PostGIS] #5020: st_3dintersection causing core dump

PostGIS trac at osgeo.org
Thu Nov 25 16:17:23 PST 2021


#5020: st_3dintersection causing core dump
-------------------------+-------------------------------
  Reporter:  cege        |      Owner:  robe
      Type:  defect      |     Status:  closed
  Priority:  high        |  Milestone:  PostGIS SFCGAL
 Component:  sfcgal      |    Version:  3.1.x
Resolution:  worksforme  |   Keywords:  st_3dintersection
-------------------------+-------------------------------

Comment (by robe):

 Which version of PostGIS are you running?  If you are running postgis 3.1
 then the postgis-sfcgal is a separate lib file.  So it wouldn't impact
 postgis proper.  If it's 3.0 or lower then it's linked into the main
 postgis-3.so or postgis-2.5.


 You shouldn't need to touch PostGIS as I think all the sfcgal functions
 are delegated to the sfcgal library.

 I would check what ldd returns:
 here is for example an output of an old ubuntu I have

 {{{
 cd /usr/lib/postgresql/11/lib
 ldd postgis-2.5.so
 }}}

 Should output something like


 {{{
       linux-vdso.so.1 (0x00007fffad1ec000)
         liblwgeom-2.5.so.0 => /usr/lib/liblwgeom-2.5.so.0
 (0x00007f564b0ea000)
         libgeos_c.so.1 => /usr/lib/x86_64-linux-gnu/libgeos_c.so.1
 (0x00007f564aeb9000)
         libproj.so.12 => /usr/lib/x86_64-linux-gnu/libproj.so.12
 (0x00007f564ac50000)
         libjson-c.so.3 => /lib/x86_64-linux-gnu/libjson-c.so.3
 (0x00007f564aa45000)
         libprotobuf-c.so.1 => /usr/lib/x86_64-linux-gnu/libprotobuf-c.so.1
 (0x00007f564a83c000)
         libxml2.so.2 => /usr/lib/x86_64-linux-gnu/libxml2.so.2
 (0x00007f564a47b000)
         libSFCGAL.so.1 => /usr/lib/x86_64-linux-gnu/libSFCGAL.so.1
 (0x00007f5649aad000)
         libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f56496bc000)
         libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f564931e000)
         libgeos-3.7.1.so => /usr/lib/x86_64-linux-gnu/libgeos-3.7.1.so
 (0x00007f5648f7b000)
         libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
 (0x00007f5648bf2000)
         libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1
 (0x00007f56489da000)
         libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
 (0x00007f56487bb000)
         libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2
 (0x00007f56485b7000)
         libicuuc.so.60 => /usr/lib/x86_64-linux-gnu/libicuuc.so.60
 (0x00007f56481ff000)
         libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f5647fe2000)
         liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5
 (0x00007f5647dbc000)
         libCGAL_Core.so.13 => /usr/lib/x86_64-linux-gnu/libCGAL_Core.so.13
 (0x00007f5647b2c000)
         libboost_thread.so.1.65.1 => /usr/lib/x86_64-linux-
 gnu/libboost_thread.so.1.65.1 (0x00007f5647907000)
         libboost_serialization.so.1.65.1 => /usr/lib/x86_64-linux-
 gnu/libboost_serialization.so.1.65.1 (0x00007f56476c9000)
         libCGAL.so.13 => /usr/lib/x86_64-linux-gnu/libCGAL.so.13
 (0x00007f56474aa000)
         libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10
 (0x00007f5647229000)
         libgmpxx.so.4 => /usr/lib/x86_64-linux-gnu/libgmpxx.so.4
 (0x00007f5647023000)
         libmpfr.so.6 => /usr/lib/x86_64-linux-gnu/libmpfr.so.6
 (0x00007f5646da3000)
         /lib64/ld-linux-x86-64.so.2 (0x00007f564b5dd000)
         libicudata.so.60 => /usr/lib/x86_64-linux-gnu/libicudata.so.60
 (0x00007f56451fa000)
         libboost_system.so.1.65.1 => /usr/lib/x86_64-linux-
 gnu/libboost_system.so.1.65.1 (0x00007f5644ff5000)
         librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1
 (0x00007f5644ded000)
 }}}
 Note the path of below so you want to replace /usr/lib/x86_64-linux-
 gnu/libSFCGAL.so.1 (or whatever that path is with your new one)


 {{{
  libSFCGAL.so.1 => /usr/lib/x86_64-linux-gnu/libSFCGAL.so.1
 (0x00007f5649aad000)
 }}}


 If you are running postgis-3.1, then you'll probably need to check instead

 {{{
 ldd postgis_sfcgal-3.so
 }}}

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