malloc() problem using PHP/MapScript

Ben Sims benjaminsims at YAHOO.COM
Thu Oct 5 08:02:00 PDT 2006


Thanks for the help Frank. Since you mentioned it was most likely a library conflict, I decide to abandon the various configuration options I had been trying, listed from various installation tutorials. I tried ./configure ´--with-php=/php/' and nothing else and it worked first time.

I guess the lesson is, dont bother trying to put in options unless you are sure you need them.

Thanks again for putting my on the right path,

Benjamin

----- Original Message ----
From: Frank Warmerdam <warmerdam at POBOX.COM>
To: MAPSERVER-USERS at LISTS.UMN.EDU
Sent: Thursday, 5 October, 2006 3:34:24 AM
Subject: Re: [UMN_MAPSERVER-USERS] malloc() problem using PHP/MapScript


Ben Sims wrote:
> Update:
> 
> The error has changed slightly after some minor application changes. I have also experimented with running a test script using the same code through the gdb debugger. If it might give anybody any clues, here is the backtrace:
> 
> *** glibc detected *** free(): invalid next size (fast): 0x08e825c0 ***

Ben,

My understanding is that PHP MapScript is prone to conflicting versions of
some libraries between PHP and MapScript (such as GD, etc) which might
be responsible.  I see you are building against FWTools.  That works
most smoothly when you can depend quite entirely on the FWTools
libraries which includes stuff like libz, libpng, etc that may conflict
in version with stuff already on your system (and linked into PHP).

I would encourage you to try FGS (http://www.maptools.org) as a way of
getting prebuilt binaries with PHP MapScript support.  If that fixes
your problem but is inadequate for your needs for some other reason,
I think you would be best off building all the FWTools components you
need yourself.

Sorry...

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 OSGeo, http://osgeo.org


	
	
		
___________________________________________________________ 
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine 
http://uk.docs.yahoo.com/nowyoucan.html



More information about the MapServer-users mailing list