Opened 14 years ago
Last modified 14 years ago
#3529 new defect
two or more CONNECTIONTYPE WMS -> Crash
Reported by: | tee | Owned by: | aboudreault |
---|---|---|---|
Priority: | normal | Milestone: | 5.6.5 release |
Component: | MapServer C Library | Version: | unspecified |
Severity: | normal | Keywords: | crash connectiontype-wms libcurl.dll |
Cc: | dmorissette, assefa |
Description
The Mapserver is crashing down with the message
"Application Failure mapserv.exe 0.0.0.0 in libcurl.dll 1.19.4.0 at offset 000201d9"
in the event log.
I took two public layers from this list
http://www.lgb-rlp.de/wms-dienste.html
Here is the layer definition of both layers with CONNECTIONTYPE WMS.
I tested them and the system error is prompting betimes.
LAYER NAME 'gewinnungsstellen_extern_wms' STATUS ON TYPE RASTER GROUP 'group 1' CONNECTIONTYPE WMS CONNECTION 'http://mapserver.lgb-rlp.de/cgi-bin/gewinnungsstellen?' METADATA 'ows_group_title' 'group 1' 'wms_name' 'gewinnungsstellen' 'wms_title' 'Gewinnungsstellen mineralischer Rohstoffe' 'wms_srs' 'epsg:31467 epsg:31466 epsg:25832 epsg:54004 epsg:4326 epsg:4258' 'wms_style' 'default' 'wms_server_version' '1.1.1' 'wms_format' 'image/png' 'wms_connectiontimeout' '60' 'wms_style_default_legendurl_href' 'http://mapserver.lgb-rlp.de/cgi-bin/gewinnungsstellen?&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&format=image/gif&LAYER=gewinnungsstellen' 'wms_style_default_legendurl_format' 'image/gif' 'wms_style_default_legendurl_width' '1' 'wms_style_default_legendurl_height' '1' END #METADATA END #LAYER LAYER NAME 'archivfunktion_extern_wms' STATUS ON TYPE RASTER GROUP 'group 1' CONNECTIONTYPE WMS CONNECTION 'http://mapserver.lgb-rlp.de/cgi-bin/archivfunktion?' METADATA 'ows_group_title' 'group 1' 'wms_name' 'archivfunktion' 'wms_title' 'Böden als Archiv der Kultur- und Naturgeschichte' 'wms_srs' 'epsg:31467 epsg:31466 epsg:25832 epsg:54004 epsg:4326 epsg:4258' 'wms_style' 'default' 'wms_server_version' '1.1.1' 'wms_format' 'image/png' 'wms_connectiontimeout' '60' 'wms_style_default_legendurl_href' 'http://mapserver.lgb-rlp.de/cgi-bin/archivfunktion?&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&format=image/gif&LAYER=archivfunktion' 'wms_style_default_legendurl_format' 'image/gif' 'wms_style_default_legendurl_width' '1' 'wms_style_default_legendurl_height' '1' END #METADATA END #LAYER
The GetMap request looks like
http://localhost:80/cgi-bin /mapserv.exe?LAYERS=gewinnungsstellen_extern_wms,archivfunktion_extern_wms&SRS=EPSG:31466&FORMAT=image/png&WIDTH=575&HEIGHT=500&SERVICE=WMS&VERSION=1.1.1&STYLES=&BBOX=2451583.925,5380340.5,2783371.575,5668851.5&map=C:/projects/umn_maps/extern_wms_demo.map&REQUEST=GetMap
See this in context
http://osgeo-org.1803224.n2.nabble.com/two-or-more-CONNECTIONTYPE-WMS-Crash-td5478157.html#a5478157
attached you see a brakepoint that is catched be Visual Studio
Thank you very much and regards,
Daniel
Attachments (1)
Change History (11)
by , 14 years ago
Attachment: | visualstudio.jpg added |
---|
comment:1 by , 14 years ago
Cc: | added |
---|---|
Owner: | changed from | to
Alan, can you please look into this, perhaps using Valgrind on Linux will report something.
comment:2 by , 14 years ago
Milestone: | → 5.6.5 release |
---|
BTW, this is happening with MS4W with MapServer 5.6.3
comment:3 by , 14 years ago
I've tested this on Linux and everything work well. Valgrind doesn't output anything wrong.
comment:4 by , 14 years ago
Thanks for your investigations.
On my machines (WinXP Prof and divers ms4w versions) the error appears not on each request, but on each fourth or tenth.
comment:5 by , 14 years ago
Cc: | added |
---|
follow-up: 8 comment:6 by , 14 years ago
Assefa, we are unable to reproduce this on Linux, can you please see if you can reproduce on Windows with MS4W + MapServer 5.6.3?
Tee, are you sure it's not DLL Hell hitting you (i.e. multiple versions of some DLLs on the system?)
comment:8 by , 14 years ago
Unfortunately yes, I'm sure. because
- the version in the event log is right and
- I have no other libcurl.dll in the system32 folders or somewhere else and
- in the cgi-bin folder is only the right libcurl.dll placed and http://en.wikipedia.org/wiki/DLL_hell says "... is the Windows shared library policy which favours locally (application directory) available DLLs before the one in the system library path."
Thanks a lot and regards, Daniel
comment:9 by , 14 years ago
I was not able to reproduce this locally using ms4w and MapServer 5.6.3. I get the expected images consistently
comment:10 by , 14 years ago
What should we do with this ticket? tee, Is it still valid with 5.6.5 and svn_trunk?
Screenshot of the catched breakpoint by Visual Studio