[BUG!!] Java Mapscript crashes when debugging is not set on a
MAP
Frank Warmerdam
warmerdam at POBOX.COM
Thu Apr 13 08:55:04 EDT 2006
Umberto Nicoletti wrote:
> Replying to myself...
>
> Also shp2img crashes. Running through gdb leads to a segfault at the
> following line (mapdraw.c:454)
>
> snip
>
> for(i=0; i<map->numlayers; i++) {
>
> line 454>>> if (map->debug || lp->debug)
> msGettimeofday(&starttime, NULL);
>
> if (map->layerorder[i] != -1) {
> lp = &(map->layers[ map->layerorder[i]]);
>
> /snip
>
> and in fact lp is used before it is even assigned. The change was
> committed to cvs last week on the 8th of April. I'll fix it right
> away.
Umberto,
Yikes, sorry about that. That was my error. Thanks for tracking and
fixing.
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 | President OSGF, http://osgeo.org
More information about the mapserver-dev
mailing list