MapServer / MapServer-import

3 stars 2 forks source link

shp2img crashes on ogr_wkt.map in misc #2155

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: unicoletti Date: 2007/07/16 - 13:08 Running the msautotest suite shp2img crashes on the said map. The output of gdb follows:

unicoletti@ziggy ~/Workspace/eclipse/subversion/msautotest/misc $gdb shp2img GNU gdb 6.6-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"... Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". (gdb) run -m ogr_wkt.map -o ~/Desktop/map.png Starting program: /home/unicoletti/Workspace/eclipse/subversion/mapserver/shp2img -m ogr_wkt.map -o ~/Desktop/map.png [Thread debugging using libthread_db enabled] [New Thread -1245681968 (LWP 21515)] warning: Lowest section in /usr/lib/libicudata.so.36 is .hash at 000000b4

Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1245681968 (LWP 21515)] 0xb77e03f7 in geos::GeometryFactory::getPrecisionModel () from /usr/lib/libgeos.so.2

tbonfort commented 12 years ago

Author: unicoletti Date: 2007/07/16 - 15:19 Found something here:

http://geos.refractions.net/pipermail/geos-devel/2006-February/001739.html

This is the bug report:

http://postgis.refractions.net/bugs/bug.php?op=show&bugid=26&pos=0

so maybe we should set up the error handler?

tbonfort commented 12 years ago

Author: unicoletti Date: 2007/07/16 - 15:33 I've modified shp2img to call msSetup and the segfault has gone away.