[mapserver-users] Mapserv problems on Fedora
Stephen Woodbridge
woodbri at swoodbridge.com
Mon Apr 14 13:56:06 PDT 2008
Hi all,
I'm having a problem on a fedora box with mapserver. Does anyone have an
idea what this is all about or how to run down the issue? This same
setup works fine on my old Debian Sarge box.
Thanks,
-Steve
Linux maps.localhost.com 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:18:33 EDT
2007 x86_64 x86_64 x86_64 GNU/Linux
Configured like this:
./configure \
--enable-ignore-missing-data \
--enable-debug \
--with-httpd=/usr/sbin/httpd \
--with-proj=/usr \
--with-agg=/home/woodbri/work/agg-2.4 \
--with-gd \
--with-gdal \
--with-freetype \
--with-postgis \
--without-tiff \
--with-wmsclient \
--with-ogr \
--with-wfs \
./mapserv -v
MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER INPUT=EPPL7
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
When I run it I get:
[woodbri at maps mapserver-5.0.2]$ gdb ./mapserv
GNU gdb Red Hat Linux (6.6-45.fc8rh)
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 "x86_64-redhat-linux-gnu"...
Using host libthread_db library "/lib64/libthread_db.so.1".
(gdb) run
QUERY_STRING='map=%2Fu%2Fdata%2Fmaps%2Fgoogle-agg.map&layers=all&map_imagetype=agg%2Fpng24&mode=map&mapext=-88.48338019311106+41.19520127684132+-86.81661980688895+42.504798723158686&imgext=-88.48338019311106+41.19520127684132+-86.81661980688895+42.504798723158686&map_size=1050+825&imgx=525&imgy=412.5&imgxy=1050+825'
Starting program: /home/woodbri/work/mapserver-5.0.2/mapserv
QUERY_STRING='map=%2Fu%2Fdata%2Fmaps%2Fgoogle-agg.map&layers=all&map_imagetype=agg%2Fpng24&mode=map&mapext=-88.48338019311106+41.19520127684132+-86.81661980688895+42.504798723158686&imgext=-88.48338019311106+41.19520127684132+-86.81661980688895+42.504798723158686&map_size=1050+825&imgx=525&imgy=412.5&imgxy=1050+825'
[Thread debugging using libthread_db enabled]
*** glibc detected *** /home/woodbri/work/mapserver-5.0.2/mapserv:
free(): invalid next size (fast): 0x0000000000723b00 ***
[New Thread 46912508259680 (LWP 32363)]
======= Backtrace: =========
/lib64/libc.so.6[0x34dc072832]
/lib64/libc.so.6(cfree+0x8c)[0x34dc075f2c]
/home/woodbri/work/mapserver-5.0.2/mapserv[0x421c28]
/home/woodbri/work/mapserver-5.0.2/mapserv[0x42500f]
/home/woodbri/work/mapserver-5.0.2/mapserv[0x40bd6c]
/home/woodbri/work/mapserver-5.0.2/mapserv(main+0x1be)[0x40d8fe]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x34dc01e074]
/home/woodbri/work/mapserver-5.0.2/mapserv[0x40acc9]
======= Memory map: ========
[snip lots of stuff]
Program received signal SIGABRT, Aborted.
[Switching to Thread 46912508259680 (LWP 32363)]
0x00000034dc030ec5 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install atlas.x86_64
cfitsio.x86_64 compat-expat1.x86_64 curl.x86_64 e2fsprogs.x86_64
expat.x86_64 fftw2.x86_64 fontconfig.x86_64 freetype.x86_64 gcc.x86_64
gd.x86_64 gdal.x86_64 geos.x86_64 giflib.x86_64 glibc.x86_64
grass.x86_64 jasper.x86_64 keyutils.x86_64 krb5.x86_64 libICE.x86_64
libSM.x86_64 libX11.x86_64 libXau.x86_64 libXdmcp.x86_64 libXpm.x86_64
libdap.x86_64 libgeotiff.x86_64 libidn.x86_64 libjpeg.x86_64
libpng.x86_64 librx.x86_64 libselinux.x86_64 libtiff.x86_64
libxcb.x86_64 libxml2.x86_64 mysql.x86_64 ncurses.x86_64 netcdf.x86_64
nspr.x86_64 nss.x86_64 ogdi.x86_64 openssl.x86_64 postgresql.x86_64
proj.x86_64 sqlite.x86_64 unixODBC.x86_64 xerces-c.x86_64 zlib.x86_64
(gdb) where
#0 0x00000034dc030ec5 in raise () from /lib64/libc.so.6
#1 0x00000034dc032970 in abort () from /lib64/libc.so.6
#2 0x00000034dc06b0db in __libc_message () from /lib64/libc.so.6
#3 0x00000034dc072832 in _int_free () from /lib64/libc.so.6
#4 0x00000034dc075f2c in free () from /lib64/libc.so.6
#5 0x0000000000421c28 in msEvalRegex (e=0x4e9873 "\\.map$",
s=0x7232a0 "/u/data/maps/google-agg.map") at mapfile.c:90
#6 0x000000000042500f in msLoadMap (
filename=0x7232a0 "/u/data/maps/google-agg.map", new_mappath=0x0)
at mapfile.c:4529
#7 0x000000000040bd6c in loadMap () at mapserv.c:201
#8 0x000000000040d8fe in main (argc=2, argv=0x7fffa8786dc8) at
mapserv.c:1132
(gdb)
[woodbri at maps mapserver-5.0.2]$ valgrind ./mapserv
QUERY_STRING='map=%2Fu%2Fdata%2Fmaps%2Fgoogle-agg.map&layers=all&map_imagetype=agg%2Fpng24&mode=map&mapext=-88.48338019311106+41.19520127684132+-86.81661980688895+42.504798723158686&imgext=-88.48338019311106+41.19520127684132+-86.81661980688895+42.504798723158686&map_size=1050+825&imgx=525&imgy=412.5&imgxy=1050+825'
==32351== Memcheck, a memory error detector.
==32351== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==32351== Using LibVEX rev 1732, a library for dynamic binary translation.
==32351== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==32351== Using valgrind-3.2.3, a dynamic binary instrumentation framework.
==32351== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==32351== For more details, rerun with: -v
==32351==
==32351== Invalid write of size 1
==32351== at 0x32FAA03144: rx_bzero (in /usr/lib64/librx.so.0.0.0)
==32351== by 0x32FAA08786: regncomp (in /usr/lib64/librx.so.0.0.0)
==32351== by 0x421BF2: msEvalRegex (mapfile.c:84)
==32351== by 0x42500E: msLoadMap (mapfile.c:4529)
==32351== by 0x40BD6B: loadMap (mapserv.c:201)
==32351== by 0x40D8FD: main (mapserv.c:1132)
==32351== Address 0x57A8820 is 0 bytes after a block of size 64 alloc'd
==32351== at 0x4A059F6: malloc (vg_replace_malloc.c:149)
==32351== by 0x4A9E44: ms_regcomp (mapregex.c:58)
==32351== by 0x421BF2: msEvalRegex (mapfile.c:84)
==32351== by 0x42500E: msLoadMap (mapfile.c:4529)
==32351== by 0x40BD6B: loadMap (mapserv.c:201)
==32351== by 0x40D8FD: main (mapserv.c:1132)
==32351==
==32351== Invalid write of size 1
==32351== at 0x32FAA0314E: rx_bzero (in /usr/lib64/librx.so.0.0.0)
==32351== by 0x32FAA08786: regncomp (in /usr/lib64/librx.so.0.0.0)
==32351== by 0x421BF2: msEvalRegex (mapfile.c:84)
==32351== by 0x42500E: msLoadMap (mapfile.c:4529)
==32351== by 0x40BD6B: loadMap (mapserv.c:201)
==32351== by 0x40D8FD: main (mapserv.c:1132)
==32351== Address 0x57A8821 is 1 bytes after a block of size 64 alloc'd
==32351== at 0x4A059F6: malloc (vg_replace_malloc.c:149)
==32351== by 0x4A9E44: ms_regcomp (mapregex.c:58)
==32351== by 0x421BF2: msEvalRegex (mapfile.c:84)
==32351== by 0x42500E: msLoadMap (mapfile.c:4529)
==32351== by 0x40BD6B: loadMap (mapserv.c:201)
==32351== by 0x40D8FD: main (mapserv.c:1132)
valgrind: m_mallocfree.c:178 (mk_plain_bszB): Assertion 'bszB != 0' failed.
==32351== at 0x380178A7: report_and_quit (m_libcassert.c:136)
==32351== by 0x38017C0A: vgPlain_assert_fail (m_libcassert.c:200)
==32351== by 0x38020A87: vgPlain_arena_malloc (m_mallocfree.c:178)
==32351== by 0x380358E6: vgPlain_cli_malloc (replacemalloc_core.c:101)
==32351== by 0x380023A5: vgMemCheck_malloc (mc_malloc_wrappers.c:182)
==32351== by 0x38035F77: do_client_request (scheduler.c:1158)
==32351== by 0x38037681: vgPlain_scheduler (scheduler.c:869)
==32351== by 0x38053089: run_a_thread_NORETURN (syswrap-linux.c:87)
sched status:
running_tid=1
Thread 1: status = VgTs_Runnable
==32351== at 0x4A059F6: malloc (vg_replace_malloc.c:149)
==32351== by 0x32FAA04CAC: rx_parse (in /usr/lib64/librx.so.0.0.0)
==32351== by 0x32FAA08857: regncomp (in /usr/lib64/librx.so.0.0.0)
==32351== by 0x421BF2: msEvalRegex (mapfile.c:84)
==32351== by 0x42500E: msLoadMap (mapfile.c:4529)
==32351== by 0x40BD6B: loadMap (mapserv.c:201)
==32351== by 0x40D8FD: main (mapserv.c:1132)
More information about the MapServer-users
mailing list