Opened 13 years ago

Last modified 13 years ago

#4007 new defect

mapserver segs

Reported by: winkey Owned by: sdlime
Priority: normal Milestone:
Component: MapServer C Library Version: unspecified
Severity: normal Keywords:
Cc: aboudreault

Description

i have an issue with mapserver segfaulting

MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE



==26515== Memcheck, a memory error detector
==26515== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==26515== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
==26515== Command: /usr/local/src/mapserver/mapserver//mapserv
==26515== 
==26515== Invalid read of size 8
==26515==    at 0x56F7565: OGR_DS_Destroy (ogrdatasource.cpp:88)
==26515==    by 0x4B4CD1: msConnPoolClose (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4B4DC6: msConnPoolFinalCleanup (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4300FF: msCleanup (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x40F4B2: main (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==  Address 0x903fd80 is 0 bytes inside a block of size 168 free'd
==26515==    at 0x4A05743: operator delete(void*) (vg_replace_malloc.c:346)
==26515==    by 0x445586: msOGRFileOpen(layer_obj*, char const*) (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x445A81: msOGRLayerOpen (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4527AB: msDrawVectorLayer (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4532F4: msDrawLayer (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x454963: msDrawMap (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4E4A55: msWMSGetMap (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4EB9F6: msWMSDispatch (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x49B795: msOWSDispatch (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x40F678: main (in /usr/local/src/mapserver/mapserver/mapserv)
==26515== 
==26515== Invalid read of size 8
==26515==    at 0x56F7A35: OGRDataSource::~OGRDataSource() (ogrdatasource.cpp:60)
==26515==    by 0x4B4CD1: msConnPoolClose (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4B4DC6: msConnPoolFinalCleanup (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4300FF: msCleanup (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x40F4B2: main (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==  Address 0x903fd90 is 16 bytes inside a block of size 168 free'd
==26515==    at 0x4A05743: operator delete(void*) (vg_replace_malloc.c:346)
==26515==    by 0x445586: msOGRFileOpen(layer_obj*, char const*) (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x445A81: msOGRLayerOpen (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4527AB: msDrawVectorLayer (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4532F4: msDrawLayer (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x454963: msDrawMap (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4E4A55: msWMSGetMap (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4EB9F6: msWMSDispatch (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x49B795: msOWSDispatch (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x40F678: main (in /usr/local/src/mapserver/mapserver/mapserv)
==26515== 
==26515== Invalid write of size 8
==26515==    at 0x56F7A43: OGRDataSource::~OGRDataSource() (ogrdatasource.cpp:57)
==26515==    by 0x4B4CD1: msConnPoolClose (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4B4DC6: msConnPoolFinalCleanup (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4300FF: msCleanup (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x40F4B2: main (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==  Address 0x903fd80 is 0 bytes inside a block of size 168 free'd
==26515==    at 0x4A05743: operator delete(void*) (vg_replace_malloc.c:346)
==26515==    by 0x445586: msOGRFileOpen(layer_obj*, char const*) (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x445A81: msOGRLayerOpen (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4527AB: msDrawVectorLayer (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4532F4: msDrawLayer (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x454963: msDrawMap (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4E4A55: msWMSGetMap (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4EB9F6: msWMSDispatch (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x49B795: msOWSDispatch (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x40F678: main (in /usr/local/src/mapserver/mapserver/mapserv)
==26515== 
==26515== Invalid read of size 8
==26515==    at 0x56F7A60: OGRDataSource::~OGRDataSource() (ogrdatasource.cpp:66)
==26515==    by 0x4B4CD1: msConnPoolClose (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4B4DC6: msConnPoolFinalCleanup (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4300FF: msCleanup (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x40F4B2: main (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==  Address 0x903fd88 is 8 bytes inside a block of size 168 free'd
==26515==    at 0x4A05743: operator delete(void*) (vg_replace_malloc.c:346)
==26515==    by 0x445586: msOGRFileOpen(layer_obj*, char const*) (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x445A81: msOGRLayerOpen (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4527AB: msDrawVectorLayer (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4532F4: msDrawLayer (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x454963: msDrawMap (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4E4A55: msWMSGetMap (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4EB9F6: msWMSDispatch (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x49B795: msOWSDispatch (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x40F678: main (in /usr/local/src/mapserver/mapserver/mapserv)
==26515== 
==26515== Invalid free() / delete / delete[]
==26515==    at 0x4A05743: operator delete(void*) (vg_replace_malloc.c:346)
==26515==    by 0x4B4CD1: msConnPoolClose (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4B4DC6: msConnPoolFinalCleanup (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4300FF: msCleanup (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x40F4B2: main (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==  Address 0x903fd80 is 0 bytes inside a block of size 168 free'd
==26515==    at 0x4A05743: operator delete(void*) (vg_replace_malloc.c:346)
==26515==    by 0x445586: msOGRFileOpen(layer_obj*, char const*) (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x445A81: msOGRLayerOpen (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4527AB: msDrawVectorLayer (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4532F4: msDrawLayer (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x454963: msDrawMap (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4E4A55: msWMSGetMap (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x4EB9F6: msWMSDispatch (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x49B795: msOWSDispatch (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==    by 0x40F678: main (in /usr/local/src/mapserver/mapserver/mapserv)
==26515== 
[Wed Aug 31 14:34:39 2011].601915 loadParams() QUERY_STRING: LAYERS=fiveday&FORMAT=image%2Fpng&TRANSPARENCY=TRUE&GUTTER=30&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=-8766409.8992,1252344.2704,-7514065.628,2504688.5416&WIDTH=256&HEIGHT=256
[Wed Aug 31 14:34:40 2011].340346 msLoadMap(): 0.684s
[Wed Aug 31 14:34:40 2011].894578 msOGRFileOpen(PG:dbname=fiveday)...
[Wed Aug 31 14:34:40 2011].899961 OGROPen(PG:dbname=fiveday)
[Wed Aug 31 14:34:41 2011].258397 msConnPoolRegister(markers,PG:dbname=fiveday,0x903fd80)
[Wed Aug 31 14:34:41 2011].263722 msOGRFileOpen(): OGR error. GetLayer(wkb_geometry FROM getstyledpoints USING UNIQUE validtime USING srid=4326) failed for OGR connection `PG:dbname=fiveday'.
[Wed Aug 31 14:34:41 2011].275296 msDrawMap(): Image handling error. Failed to draw layer named 'markers'.
[Wed Aug 31 14:34:41 2011].487528 mapserv request processing time (msLoadMap not incl.): 1.117s
[Wed Aug 31 14:34:41 2011].490646 msFreeMap(): freeing map at 0x8ee5ad0.
[Wed Aug 31 14:34:41 2011].503472 freeLayer(): freeing layer at 0x8eeef20.
[Wed Aug 31 14:34:41 2011].511656 freeLayer(): freeing layer at 0x8ef1340.
[Wed Aug 31 14:34:41 2011].513128 msPostGISLayerIsOpen called.
[Wed Aug 31 14:34:41 2011].514927 freeLayer(): freeing layer at 0x8ef3aa0.
[Wed Aug 31 14:34:41 2011].515030 msPostGISLayerIsOpen called.
[Wed Aug 31 14:34:41 2011].515196 freeLayer(): freeing layer at 0x8ef6160.
[Wed Aug 31 14:34:41 2011].515291 msPostGISLayerIsOpen called.
[Wed Aug 31 14:34:41 2011].521037 mapserv total execution time: 1.934s
[Wed Aug 31 14:34:41 2011].522539 msConnPoolClose(): Closing connection PG:dbname=fiveday even though ref_count=1.
[Wed Aug 31 14:34:41 2011].523098 msConnPoolClose(): General error message. Closing connection PG:dbname=fiveday even though ref_count=1.
[Wed Aug 31 14:34:41 2011].523628 msConnPoolClose(PG:dbname=fiveday,0x903fd80)
==26515== Invalid free() / delete / delete[]
==26515==    at 0x4A05A31: free (vg_replace_malloc.c:325)
==26515==    by 0x31D090B01A: ??? (in /lib64/libc-2.5.so)
==26515==    by 0x31D090AC11: ??? (in /lib64/libc-2.5.so)
==26515==    by 0x48024E8: _vgnU_freeres (vg_preloaded.c:62)
==26515==    by 0x31D0833374: exit (in /lib64/libc-2.5.so)
==26515==    by 0x40F4B9: main (in /usr/local/src/mapserver/mapserver/mapserv)
==26515==  Address 0x75c6908 is not stack'd, malloc'd or (recently) free'd
==26515== 
==26515== 
==26515== HEAP SUMMARY:
==26515==     in use at exit: 1,005 bytes in 25 blocks
==26515==   total heap usage: 4,694 allocs, 4,671 frees, 1,715,556 bytes allocated
==26515== 
==26515== LEAK SUMMARY:
==26515==    definitely lost: 150 bytes in 2 blocks
==26515==    indirectly lost: 16 bytes in 1 blocks
==26515==      possibly lost: 0 bytes in 0 blocks
==26515==    still reachable: 839 bytes in 22 blocks
==26515==         suppressed: 0 bytes in 0 blocks
==26515== Rerun with --leak-check=full to see details of leaked memory
==26515== 
==26515== For counts of detected and suppressed errors, rerun with: -v
==26515== ERROR SUMMARY: 6 errors from 6 contexts (suppressed: 147 from 12)

Change History (1)

comment:1 by aboudreault, 13 years ago

Cc: aboudreault added
Note: See TracTickets for help on using tickets.