[Mapserver-users] Segmentation Fault -- reference image -- PHP

Daniel Morissette morissette at dmsolutions.ca
Tue Dec 2 12:58:12 PST 2003


Ed Martin wrote:
> i am using the map file and map stuff from the cvs mapserver (did not 
> compile from cvs, i used the stable version 4.0.1) and when i try to get 
> the reference image using a very simple script i get the jpeg header an 
> then a segmentation fault when run in the command line and a blank page 
> when in a browser, turning off the jpeg header still gives me a blank page
> 
> here is the php file i am using
> 

It could be that your php_mapscript.so and your PHP itself were compiled 
with conflicting versions of GD and/or freetype.  It could also be that 
you have multiple versions of GD on your system and the wrong one is 
loaded at runtime.

Use phpinfo() to see if PHP has GD enabled, if it does then either 
disable the PHP GD extension or make sure that both PHP and MapScript 
use the same GD version.  Also make sure that there is only one copy of 
libgd.so and of the GD headers on your system.

Daniel
-- 
------------------------------------------------------------
  Daniel Morissette               morissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------




More information about the MapServer-users mailing list