[mapserver-users] bug with 3.6.1 perl mapscript $map->{shapepath}

Chris Stuber imap at chesapeake.net
Mon Sep 9 17:59:40 EDT 2002



I ran across this bug with perl mapscript
where I access this variable (in a read-only capacity):

my $myshapepath = $map->{shapepath};

print "shapepath= $myshapepath\n";
$myshapepath = $map->{shapepath};
print "shapepath= $myshapepath\n";

Initially, it returns the correct value (defined in my
mapfile) but afterwards, the $map->{shapepath} becomes
corrupt, and all subsequent mapscript operations fail.

shapepath= /data   <--  after first variable is set
perl in free(): warning: chunk is already free.  <-- error
shapepath= shapepath  <-- after second variable is set

For the time being, I have hardcoded my shapepath in
my mapscript, but needs a fix.

Thanks,

Chris




More information about the mapserver-users mailing list