[mapserver-dev] MS 6.0.2 bug
Stephen Woodbridge
woodbri at swoodbridge.com
Sat Mar 3 19:10:57 EST 2012
Here is a valgrind report that should a couple of leaks but doesn't shed
any light on error below and one error that may/may not be related to it:
woodbri at mappy:/u/software/mapserver-6.0.2$ valgrind --leak-check=full
./mapserv
QUERY_STRING='MAP=%2Fu%2Fdata%2Ftgr2011-maps%2Ftiger2011-tmp.map&FORMAT=image%2Fpng&MAP_IMAGETYPE=agg_qn&LAYERS=Tiger_2011&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=-9803618.4071426,5152908.7732279,-9800274.287239,5155536.2960093&WIDTH=700&HEIGHT=550'
> junk.png
==21971== Memcheck, a memory error detector.
==21971== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==21971== Using LibVEX rev 1854, a library for dynamic binary translation.
==21971== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==21971== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation
framework.
==21971== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==21971== For more details, rerun with: -v
==21971==
[Sat Mar 3 19:07:01 2012].499464 msDrawMap(): rendering using
outputformat named agg_qn (AGG/PNG).
[Sat Mar 3 19:07:01 2012].583443 msDrawMap(): WMS/WFS set-up and query,
0.015s
[Sat Mar 3 19:07:10 2012].476239 msDrawMap(): Layer 2 (World Z2), 8.864s
[Sat Mar 3 19:07:10 2012].532026 msDrawMap(): Layer 3 (Forest), 0.050s
[Sat Mar 3 19:07:10 2012].838982 msDrawMap(): Layer 6 (Lakes Z2), 0.306s
[Sat Mar 3 19:07:11 2012].126799 msDrawMap(): Layer 7 (World Boundaries
Z1), 0.285s
[Sat Mar 3 19:07:13 2012].548199 msDrawMap(): Layer 16 (state), 2.421s
[Sat Mar 3 19:07:14 2012].23603 msDrawMap(): Layer 19 (place), 0.475s
[Sat Mar 3 19:07:14 2012].575893 msDrawMap(): Layer 20
(area_landmarks), 0.552s
[Sat Mar 3 19:07:14 2012].609551 msDrawMap(): Layer 21 (military), 0.033s
[Sat Mar 3 19:07:15 2012].994444 msDrawMap(): Layer 22 (area_water), 1.385s
[Sat Mar 3 19:07:16 2012].68264 msDrawMap(): Layer 23 (linear_water),
0.073s
[Sat Mar 3 19:07:16 2012].133183 msDrawMap(): Layer 26 (rails), 0.064s
[Sat Mar 3 19:07:17 2012].222080 msDrawMap(): Layer 27 (roads), 1.088s
[Sat Mar 3 19:07:17 2012].371530 msDrawMap(): Layer 28
(point_landmarks), 0.149s
[Sat Mar 3 19:07:17 2012].583520 msDrawMap(): Layer 30
(hwyshieldsnear), 0.212s
[Sat Mar 3 19:07:17 2012].586644 msDrawLabelCache():
labelcache_map_edge_buffer = 10
[Sat Mar 3 19:07:18 2012].301754 msGetMArkerSize(): General error
message. msGetMarkerSize() called on unloaded pixmap symbol, this is a
bug in mapserver itself
==21971== Conditional jump or move depends on uninitialised value(s)
==21971== at 0x4E2026: agg2RenderBitmapGlyphs(imageObj*, double,
double, labelStyleObj*, char*) (in /u/software/mapserver-6.0.2/mapserv)
==21971== by 0x44A3A0: msWriteErrorImage (in
/u/software/mapserver-6.0.2/mapserv)
==21971== by 0x4CD857: msWMSException (in
/u/software/mapserver-6.0.2/mapserv)
==21971== by 0x4D57F7: msWMSDispatch (in
/u/software/mapserver-6.0.2/mapserv)
==21971== by 0x470829: msOWSDispatch (in
/u/software/mapserver-6.0.2/mapserv)
==21971== by 0x4157DC: main (in /u/software/mapserver-6.0.2/mapserv)
[Sat Mar 3 19:07:18 2012].929013 msFreeMap(): freeing map at 0x10a1a960.
==21971==
==21971== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 10 from 1)
==21971== malloc/free: in use at exit: 217 bytes in 80 blocks.
==21971== malloc/free: 19,643 allocs, 19,563 frees, 26,189,909 bytes
allocated.
==21971== For counts of detected errors, rerun with: -v
==21971== searching for pointers to 80 not-freed blocks.
==21971== checked 4,336,552 bytes.
==21971==
==21971==
==21971== 90 bytes in 79 blocks are definitely lost in loss record 1 of 2
==21971== at 0x4C2260E: malloc (vg_replace_malloc.c:207)
==21971== by 0x85CDDF1: strdup (in /lib/libc-2.7.so)
==21971== by 0x425FD9: msStrdup (in /u/software/mapserver-6.0.2/mapserv)
==21971== by 0x4688F4: msSelectOutputFormat (in
/u/software/mapserver-6.0.2/mapserv)
==21971== by 0x468987: msPostMapParseOutputFormatSetup (in
/u/software/mapserver-6.0.2/mapserv)
==21971== by 0x438E54: loadMapInternal (in
/u/software/mapserver-6.0.2/mapserv)
==21971== by 0x43A3F7: msLoadMap (in /u/software/mapserver-6.0.2/mapserv)
==21971== by 0x414FD8: loadMap (in /u/software/mapserver-6.0.2/mapserv)
==21971== by 0x415138: main (in /u/software/mapserver-6.0.2/mapserv)
==21971==
==21971==
==21971== 127 bytes in 1 blocks are definitely lost in loss record 2 of 2
==21971== at 0x4C2260E: malloc (vg_replace_malloc.c:207)
==21971== by 0x427B60: msEncodeHTMLEntities (in
/u/software/mapserver-6.0.2/mapserv)
==21971== by 0x4CD7FD: msWMSException (in
/u/software/mapserver-6.0.2/mapserv)
==21971== by 0x4D57F7: msWMSDispatch (in
/u/software/mapserver-6.0.2/mapserv)
==21971== by 0x470829: msOWSDispatch (in
/u/software/mapserver-6.0.2/mapserv)
==21971== by 0x4157DC: main (in /u/software/mapserver-6.0.2/mapserv)
==21971==
==21971== LEAK SUMMARY:
==21971== definitely lost: 217 bytes in 80 blocks.
==21971== possibly lost: 0 bytes in 0 blocks.
==21971== still reachable: 0 bytes in 0 blocks.
==21971== suppressed: 0 bytes in 0 blocks.
On 3/3/2012 6:07 PM, Stephen Woodbridge wrote:
> I just got a weird error message:
>
> msGetmarkerSize(): General error message. msGetMarkerSize() called on
> unloaded pixmap symbol, this is a bug in mapserver itself
>
> Any idea what this is and how come we do not trap this condition and
> handle it in a benign way? Is this caused by having too many symbols
> defined?
>
> This is easy for me to reproduce with this mapfile.
>
> -Steve W.
>
> Here is the error log:
>
> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
> 15:37:20 2012].720259 msDrawMap(): rendering using outputformat named
> agg_qn (AGG/PNG)., referer:
> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>
> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
> 15:37:20 2012].720475 msDrawMap(): WMS/WFS set-up and query, 0.000s,
> referer:
> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>
> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
> 15:37:20 2012].866600 msDrawMap(): Layer 2 (World Z2), 0.146s, referer:
> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>
> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
> 15:37:20 2012].867559 msDrawMap(): Layer 3 (Forest), 0.001s, referer:
> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>
> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
> 15:37:20 2012].872924 msDrawMap(): Layer 6 (Lakes Z2), 0.005s, referer:
> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>
> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
> 15:37:20 2012].874245 msDrawMap(): Layer 7 (World Boundaries Z1),
> 0.001s, referer:
> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>
> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
> 15:37:20 2012].916075 msDrawMap(): Layer 16 (state), 0.042s, referer:
> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>
> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
> 15:37:20 2012].926136 msDrawMap(): Layer 19 (place), 0.010s, referer:
> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>
> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
> 15:37:20 2012].928578 msDrawMap(): Layer 20 (area_landmarks), 0.002s,
> referer:
> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>
> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
> 15:37:20 2012].929427 msDrawMap(): Layer 21 (military), 0.001s, referer:
> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>
> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
> 15:37:20 2012].955001 msDrawMap(): Layer 22 (area_water), 0.026s,
> referer:
> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>
> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
> 15:37:20 2012].956590 msDrawMap(): Layer 23 (linear_water), 0.002s,
> referer:
> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>
> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
> 15:37:20 2012].958226 msDrawMap(): Layer 26 (rails), 0.002s, referer:
> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>
> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
> 15:37:20 2012].992081 msDrawMap(): Layer 27 (roads), 0.034s, referer:
> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>
> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
> 15:37:20 2012].993642 msDrawMap(): Layer 28 (point_landmarks), 0.001s,
> referer:
> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>
> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
> 15:37:20 2012].998422 msDrawMap(): Layer 30 (hwyshieldsnear), 0.005s,
> referer:
> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>
> [Sat Mar 03 15:37:20 2012] [error] [client 108.20.60.11] [Sat Mar 3
> 15:37:20 2012].998479 msDrawLabelCache(): labelcache_map_edge_buffer =
> 10, referer:
> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>
> [Sat Mar 03 15:37:21 2012] [error] [client 108.20.60.11] [Sat Mar 3
> 15:37:21 2012].16760 msGetMArkerSize(): General error message.
> msGetMarkerSize() called on unloaded pixmap symbol, this is a bug in
> mapserver itself, referer:
> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>
> [Sat Mar 03 15:37:21 2012] [error] [client 108.20.60.11] [Sat Mar 3
> 15:37:21 2012].44957 msFreeMap(): freeing map at 0x20eeb20., referer:
> http://imaptools.com:8080/demo/tiger2011.html?zoom=14&lat=41.88389&lon=-88.04234&layers=B0
>
>
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
More information about the mapserver-dev
mailing list