PHP/Mapscript Crash...

Corey Puffalt cplists at GMAIL.COM
Fri Feb 25 11:38:55 EST 2005


I'm using the stock Fedora Core 2 php rpms (upgraded to the latest
updates).  According to phpinfo it was compiled with --with-gd ... the
php.ini is located in /etc/php.ini it also references any files in
/etc/php.d.  Neither php.ini nor the php.d refers to gd.so or libgd.so
anywhere as far as I can see...

Corey


On Fri, 25 Feb 2005 17:24:28 +0100, Benoît Toutain <bf.toutain at free.fr> wrote:
> No I use a debian.
> 
> Did you compile you PHP with GD library ( option --with-gd when you
> execute ./configure) (see it in the first array of phpinfo() ) ?
> Do you edit the right php.ini file (the right file is given in the first
> array when you display php information)
> 
> If you really don't find the gd shared object (gd.so or libgd.so or ....
> ) in your php.ini file and on you FC2, you must recompile PHP without
> the GD library
> 
> Corey Puffalt a écrit :
> 
> >Yes there's a GD section when viewing phpinfo();  Are you running FC2?
> >
> >Thanks,
> >Corey
> >
> >
> >On Fri, 25 Feb 2005 16:57:41 +0100, Benoît Toutain <bf.toutain at free.fr> wrote:
> >
> >
> >>Hi Corey,
> >>
> >>perhaps the name of your library file is libgd.so or something like
> >>that.... or your problem does not come from conflicts between two GD
> >>libraries. Have you got a GD section when you make a <?php phpinfo(); ?>  ?
> >>
> >>Benoît
> >>
> >>Corey Puffalt a écrit :
> >>
> >>
> >>
> >>>My php.ini doesn't appear to have an extension=gd.so line... nor do
> >>>any of the files in php.d/* do anyone know how to disable the gd
> >>>extension with the stock FC2 rpms?
> >>>
> >>>Thanks,
> >>>Corey
> >>>
> >>>
> >>>On Fri, 25 Feb 2005 09:22:59 +0100, Benoît Toutain <bf.toutain at free.fr> wrote:
> >>>
> >>>
> >>>
> >>>
> >>>>I commented the extension=gd.so line in my php.ini and restarted apache
> >>>>and now it works.
> >>>>No more crash for me too :-)
> >>>>
> >>>>Thanks a lot
> >>>>
> >>>>Best regards
> >>>>
> >>>>Benoît
> >>>>
> >>>>Constantin Cristian a écrit :
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>I got the same problem, I googled for some answers:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>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.
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>So I rebuilt my php installation and this time I used the gd that used to
> >>>>>build mapscript rather then the bundled php gd
> >>>>>and surprise... it doesn't crash anymore.
> >>>>>
> >>>>>
> >>>>>
> >>>>>----- Original Message -----
> >>>>>From: "c p" <cplists at GMAIL.COM>
> >>>>>To: <MAPSERVER-USERS at LISTS.UMN.EDU>
> >>>>>Sent: Thursday, February 24, 2005 7:47 PM
> >>>>>Subject: Re: [UMN_MAPSERVER-USERS] PHP/Mapscript Crash...
> >>>>>
> >>>>>
> >>>>>Benoit,
> >>>>>
> >>>>>Well at least there's someone else to share my pain. :P  After doing
> >>>>>some more reading today I realized I wasn't running php as a cgi but
> >>>>>as an apache DSO so I thought that must be my problem.  Is it still
> >>>>>true that PHP/Mapscript v4.4.1 still must be run as a cgi?  Anyway, I
> >>>>>reconfigured Apache to call php as a cgi but that did not resolve the
> >>>>>crash. :(
> >>>>>
> >>>>>Regards,
> >>>>>Corey
> >>>>>
> >>>>>On Thu, 24 Feb 2005 13:54:54 +0100, Benoît Toutain <bf.toutain at free.fr>
> >>>>>wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>Hi Corey,
> >>>>>>
> >>>>>>I have the same pb as you.
> >>>>>>Here is my configuration obtained with <?php
> >>>>>>dl('php_mapscript.so');phpinfo(); ?>
> >>>>>>
> >>>>>>MapServer version 4.2.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF
> >>>>>>SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
> >>>>>>SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS
> >>>>>>INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
> >>>>>>($Revision: 1.194.2.6 $ $Date: 2004/08/25 16:27:43 $)
> >>>>>>
> >>>>>>Is not there compatibity problems with freetype libraray and another
> >>>>>>one ?
> >>>>>>
> >>>>>>Hope everybody can show us the right way ;-)
> >>>>>>
> >>>>>>Best regards,
> >>>>>>
> >>>>>>Benoît
> >>>>>>
> >>>>>>c p a écrit :
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>All,
> >>>>>>>
> >>>>>>>I'm hoping someone here can help or can point me to a more appropriate
> >>>>>>>forum.  I've been having problems getting the samples that ship with
> >>>>>>>Chameleon v2.0 fully functional.  When I attempt to view one of the
> >>>>>>>sample maps I'm getting a segmentation fault:
> >>>>>>>
> >>>>>>>==> error_log <==
> >>>>>>>[Wed Feb 23 15:59:59 2005] [notice] child pid 18222 exit signal
> >>>>>>>Segmentation fault (11)
> >>>>>>>
> >>>>>>>By enabling/disabling different layers I was able to narrow the
> >>>>>>>problem down to the popplace layer and specifically the FONT, TYPE &
> >>>>>>>SIZE tags (which specify a truetype font) inside the LABEL definition.
> >>>>>>>Commenting out these three tags result in the layer displaying
> >>>>>>>(albeit with the default bitmap font).  Although I've narrowed what
> >>>>>>>triggers the crash I still have no idea how to rectify the problem.
> >>>>>>>I'm further puzzled by the fact that when I use shp2img to render the
> >>>>>>>map it works fine which seems to suggest the problem is specific to
> >>>>>>>the php/mapscript module?
> >>>>>>>
> >>>>>>>I'm running Fedora Core 2 & Mapserver v4.4.1 using the RPMs hosted at
> >>>>>>>the Mapping Hacks website (http://mappinghacks.com/rpm/).  I've
> >>>>>>>attached the chameleon.map file in case that helps.
> >>>>>>>
> >>>>>>>Any help would be appreciated.
> >>>>>>>
> >>>>>>>Thanks,
> >>>>>>>Corey
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >
> >
> >
> >
> 
>



More information about the mapserver-users mailing list