[geos-devel] [GEOS] #923: Memory leak in GEOSNode

GEOS geos-trac at osgeo.org
Tue Sep 18 11:37:50 PDT 2018


#923: Memory leak in GEOSNode
-------------------------+---------------------------
 Reporter:  Algunenano   |       Owner:  geos-devel@…
     Type:  defect       |      Status:  new
 Priority:  major        |   Milestone:  3.7.0
Component:  Default      |     Version:  master
 Severity:  Significant  |  Resolution:
 Keywords:               |
-------------------------+---------------------------

Comment (by cvvergara):

 I am trying to reproduce the problem.
 - I had to install clang (I did not have it on my computer
 - build:
 {{{
 mkdir bild
 cd build
 cmake ..
 make -j 2 && ctest --output-on-failure
 }}}
 - the tests results
 {{{
 [100%] Built target test_geos_unit
 Test project /home/vicky/potree/geos/vicky/build
     Start 1: test_geos_unit
 1/8 Test #1: test_geos_unit ...................   Passed    0.38 sec
     Start 2: test_xmltester
 2/8 Test #2: test_xmltester ...................   Passed   11.53 sec
     Start 3: test_bug234
 3/8 Test #3: test_bug234 ......................   Passed    0.00 sec
     Start 4: test_sweep_line_speed
 4/8 Test #4: test_sweep_line_speed ............   Passed    1.97 sec
     Start 5: perf_class_sizes
 5/8 Test #5: perf_class_sizes .................   Passed    0.00 sec
     Start 6: perf_iterated_buffer
 6/8 Test #6: perf_iterated_buffer .............   Passed   12.28 sec
     Start 7: perf_rectangle_intersects
 7/8 Test #7: perf_rectangle_intersects ........   Passed    0.63 sec
     Start 8: perf_memleak_mp_prep
 8/8 Test #8: perf_memleak_mp_prep .............   Passed   11.49 sec

 100% tests passed, 0 tests failed out of 8

 Total Test time (real) =  38.29 sec
 }}}

 - doing the install:
 {{{
 sudo make install
 sudo updatedb
 }}}
 - finnaly I could execute:
 {{{
 $ clang -fsanitize=address geos_leak.c -lgeos_c -L/usr/lib
 -I/usr/include/geos
 $ ./a.out
 ./a.out: error while loading shared libraries: libgeos.so.3.8.0dev: cannot
 open shared object file: No such file or directory
 }}}
 What am I missing?

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