[mapserver-users] PHP Mapscript - debugging help

Alan Boudreault aboudreault at mapgears.com
Tue Sep 27 05:40:59 PDT 2011


It's hard to help you without details. I'd suggest to try to minimize the 
mapfile to isolate the part that produces the seg fault. You can also try the 
utility valgrind to see where the application crashes:

valgrind php myscript.php
 
Alan

On September 26, 2011 01:54:37 pm Ian Walberg wrote:
> Hello,
> 
> 
> 
> We have moved from 5.x to 6.x are chasing an issue causing a
> segmentation fault which appears to be related to the way we are
> defining the symbols.
> 
> 
> 
> If we create the map object from an empty map file (with just MAP and
> END in it) then we do not get a segmentation fault, sounds like
> something not initialized I know...
> 
> 
> 
> Any ideas on this appreciated but here is the real question (and it may
> really be a php question)  :-
> 
> 
> 
> We used to print_r the map object and then compare the one created from
> the map file and the one we had created programmatically, however with
> mapserver 6.x the print_r on the map object is empty.
> 
> 
> 
> I am sure this is basic PHP but any help would be appreciated.
> 
> 
> 
> Thanks
> 
> 
> 
> Ian

-- 
Alan Boudreault
Mapgears
http://www.mapgears.com



More information about the MapServer-users mailing list