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

Chris Stuber imap@chesapeake.net
Mon, 9 Sep 2002 17:59:40 -0400 (EDT)



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