[geos-devel] [GEOS] #1119: Buffer memory issue

GEOS geos-trac at osgeo.org
Wed Jun 2 10:49:00 PDT 2021


#1119: Buffer memory issue
------------------------+--------------------------
 Reporter:  kalenik     |      Owner:  geos-devel@…
     Type:  defect      |     Status:  new
 Priority:  major       |  Milestone:  3.9.2
Component:  Default     |    Version:  3.9.0
 Severity:  Unassigned  |   Keywords:
------------------------+--------------------------
 I am trying to compute buffer for variety of geometries and at some point
 program (PostgreSQL with PostGIS) crashes.

 Backtrace:
 {{{
 Thread 1 (Thread 0x7fe788495ec0 (LWP 134001)):
 #0  __GI_raise (sig=sig at entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
 #1  0x00007fe78afb7864 in __GI_abort () at abort.c:79
 #2  0x00007fe78b0235ea in __malloc_assert
 (assertion=assertion at entry=0x7fe78b144858 "(old_top == initial_top (av) &&
 old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse
 (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)",
 file=file at entry=0x7fe78b140224 "malloc.c", line=line at entry=2394,
 function=function at entry=0x7fe78b1450e0 <__PRETTY_FUNCTION__.3>
 "sysmalloc") at malloc.c:298
 #3  0x00007fe78b025ce4 in sysmalloc (nb=nb at entry=8256,
 av=av at entry=0x7fe78b174ba0 <main_arena>) at malloc.c:2394
 #4  0x00007fe78b026bf8 in _int_malloc (av=av at entry=0x7fe78b174ba0
 <main_arena>, bytes=bytes at entry=8248) at malloc.c:4169
 #5  0x00007fe78b0285d4 in __GI___libc_malloc (bytes=8248) at malloc.c:3078
 #6  0x0000563cf2d27cfd in ?? ()
 #7  0x0000563cf2d27eed in ?? ()
 #8  0x0000563cf2d2d44f in repalloc ()
 #9  0x0000563cf2d4b0e7 in enlargeStringInfo ()
 #10 0x0000563cf2d09a00 in errcontext_msg ()
 #11 0x0000563cf2d0807f in errfinish ()
 #12 0x0000563cf2be6483 in quickdie ()
 #13 <signal handler called>
 #14 0x00007fe78b026bd7 in _int_malloc (av=av at entry=0x7fe78b174ba0
 <main_arena>, bytes=bytes at entry=40) at malloc.c:4144
 #15 0x00007fe78b0285d4 in __GI___libc_malloc (bytes=40) at malloc.c:3078
 #16 0x00007fe78aa6cc29 in operator new(unsigned long) () from
 /usr/lib/x86_64-linux-gnu/libstdc++.so.6
 #17 0x00007fe73cdc4a74 in
 geos::geomgraph::DirectedEdgeStar::insert(geos::geomgraph::EdgeEnd*) ()
 from /usr/local/lib/libgeos.so.3.10.0dev
 #18 0x00007fe73cdce778 in
 geos::geomgraph::Node::add(geos::geomgraph::EdgeEnd*) () from
 /usr/local/lib/libgeos.so.3.10.0dev
 #19 0x00007fe73cdd0bb0 in
 geos::geomgraph::PlanarGraph::addEdges(std::vector<geos::geomgraph::Edge*,
 std::allocator<geos::geomgraph::Edge*> > const&) () from
 /usr/local/lib/libgeos.so.3.10.0dev
 #20 0x00007fe73ce36541 in
 geos::operation::buffer::BufferBuilder::buffer(geos::geom::Geometry
 const*, double) () from /usr/local/lib/libgeos.so.3.10.0dev
 #21 0x00007fe73ce38a40 in
 geos::operation::buffer::BufferOp::bufferOriginalPrecision() () from
 /usr/local/lib/libgeos.so.3.10.0dev
 #22 0x00007fe73ce3930d in
 geos::operation::buffer::BufferOp::computeGeometry() () from
 /usr/local/lib/libgeos.so.3.10.0dev
 #23 0x00007fe73ce39362 in
 geos::operation::buffer::BufferOp::getResultGeometry(double) () from
 /usr/local/lib/libgeos.so.3.10.0dev
 #24 0x00007fe73d296a9b in GEOSBufferWithParams_r () from
 /usr/local/lib/libgeos_c.so.1
 #25 0x00007fe73d2e6f62 in buffer (fcinfo=0x563cf3f3b640) at
 lwgeom_geos.c:1128
 #26 0x00007fe73690b080 in ?? ()
 #27 0x0000563cf3f163e0 in ?? ()
 #28 0x0000563cf3bd79c0 in ?? ()
 #29 0x00007ffe2bea7697 in ?? ()
 #30 0x0000563cf3bd7810 in ?? ()
 #31 0x0000563cf3b7c4f0 in ?? ()
 #32 0x0000563cf3b7ddb0 in ?? ()
 #33 0x0000563cf3b7c4f0 in ?? ()
 #34 0x00007ffe2bea7697 in ?? ()
 #35 0x00007ffe2bea76d0 in ?? ()
 #36 0x0000563cf2a91da5 in ?? ()
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/geos/ticket/1119>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).


More information about the geos-devel mailing list