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

Sean Gillies sgillies at frii.com
Fri Nov 21 16:30:50 EST 2003


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 a 
>> suggestion
>> for where I should start looking for the cause of such a segmentation 
>> 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 
improperly
accessing memory in msDrawVectorLayer()" :)

http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=488

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


--
Sean Gillies
sgillies at frii dot com
http://www.frii.com/~sgillies




More information about the mapserver-dev mailing list