[Mapserver-users] mapObj clone() method problem

Sean Gillies sgillies at frii.com
Fri Apr 23 11:17:57 PDT 2004


Frank Warmerdam wrote:

> Alexandros Chimarios wrote:
> 
>> Dear Frank,
>> I have upgraded to Mapserver 4.2beta version and the clone method 
>> suceeded ... but only for the first time. When I try to clone a mapObj 
>> for second time I get a segmentation fault error.
>>
> 
> Hi,
> 
> I run your map through the map copy code, and sure enough there were 
> lots of
> problems.  I have committed a bunch of patches to mapcopy.c in the 
> development
> trunk (not 4.2).  While it was clean after that, I don't really trust the
> map copying code.  It is poorly tested, and likely buggy in other venues.
> 
> I am not sure if it is worth merging the mapcopy.c changes back into 4.2
> before final release or not. I will leave that to Daniel.
> 
> Best regards,
> 

There is an issue in Bugzilla regarding the problems with clone()

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

I sorta wish I'd never begun work on cloning a mapObj ... it's just too
fragile.  MapServer wasn't really intended to be used like this and it's
been a difficult stretch.

That said, I'd like to hear more about your cloning use cases.

cheers,
Sean






More information about the MapServer-users mailing list