[mapserver-users] Mapserver segfaulting

thomas bonfort thomas.bonfort at gmail.com
Wed Nov 19 02:29:52 EST 2008


the shipped gcc with 8.10 does not play nice with mapserver and gdal.
Try setting your compile optimisation flag to -O0 and -O2 to see if
this fixes the segfault.

--
thomas

On Wed, Nov 19, 2008 at 02:17, Frank Warmerdam <warmerdam at pobox.com> wrote:
> Sam Ingarfield wrote:
>>
>> G'day;
>>
>> I am having a few problems with mapserver segfaulting when it tries to
>> draw a map. Am a little stumped as to why...
>>
>> Am on Ubuntu 8.10, x64. Started with the packaged mapserver that came with
>> it (5.0.x) but have moved up in the world firstly to 5.2.0 and am now using
>> 5.3-dev from the nightly builds (this one was the 17th I think). All
>> versions have produced the same segfault.
>>
>> The call the browser makes is as follows:
>>
>> http://192.168.0.35/cgi-bin/mapserv?map=/var/www/wa_coast.map&LAYERS=possie&FORMAT=image%2Fpng&ISBASELAYER=false&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=115.9375,-32.1875,117.25,-30.875&WIDTH=256&HEIGHT=256
>> <http://192.168.0.35/cgi-bin/mapserv?map=/var/www/wa_coast.map&LAYERS=possie&FORMAT=image%2Fpng&ISBASELAYER=false&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=115.9375,-32.1875,117.25,-30.875&WIDTH=256&HEIGHT=256>
>>
>> Which returns a 500 error.
>>
>> Examination of the syslog produces:
>> Nov 19 10:13:06 spoor kernel: [130315.478944] mapserv[4986]: segfault at
>> 7fff04e39ff8 ip 00007f0efbb2ae6e sp 00007fff04e3a000 error 6 in
>> libgdal1.5.0.so.1.12.2[7f0efb9f2000+4f4000]
>
> Sam,
>
> Is the crash consistent with this request?  Do other requests succeed?
>
> It looks like it is crashing in GDAL.
>
> I would suggest that you run and run mapserv at the commandline with the
> same request.  If you can reproduce the crash that way, then try running
> it in gdb and getting a traceback.  You may want to rebuild GDAL with
> debug info though that may be a hassle if you are using a pre-packaged GDAL.
>
> What input raster formats are you using?
>
> 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    | Geospatial Programmer for Rent
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>


More information about the mapserver-users mailing list