MapServer / MapServer-import

3 stars 2 forks source link

memory errors associated with layer extent #873

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: sgillies@frii.com Date: 2004/09/16 - 04:53

Seeing this on Linux FC2 (i686) as well

LayerExtentTestCase.testGetPresetExtent: test layer.setExtent() and
layer.getExtent() to return preset instead of calculating extents ... ***
malloc[21272]: Deallocation of a pointer not malloced: 0x2e71c4; This could be a
double free(), or free() called with the middle of an allocated block; Try
setting environment variable MallocHelp to see tools to help debug

LayerExtentTestCase.testReBindingExtent: rebind a layer's extent ... ***
malloc[21272]: Deallocation of a pointer not malloced: 0x2e71c4; This could be a
double free(), or free() called with the middle of an allocated block; Try
setting environment variable MallocHelp to see tools to help debug

the tests pass, but we should clean these up.
tbonfort commented 12 years ago

Author: sgillies@frii.com Date: 2004/09/20 - 18:16

Made layerObj::extent immutable.  Can only be modified through
layerObj::setExtent.  This side steps the memory errors without
really limiting usage, and makes the layer extent api more like
the map extent api.