Bug #488 (Re: [Mapserver-dev] perplexing segfault while drawing a line layer)

Steve Lime steve.lime at dnr.state.mn.us
Tue Nov 25 12:46:05 EST 2003

What's the layer def look like?

>>> Sean Gillies <sgillies at frii.com> 11/21/2003 3:30:50 PM >>>
On Thursday, November 20, 2003, at 02:33  PM, Daniel Morissette wrote:

> Sean Gillies wrote:
>> I'm unfamiliar with the line and polygon drawing code.  Anyone have
>> suggestion
>> for where I should start looking for the cause of such a
>> fault?
> Perhaps I misunderstood your question, but I would say run gdb on 
> shp2img, that will take you to the location of the seg. fault.  If 
> you're lucky the source of the problem will be obvious. If it looks 
> like a memory management problem then try Valgrind.
> I suspect however that you know all that already and that's not the 
> answer you were looking for.

I was looking for something like: "see if freeFeatureList() is 
accessing memory in msDrawVectorLayer()" :)


freeFeatureList is being called with a NULL shpcache as its argument.
This shouldn't be happening since the layer in question has one class
and one style ... therefore there should be no shape caching and no
freeing of a shape cache.


Sean Gillies
sgillies at frii dot com

Mapserver-dev mailing list
Mapserver-dev at lists.gis.umn.edu 

More information about the mapserver-dev mailing list