Mapscript ,Mono, Apache and Linux : a great story

Tamas Szekeres szekerest at GMAIL.COM
Thu Jun 15 19:14:45 EDT 2006


Xavier,

 

All of the stack traces you reported represents me that you possibly have a
layerObj reference with a previoulsy released native memory segment.

This may occur if 2 or more layerObj references exclusively own the same
native memory and one of them is disposed or goes out of scope.

By this time i know one situation causing this problem is creating the layer
using the „layerObj(mapObj map)” constructor with non null map parameter.

(classobj(layerobj) and styleObj(classObj) are also suffer from this issue).
This problem was corrected in the current CVS HEAD.

 

So it would be important to know if you have some special handling of these
objects in your application or all of these object was created by parsing
the map file.

 

The given code fragment should theoretically work, however you should check
the number of the results before calling getResult.

 

 

Tamas

 

 

   _____  

From: Xavier Mauclaire [mailto:xavier.mauclaire at geoter.fr] 
Sent: Thursday, June 15, 2006 10:55 AM
To: 'Tamas Szekeres'; MAPSERVER-USERS at LISTS.UMN.EDU
Subject: RE: [UMN_MAPSERVER-USERS] Mapscript ,Mono, Apache and Linux : a
great story

 

Hi Tamas

 

You will find next information which may help.

Thanks in advance for your help

 

The problem is that the server scratches randomly occurs. However, i saw in
the logs (if the variable MALLOC_CHECK_ equals 0) the segmentation fault
appears a lot of time in GetFeature function. I saw in the mailing List
emails concerning this problem with Java.

 

You will find next : 

    1) piece of code c#

    2) mapfile used

    3) apache2 error_log file

 

 

system informations : 

    apache 2.2 (ia upgrade apache yesterday 2.0.54 to 2.2)

    Mono 1.1.13

    mod_mono 1.1.14

    mapserver 4.8.3 with mapscript csharp

    postgresql  8.1.3

    Postgis 1.1.1

    gdal 1.3.1

    geos 2.2.1

    gd-2.0.33

    libiconv 1.9.

 

Compilation options of Mapserver

 

./configure --with-gdal=/usr/local/bin/gdal-config
--with-ogr=/usr/local/bin/gdal-config
--with-postgis=/usr/local/pgsql/bin/pg_config --with-xpm=/usr/local/lib
--with-ming --with-png --with-jpeg --with-zlib --with-libiconv--without-tiff
--with-threads --with-geos=/usr/local/bin/geos-config --with-gif --with-proj
--with-gd=/usr/local -without-wms  

 

I'm really need any help. I don't know what to do.

I'm sure that architecture choices i've done are good So it has to be
working :-)   

 

regards

 

 …..


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.0/366 - Release Date: 2006.06.15.



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.0/366 - Release Date: 2006.06.15.
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060616/1a2e33ff/attachment.html


More information about the mapserver-users mailing list