Crash bug - with fix

Ned Harding nharding at EXTENDTHEREACH.COM
Thu Sep 15 16:39:42 EDT 2005


Hey Frank,

Thanks for posting that.

 I would vote that it goes in 4.6.X because the fix is so low impact and the
crash is so bad...  Blowing out the stack is impossible to recover from.

Thanks,

Ned.

-----Original Message-----
From: fwarmerdam at gmail.com [mailto:fwarmerdam at gmail.com] On Behalf Of Frank
Warmerdam
Sent: Thursday, September 15, 2005 1:17 PM
To: Ned Harding
Cc: MAPSERVER-DEV at lists.umn.edu
Subject: Re: [UMN_MAPSERVER-DEV] Crash bug - with fix

On 9/15/05, Ned Harding <nharding at extendthereach.com> wrote:
>  
> 
> freeFeatureList (mapfile.c) frees a list recursively, so if you have a 
> lot of things on the list it causes a stack fault.  This happens (on 
> my machine) with a line layer with overlays with about 4000 objects.  
> It should be changed to free in a loop so that it doesn't blow out the 
> stack.  The old code and new fixed code is below.  Can someone review 
> it and check it in to CVS for me?  Note my loop does change the order 
> of freeing from last->first to first->last.  It doesn't appear to matter
in this situation.

Ned, 

I have applied the patch in 4.7.  If you think it is critical enough to go
into 4.6.2 (should such a thing be released) then let me know.

Best regards,
-- 
---------------------------------------+--------------------------------
---------------------------------------+------
I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20050915/730b2188/attachment.html


More information about the mapserver-dev mailing list