[postgis-tickets] [PostGIS] #4747: Re: [PostGIS] #4745: Possible problem with new version 2.5.5

PostGIS trac at osgeo.org
Mon Aug 24 07:44:39 PDT 2020


#4747: Re: [PostGIS] #4745: Possible problem with new version 2.5.5
------------------------+---------------------------
  Reporter:  ezimanyi   |      Owner:  pramsey
      Type:  defect     |     Status:  closed
  Priority:  medium     |  Milestone:  PostGIS 3.1.0
 Component:  postgis    |    Version:  2.5.x
Resolution:  duplicate  |   Keywords:
------------------------+---------------------------

Comment (by ezimanyi):

 I am really sorry to insist :-( but I am unable to find a solution to the
 problem. I have tried the following solution
 {{{
 PG_FUNCTION_INFO_V1(call_transform);
 /**
  * Call the PostGIS transform function
  */
 PGDLLEXPORT Datum
 call_transform(PG_FUNCTION_ARGS)
 {
         Datum result = CallerFInfoFunctionCall2(
                 transform, fcinfo->flinfo, InvalidOid,
                 PG_GETARG_DATUM(0), PG_GETARG_DATUM(1));

         /* Return null on null */
         if ( ! result )
                 PG_RETURN_NULL();

         PG_RETURN_DATUM(result);
 }

 /**
  * Transform the geometry to the given SRID
  */
 static Datum
 datum_transform(Datum value, Datum srid)
 {
         PG_RETURN_DATUM(DirectFunctionCall2Coll(call_transform,
 InvalidOid, value, srid));
 }
 }}}
 and the problem persist

 {{{
 Program received signal SIGSEGV, Segmentation fault.
 0x00007f6936b051f3 in GetGenericCacheCollection
 (fcinfo=fcinfo at entry=0x7ffdfa21a110) at lwgeom_cache.c:67
 67              GenericCacheCollection* cache = fcinfo->flinfo->fn_extra;
 (gdb) bt
 #0  0x00007f6936b051f3 in GetGenericCacheCollection
 (fcinfo=fcinfo at entry=0x7ffdfa21a110) at lwgeom_cache.c:67
 #1  0x00007f6936b05262 in GetPROJ4SRSCache
 (fcinfo=fcinfo at entry=0x7ffdfa21a110) at lwgeom_cache.c:86
 #2  0x00007f6936b04ea9 in GetPROJ4Cache
 (fcinfo=fcinfo at entry=0x7ffdfa21a110) at lwgeom_transform.c:680
 #3  0x00007f6936b04f10 in GetProjectionsUsingFCInfo
 (fcinfo=fcinfo at entry=0x7ffdfa21a110, srid1=4326,
     srid2=srid2 at entry=5676, pj1=pj1 at entry=0x7ffdfa21a0c8,
 pj2=pj2 at entry=0x7ffdfa21a0d0) at lwgeom_transform.c:724
 #4  0x00007f6936af3519 in transform (fcinfo=fcinfo at entry=0x7ffdfa21a110)
 at lwgeom_transform.c:77
 #5  0x0000556dc42c7270 in CallerFInfoFunctionCall2 (func=0x7f6936af34b0
 <transform>, flinfo=<optimized out>,
     collation=<optimized out>, arg1=<optimized out>, arg2=<optimized out>)
 at fmgr.c:1098
 #6  0x00007f692b4d960d in call_transform (fcinfo=0x7ffdfa21a1a0)
     at /home/esteban/src/MobilityDB/point/src/tpoint_spatialfuncs.c:847
 #7  0x0000556dc42c69f4 in DirectFunctionCall2Coll (func=0x7f692b4d95c9
 <call_transform>, collation=<optimized out>,
     arg1=<optimized out>, arg2=<optimized out>) at fmgr.c:825
 #8  0x00007f692b4d9663 in datum_transform (value=93929958568328,
 srid=5676)
     at /home/esteban/src/MobilityDB/point/src/tpoint_spatialfuncs.c:864
 }}}
 Can you please explain what I am doing wrong ? Many many thanks for you
 valuable help.

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