#2751 closed defect (fixed)

rasql - segfault with SCALE()

Reported by: Bang Pham Huu Owned by: Dimitar Misev
Priority: major Milestone: 10.2
Component: rasserver Version: 10.2
Keywords: Cc: javierurien@…
Complexity: Medium

Description

This comes from rasdaman-user group with thread title WMS problem rendering with time interval .

Use this ingredients file to import two tiff files in https://drive.google.com/drive/folders/1eMbLcfNmg6bmC4_WasDfDDBLRYncdqqs?usp=sharing.

  • First download two tiff files from the URL
  • Then, rename them to 20230418.tif and 20230422.tif and import with the ingredient below:
{
  "config": {
    "service_url": "http://localhost:8080/rasdaman/ows",
    "tmp_directory": "/tmp/",
    "mock": false,
    "track_files": false,
    "automated": true
  },
  "input": {
    "coverage_id": "SSM_2_days_s",
    "paths": [
      "*.tif"
    ]
  },
  "recipe": {
    "name": "time_series_irregular",
    "options": {
      "wms_import": true,
      "scale_levels": [2, 4, 8, 16, 32, 64],
      "time_parameter": {
        "filename": {
          "regex": "(.*)\\.(.*)",
          "group": "1"
        },
        "datetime_format": "YYYYMMDD"
      },
      "time_crs": "http://localhost:8080/rasdaman/def/crs/OGC/0/AnsiDate?axis-label=\"date\"",
      "tiling": "ALIGNED [0:0, 0:999, 0:999]"
    }
  }
}

The rasql query caused segfault is:

Request: 'SELECT ENCODE((  ( scale( scale( ( ( c0[0,0:1708,0:1055] OVERLAY c0[1,0:1708,0:1055] ) ), [0:1012, 0:624] )  [0:1012, 80:624], [0:1012, 0:545] ) )  ), "png", "{\"nodata\":[0.0]}") FROM SSM_2_days_s_16 AS c0
'... parsing... checking semantics... evaluating... [ERROR] - 2023-07-06 12:50:10,720, server/rasserver_main.cc:108: Interrupted by signal SIGSEGV (Invalid memory access at address 0)... stacktrace:
 [1] /home/rasdaman/rasdaman_community/install/bin/rasserver(+0x338216) [0x55c53e7bd216]
 [2] /home/rasdaman/rasdaman_community/install/bin/rasserver(+0x20a9e8) [0x55c53e68f9e8]
 [3] /home/rasdaman/rasdaman_community/install/bin/rasserver(+0x1b7176) [0x55c53e63c176]
 [4] /home/rasdaman/rasdaman_community/install/bin/rasserver(+0x202e03) [0x55c53e687e03]
 [5] /home/rasdaman/rasdaman_community/install/bin/rasserver(+0x20a510) [0x55c53e68f510]
 [6] /home/rasdaman/rasdaman_community/install/bin/rasserver(+0x1c7fe6) [0x55c53e64cfe6]
 [7] /home/rasdaman/rasdaman_community/install/bin/rasserver(+0x1945b3) [0x55c53e6195b3]
 [8] /home/rasdaman/rasdaman_community/install/bin/rasserver(+0x1741ed) [0x55c53e5f91ed]
 [9] /home/rasdaman/rasdaman_community/install/bin/rasserver(+0x14fa5d) [0x55c53e5d4a5d]
[10] /home/rasdaman/rasdaman_community/install/bin/rasserver(+0x137f9d) [0x55c53e5bcf9d]
[11] /home/rasdaman/rasdaman_community/install/bin/rasserver(+0x4bc62b) [0x55c53e94162b]
[12] /home/rasdaman/rasdaman_community/install/bin/rasserver(+0x45386e) [0x55c53e8d886e]
[13] /home/rasdaman/rasdaman_community/install/bin/rasserver(+0x47297e) [0x55c53e8f797e]
[14] /home/rasdaman/rasdaman_community/install/bin/rasserver(+0x4ab4ec) [0x55c53e9304ec]
[15] /home/rasdaman/rasdaman_community/install/bin/rasserver(+0x5f1ba1) [0x55c53ea76ba1]
[16] /home/rasdaman/rasdaman_community/install/bin/rasserver(+0x5f1e73) [0x55c53ea76e73]
[17] /home/rasdaman/rasdaman_community/install/bin/rasserver(+0x5f3f67) [0x55c53ea78f67]
[18] /home/rasdaman/rasdaman_community/install/bin/rasserver(+0x5f3fe0) [0x55c53ea78fe0]
[19] /lib/x86_64-linux-gnu/libstdc++.so.6(+0xdc2b3) [0x7f3173adc2b3]
[20] /lib/x86_64-linux-gnu/libc.so.6(+0x94b43) [0x7f3171a94b43]
[21] /lib/x86_64-linux-gnu/libc.so.6(+0x126a00) [0x7f3171b26a00]

Change History (1)

comment:1 by Dimitar Misev, 16 months ago

Resolution: fixed
Status: assignedclosed

Fixed by Mikhail Rodionychev

Note: See TracTickets for help on using tickets.