MapServer / MapServer-import

3 stars 2 forks source link

[MapServer-wms]Segmentation fault when doing a request to a wms server with wms_timeformat set #960

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: nsavard@mapgears.com Date: 2004/10/14 - 22:03

When the "wms_timeformat" is set to a valid value in a map file for a WMS server
and a getmap request is sent to this server, there is a segmentation fault.

See the request and map file below.

---------------
Request sent:

http://localhost/cgi-bin/mapserv_43?map=/path/to/time_test/htdocs/wms_time.map&
request=GetMap&Version=1.1.1&LAYERS=time&Time=2004-01-01%2015:10:00
-------------
Map file snippet:

    ...

    METADATA
      "WMS_TITLE"   "WORLD:Test Data WMS Server"
      "WMS_ONLINERESOURCE" "http://www2.dmsolutions.ca/cgi-bin/mswms_world?"
      "WMS_SRS"   "EPSG:4326"
      "OWS_SCHEMAS_LOCATION" "http://ogc.dmsolutions.ca"
      "WMS_ACCESSCONTRAINTS" "none"
      "WMS_FEES"              "none"      
      "wms_timeformat" "%Y-%m-%d %H:%M:%S"
   END

   ...

LAYER
  NAME time
  METADATA
    "DESCRIPTION" "time"
    "wms_title" "time"
    "wms_timeitem"  "TIME"
    "wms_timeextent"  "2004-01-01/2004-02-01"   
    "wms_timedefault"  "2004-01-01 14:10:00"
  END

  PROJECTION
    "init=epsg:4326"
  END 
  TYPE POINT
  STATUS DEFAULT
  DATA wind_obs_ndbc
  CLASS
   SYMBOL 2
    SIZE 8
    COLOR 255 0 0        
  END

END

END
tbonfort commented 12 years ago

Author: assefa Date: 2004/10/18 - 16:11

Norm,

I just tried it with the latest version and I am getting the expected result. 
Could you please confirm that It is still a problem. 
Thanks
tbonfort commented 12 years ago

Author: nsavard@mapgears.com Date: 2004/10/18 - 19:33

I just tried it with source updated at 12h20 today and I'm able to reproduce it.
tbonfort commented 12 years ago

Author: assefa Date: 2004/10/19 - 00:02

It was an uninitilaized variable. It has been fixed in maptime.c r.1.12 and
tested on a Linux machine.
tbonfort commented 12 years ago

Author: nsavard@mapgears.com Date: 2004/10/19 - 22:24

Verified on Fedora Core 2.