mapserver segfaults on x68_64 intel xeon
Alessandro Pasotti
ale.pas at TISCALI.IT
Fri Mar 2 09:09:37 PST 2007
Il 16:46, venerdì 2 marzo 2007, Umberto Nicoletti ha scritto:
> Did you reconfigure with --enable-debug?
>
> After that run shp2img in gdb (or xxgdb if it still exists) and put a
> breakpoint in msOGRLayerGetAutoStyle. Then proceed with the step
> instruction until it crashes. You should be able to inspect the local
> variables and see what values were passed to GetRGBFromString.
Ok, I've found the problem:
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1950
I applied this patch and now it works, any chance it will be fixed in future
releases?
linux:~/webgis # diff mapogr.cpp mapserver-4.10.1/mapogr.cpp
2318a2319,2326
> // ABP: patch
> const char *pszColor;
> pszColor = poBrushStyle->BackColor(bIsNull);
> if (!bIsNull &&
poBrushStyle->GetRGBFromString(pszColor,r,g,b,t))
> {
> MS_INIT_COLOR(c->styles[0].backgroundcolor, r, g, b);
> }
> /*
2324a2333
> */
Still remains a mistery to me why it works without patches on my local
machine.
Thanks Umberto for pointing me in the right direction.
--
Alessandro Pasotti
itOpen - "Open Solutions for the Net Age"
w3: www.itopen.it
Linux User# 167502
More information about the MapServer-users
mailing list