Mapserver, MONO and apache a great story

Tamas Szekeres szekerest at GMAIL.COM
Thu Jun 7 14:03:22 EDT 2007


Could you post some code from your application to see how the
mapscript objects are created and used?
Are you planning to upgrade to the most recent version?

Best regards,

Tamas


2007/6/7, Xavier Mauclaire <xavier.mauclaire at geoter.fr>:
>
>
> Hi every body
>
>
> i developped a web site using Mapscript and mono 1.1.13.
> This site works well if only one user uses it. When a second user is
> connected,  the site scratches with the folowing error :
>
> At this time, this situtation is rather uncomfortable
>
> I would be very happy to get help !!
>
> Thanks in advance
>
>
>
>
> My configuration is the following
>
> Mono (1.1.13)
> gtk 2.8
> Apache (2.2.?) with de mod_mono compiled for it mod_mono 1.1.14
> MApscript (4.8.3).
> Postgres 8.1.3 and Postgis 1.1.1
> Geos 2.2.1
> GDAL 1.3.1
> Ming 0.30
> Proj4 (4.4.9)
> Libiconv 1.9.1
> gd-2.0.33
>
> All these programs has been compiler on the computer
>
> #!/bin/sh
> ./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-gif --with-proj
> --with-gd=/usr/local -without-wms
>
>
>
> The error :
>
>
> =================================================================
> Got a SIGSEGV while executing native code. This usually indicates
> a fatal error in the mono runtime or one of the native libraries
> used by your application.
> =================================================================
>
> Stacktrace:
>
> in (wrapper managed-to-native) mapscriptPINVOKE:mapObj_draw
> (System.Runtime.InteropServices.HandleRef) <0x4>
> in (wrapper managed-to-native) mapscriptPINVOKE:mapObj_draw
> (System.Runtime.InteropServices.HandleRef) <0xffffff81>
> in mapObj:draw () <0x21>
> in siteflash.GetFlashMap:ProcessRequest
> (System.Web.HttpContext) <0x1095>
> in <Pipeline>__1:MoveNext () <0x10a0>
> in System.Web.HttpApplication:Tick () <0x1f>
> in System.Web.HttpApplication:Start (object) <0x37>
> in
> System.Web.HttpApplication:System.Web.IHttpAsyncHandler.BeginProcessRequest
> (System.Web.HttpContext,System.AsyncCallback,object) <0x68>
> in System.Web.HttpRuntime:RealProcessRequest (object)
> <0x1ab>
> in System.Web.HttpRuntime:ProcessRequest
> (System.Web.HttpWorkerRequest) <0x2c>
> in Mono.WebServer.MonoWorkerRequest:ProcessRequest () <0xa>
> in Mono.WebServer.BaseApplicationHost:ProcessRequest
> (Mono.WebServer.MonoWorkerRequest) <0x43>
> in Mono.WebServer.ModMonoApplicationHost:ProcessRequest
> (int,string,string,string,string,string,int,string,int,string,string[],string[])
> <0xdc>
> in (wrapper remoting-invoke-with-check)
> Mono.WebServer.ModMonoApplicationHost:ProcessRequest
> (int,string,string,string,string,string,int,string,int,string,string[],string[])
> <0xffffff0a>
> in (wrapper xdomain-dispatch)
> Mono.WebServer.ModMonoApplicationHost:ProcessRequest
> (object,byte[]&,byte[]&,int,string,string,string,string,string,int,string,int,string,string[],string[])
> <0xfffedaf6>
> in (wrapper xdomain-invoke)
> Mono.WebServer.ModMonoApplicationHost:ProcessRequest
> (int,string,string,string,string,string,int,string,int,string,string[],string[])
> <0xffffff6a>
> in (wrapper remoting-invoke-with-check)
> Mono.WebServer.ModMonoApplicationHost:ProcessRequest
> (int,string,string,string,string,string,int,string,int,string,string[],string[])
> <0xffca8c14>
> in Mono.WebServer.ModMonoWorker:InnerRun (object) <0x404>
> in Mono.WebServer.ModMonoWorker:Run (object) <0x17>
> in (wrapper delegate-invoke)
> System.MulticastDelegate:invoke_void_object (object)
> <0xffffff95>
> in (wrapper runtime-invoke)
> System.Object:runtime_invoke_void_object
> (object,intptr,intptr,intptr) <0xc7371b5f>
>
> Native stacktrace:
>
> /usr/lib/pkgconfig/../../bin/mono(mono_handle_native_sigsegv+0xbb)
> [0x814ee2b]
>  /usr/lib/pkgconfig/../../bin/mono [0x813b2cf]
>  [0xffffe440]
>  /usr/local/pgsql/lib/libpq.so.4(PQreset+0x1a) [0x41f2ea9a]
> /usr/local/lib/libmapscript.so(msPOSTGISLayerWhichShapes+0x724)
> [0x4193fd24]
>  /usr/local/lib/libmapscript.so(msLayerWhichShapes+0x39)
> [0x418f6e19]
>  /usr/local/lib/libmapscript.so(msDrawVectorLayer+0x19c)
> [0x418fec8c]
>  /usr/local/lib/libmapscript.so(msDrawLayer+0x90)
> [0x418ff150]
>  /usr/local/lib/libmapscript.so(msDrawMap+0x2fd)
> [0x418ffe1d]
>  /usr/local/lib/libmapscript.so(CSharp_mapObj_draw+0x1d)
> [0x418b5e3d]
>  [0x4185849c]
>  [0x418583ba]
>  [0x41851956]
>  [0x41605749]
>  [0x416045d0]
>  [0x416009d8]
>  [0x416008b9]
>  [0x41150854]
>  [0x41150385]
>  [0x41150343]
>  [0x4114f544]
>  [0x41134535]
>  [0x41133c9c]
>  [0x41133a7b]
>  [0x4112125f]
>  [0x4112109b]
>  [0x40dc9bdd]
>  [0x40dc9730]
>  [0x40dc96f4]
>  [0x40dc964e]
>  /usr/lib/pkgconfig/../../bin/mono [0x813b180]
> /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke+0x27)
> [0x80d63f7]
> /usr/lib/pkgconfig/../../bin/mono(mono_runtime_invoke_array+0x270)
> [0x80d78c0]
> /usr/lib/pkgconfig/../../bin/mono(mono_message_invoke+0xc5)
> [0x80d93d5]
>  /usr/lib/pkgconfig/../../bin/mono [0x80a509f]
>  /usr/lib/pkgconfig/../../bin/mono [0x80a58c9]
>  /usr/lib/pkgconfig/../../bin/mono [0x8099fb2]
>  /usr/lib/pkgconfig/../../bin/mono [0x80f5067]
>  /usr/lib/pkgconfig/../../bin/mono [0x8113175]
>  /lib/tls/libpthread.so.0 [0x400e5297]
>  /lib/tls/libc.so.6(__clone+0x5e) [0x401e037e]
>
>
>
> best regards
>
>
>
> -----------------------------------------
>
> Xavier Mauclaire
>
> Service informatique
> GEOTER SAS
> 3, rue Jean Monnet
> 34830 Clapiers France
> Tél.: +33 (0)4.67.59.18.11
> Fax: +33 (0)4.67.59.18.24
>
> Email: xavier.mauclaire at geoter.fr
>
> Web site: http://www.geoter.fr
>
> -------------------------------------------------------
>
>
>
>



More information about the mapserver-users mailing list