[postgis-tickets] [PostGIS] #4770: [raster] Calling st_union() with WINDOW PARTITION crashes server

PostGIS trac at osgeo.org
Thu Oct 29 04:41:14 PDT 2020


#4770: [raster] Calling st_union() with WINDOW PARTITION crashes server
---------------------+---------------------------
  Reporter:  Robins  |      Owner:  robe
      Type:  defect  |     Status:  new
  Priority:  medium  |  Milestone:  PostGIS 3.1.0
 Component:  raster  |    Version:  3.0.x
Resolution:          |   Keywords:  st_union
---------------------+---------------------------

Comment (by robe):

 This appears to be breaking at line #2437

 https://git.osgeo.org/gitea/postgis/postgis/src/branch/master/raster/rt_pg/rtpg_mapalgebra.c#L2437


 {{{
 if (itrset == NULL) {
 }}}


 Doesn't make any sense to me how that could fail, but that is what gdb is
 telling me is the crashing line


 {{{
         itrset = palloc(sizeof(struct rt_iterator_t) * 2);
         if (itrset == NULL) {

                 rtpg_union_arg_destroy(iwr);
                 if (raster != NULL) {
                         rt_raster_destroy(raster);
                         PG_FREE_IF_COPY(pgraster, 1);
                 }

                 MemoryContextSwitchTo(oldcontext);
                 elog(ERROR, "RASTER_union_transfn: Could not allocate
 memory for iterator arguments");
                 PG_RETURN_NULL();
         }


 }}}

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