Skip to content

Use of dimensions crashes mapcache 1.14.1 with signal Segmentation fault #350

Description

@jaysnm

Hello and thank you for maintaining this fantastic solution.

I have been using mapcache for quite some time with latest version being 1.14.0. When I upgraded to 1.14.1, I realized mapcache was crashing with a [core.notice] exit signal Segmentation fault (11). This issue can be reproduced using below config adopted from sample config file. To make the setup work, just remove the dimensions section.

<?xml version="1.0" encoding="UTF-8"?>
<mapcache>
   <metadata>
      <title>my mapcache service</title>
      <abstract>woot! this is a test mapcache service</abstract>
   </metadata>

   <cache name="disk" type="disk">
      <base>/tmp</base>
      <symlink_blank />
      <detect_blank />
   </cache>


   <format name="PNGQ_FAST" type="PNG">
      <compression>fast</compression>
      <colors>256</colors>
   </format>

   <source name="vmap0" type="wms">
      <getmap>
         <params>
            <FORMAT>image/png</FORMAT>
            <LAYERS>basic</LAYERS>
         </params>
      </getmap>
      <http>
         <url>http://vmap0.tiles.osgeo.org/wms/vmap0</url>
         <connection_timeout>30</connection_timeout>
         <timeout>300</timeout>
      </http>
   </source>

   <tileset name="vmap0_test">

      <source>vmap0</source>
      <cache>disk</cache>

      <grid restricted_extent="-10 40 10 50" minzoom="6" maxzoom="8">WGS84</grid>
      <grid>g</grid>
      <metadata>
         <title>vmap0 map</title>
         <abstract>blabla</abstract>
         <keywords>
            <keyword>foo</keyword>
            <keyword>bar</keyword>
         </keywords>
      </metadata>

      <dimensions>
         <dimension type="values" name="DIM1" default="foo">
            <value>foo</value>
            <value>bar</value>
         </dimension>
      </dimensions>

   </tileset>


   <default_format>JPEG</default_format>

   <service type="wms" enabled="true">
      <full_wms>assemble</full_wms>
      <resample_mode>bilinear</resample_mode>
      <format>PNGQ_FAST</format>
      <maxsize>4096</maxsize>
   </service>
   <service type="wmts" enabled="true" />
   <service type="tms" enabled="true" />
   <service type="kml" enabled="true" />
   <service type="gmaps" enabled="true" />
   <service type="ve" enabled="true" />
   <service type="demo" enabled="true" />

</mapcache>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions