[postgis-tickets] [PostGIS] #4331: ST_3DMakeBox crashes on POINT EMPTY

PostGIS trac at osgeo.org
Mon Feb 25 03:25:51 PST 2019


#4331: ST_3DMakeBox crashes on POINT EMPTY
----------------------+---------------------------
  Reporter:  robe     |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  PostGIS 3.0.0
 Component:  postgis  |    Version:  2.4.x
Resolution:           |   Keywords:
----------------------+---------------------------

Comment (by Algunenano):

 This works fine in `12593.f4cdc57bc` and crashes in `12604.b608efe32`:
 {{{
 #0  0x00007f36f88fcd7f in raise () from /usr/lib/libc.so.6
 #1  0x00007f36f88e7672 in abort () from /usr/lib/libc.so.6
 #2  0x00007f36f88e7548 in __assert_fail_base.cold.0 () from
 /usr/lib/libc.so.6
 #3  0x00007f36f88f5396 in __assert_fail () from /usr/lib/libc.so.6
 #4  0x00007f34e8095e8e in getPoint3dz_p (pa=<optimized out>, n=0,
 op=<optimized out>) at /usr/src/debug/postgis/liblwgeom/lwgeom_api.c:222
 #5  BOX3D_construct (fcinfo=<optimized out>) at lwgeom_box3d.c:570
 #6  0x000055e6cf6523e0 in ExecInterpExpr (state=<optimized out>,
 econtext=<optimized out>, isnull=0x7ffe49cff5df) at execExprInterp.c:678
 #7  0x000055e6cf71e5ae in ExecEvalExprSwitchContext (state=<optimized
 out>, econtext=0x7ffe49cff1c0, isNull=0x50e7494944bc0000)
     at ../../../../src/include/executor/executor.h:303
 #8  evaluate_expr (expr=<optimized out>, result_type=85661,
 result_typmod=-1, result_collation=0) at clauses.c:4970
 #9  0x000055e6cf71dddf in evaluate_function (funcid=85900,
 result_type=<optimized out>, result_typmod=-1, result_collid=0,
     input_collid=0, args=0x55e6d13d9408, context=<optimized out>,
 funcvariadic=<optimized out>, func_tuple=<optimized out>)
 }}}

 I can bisect it to a specific commit if necessary

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