[GRASS-user] r.param.scale issue

Vincent Bain bain at toraval.fr
Thu Oct 15 01:12:22 PDT 2020


Thanks Māris for your advice,

it sounds dreadful to me to have to deal with these hardware issues...
I installed valgrind and ran r.param.scale.

Attached are the outputs of the command, first run without any
argument, then with --leak-check=full option. Of course it's nearly
"doubledutch" to me! 

Vincent.

Le jeudi 15 octobre 2020 à 10:42 +0300, Maris Nartiss a écrit :
> Hello Vincent,
> start with running stress tests on your hardware. I always run at
> least 24h memtest followed by several rounds of compiling kernel on
> any new hardware. Allowed to catch a misbehaving motherboard of
> laptop
> before I started to use it for my daily needs.
> 
> You could try to run process under valgrind to see if anything
> suspicious comes up. There should be a warning of use of
> uninitialized
> variable in quant_parse_file function, but it shouldn't affect
> outcome
> in this case (I'll try to commit fix tomorrow).
> 
> Happy hunting,
> Māris.
> 
> ceturtd., 2020. g. 15. okt., plkst. 09:18 — lietotājs Vincent Bain
> (<bain at toraval.fr>) rakstīja:
> > Hi Markus,
> > thank you for your reply and investigation!
> > 
> > my setup:
> > a freshly built GRASS GIS 7.9.dev (64 bit), code revision:
> > 8c2c33b4f
> > Debian GNU/Linux 10.5 (buster)
> > the whole hardware is 4 months old...
> > 
> > I had the same issue with several raster source maps.
> > 
> > Well, for now I go back to r.slope.aspect...
> > 
> > V.
> > 
-------------- next part --------------
valgrind --leak-check=full r.param.scale input=topo_test output=slope_test size=5 method=slope --o
==7508== Memcheck, a memory error detector
==7508== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==7508== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
==7508== Command: r.param.scale input=topo_test output=slope_test size=5 method=slope --o
==7508== 
 100%
==7508== 
==7508== HEAP SUMMARY:
==7508==     in use at exit: 33,288 bytes in 146 blocks
==7508==   total heap usage: 7,833 allocs, 7,687 frees, 125,724,201 bytes allocated
==7508== 
==7508== 1 bytes in 1 blocks are definitely lost in loss record 2 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486D5FA: Rast_set_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486D789: Rast_short_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4863241: ??? (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4863834: ??? (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10B562: close_down (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B411: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 1 bytes in 1 blocks are definitely lost in loss record 3 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486D5FA: Rast_set_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486D79D: Rast_short_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4863241: ??? (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4863834: ??? (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10B562: close_down (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B411: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 1 bytes in 1 blocks are definitely lost in loss record 4 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486D5FA: Rast_set_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486D79D: Rast_short_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10B578: close_down (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B411: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 7 bytes in 1 blocks are definitely lost in loss record 7 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486D5FA: Rast_set_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486D745: Rast_short_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4863241: ??? (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4863834: ??? (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10B562: close_down (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B411: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 7 bytes in 1 blocks are definitely lost in loss record 8 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486D5FA: Rast_set_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486D745: Rast_short_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10B578: close_down (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B411: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 12 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489AE5F: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489DF7E: G_check_input_output_name (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x10C7D0: interface (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B3F8: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 13 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489AF07: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48AC679: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48AC8D7: G_fopen_old (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489CA3B: G_get_element_window (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489CCF1: G_get_window (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48C2E57: G__init_window (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BD488: G_get_set_window (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BB2CE: G_projection (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x10B3FD: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 14 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489AE5F: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486FF8E: Rast__open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4870685: Rast_open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10D276: open_files (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B407: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 15 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489AE5F: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48AC679: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48AC8D7: G_fopen_old (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x4874D7F: Rast_get_reclass (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486FFA8: Rast__open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4870685: Rast_open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10D276: open_files (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B407: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 16 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489AE5F: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48AC679: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48AC8D7: G_fopen_old (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x4874A80: Rast_is_reclass (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486AE8F: Rast_get_cellhd (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486FFEB: Rast__open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4870685: Rast_open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10D276: open_files (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B407: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 17 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489AE5F: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48AC679: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48AC8D7: G_fopen_old (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486AEF1: Rast_get_cellhd (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486FFEB: Rast__open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4870685: Rast_open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10D276: open_files (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B407: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 18 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489AE5F: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486FE55: Rast_map_type (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486FFF6: Rast__open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4870685: Rast_open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10D276: open_files (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B407: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 19 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489AF07: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486FC97: Rast__check_fp_type (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486FEFA: Rast_map_type (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486FFF6: Rast__open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4870685: Rast_open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10D276: open_files (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B407: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 20 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489AE5F: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486A3D8: Rast_get_gdal_link (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4870091: Rast__open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4870685: Rast_open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10D276: open_files (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B407: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 21 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489AE5F: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486FE55: Rast_map_type (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486A3EC: Rast_get_gdal_link (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4870091: Rast__open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4870685: Rast_open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10D276: open_files (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B407: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 22 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489AF07: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486FC97: Rast__check_fp_type (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486FEFA: Rast_map_type (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486A3EC: Rast_get_gdal_link (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4870091: Rast__open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4870685: Rast_open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10D276: open_files (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B407: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 23 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489AE5F: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x487625D: Rast_get_vrt (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x48700A1: Rast__open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4870685: Rast_open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10D276: open_files (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B407: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 24 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489AE5F: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48AC679: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x4870474: Rast__open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4870685: Rast_open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10D276: open_files (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B407: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 25 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489AE5F: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486FE55: Rast_map_type (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4872A1A: Rast__quant_import (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x48703C2: Rast__open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4870685: Rast_open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10D276: open_files (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B407: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 26 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489AF07: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486FC97: Rast__check_fp_type (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486FEFA: Rast_map_type (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4872A1A: Rast__quant_import (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x48703C2: Rast__open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4870685: Rast_open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10D276: open_files (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B407: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 27 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489AE5F: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48ACB2B: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48ACD0B: G_fopen_old_misc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x4872B0C: Rast__quant_import (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x48703C2: Rast__open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4870685: Rast_open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10D276: open_files (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B407: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 28 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489AE5F: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48ACB2B: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x4870400: Rast__open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4870685: Rast_open_old (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10D276: open_files (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B407: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 29 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486D5FA: Rast_set_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486D720: Rast_short_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4863241: ??? (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4863834: ??? (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10B562: close_down (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B411: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 30 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486D5FA: Rast_set_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486D735: Rast_short_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4863241: ??? (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4863834: ??? (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10B562: close_down (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B411: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 31 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489AF07: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486FE55: Rast_map_type (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4872ED5: Rast_write_quant (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x48632DE: ??? (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4863834: ??? (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10B562: close_down (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B411: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 32 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489AF07: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486FC97: Rast__check_fp_type (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486FEFA: Rast_map_type (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4872ED5: Rast_write_quant (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x48632DE: ??? (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4863834: ??? (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10B562: close_down (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B411: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 33 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489AF07: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486FBC5: Rast_map_is_fp (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4862727: ??? (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4863320: ??? (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4863834: ??? (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10B562: close_down (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B411: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 34 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486D5FA: Rast_set_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486D720: Rast_short_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10B578: close_down (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B411: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 35 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486D5FA: Rast_set_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486D735: Rast_short_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10B578: close_down (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B411: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 8 bytes in 1 blocks are definitely lost in loss record 36 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489AF07: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48AC679: ??? (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48AC8D7: G_fopen_old (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x4871984: Rast_put_cell_title (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10B61B: close_down (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B411: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 10 bytes in 1 blocks are definitely lost in loss record 40 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486D5FA: Rast_set_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10B58C: close_down (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B411: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 11 bytes in 1 blocks are definitely lost in loss record 41 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486D5FA: Rast_set_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486D70B: Rast_short_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4863241: ??? (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4863834: ??? (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10B562: close_down (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B411: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 11 bytes in 1 blocks are definitely lost in loss record 42 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486D5FA: Rast_set_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486D70B: Rast_short_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10B578: close_down (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B411: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 25 bytes in 1 blocks are definitely lost in loss record 57 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486D5FA: Rast_set_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486D6FB: Rast_short_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4863241: ??? (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4863834: ??? (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10B562: close_down (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B411: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 25 bytes in 1 blocks are definitely lost in loss record 58 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486D5FA: Rast_set_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486D6FB: Rast_short_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10B578: close_down (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B411: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 27 bytes in 1 blocks are definitely lost in loss record 59 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4B3A4B7: vasprintf (vasprintf.c:73)
==7508==    by 0x486D6B5: Rast_format_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486D775: Rast_short_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4863241: ??? (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x4863834: ??? (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10B562: close_down (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B411: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 27 bytes in 1 blocks are definitely lost in loss record 60 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4B3A4B7: vasprintf (vasprintf.c:73)
==7508==    by 0x486D6B5: Rast_format_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486D775: Rast_short_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10B578: close_down (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B411: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 40 bytes in 1 blocks are definitely lost in loss record 63 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489F1FC: G__location_path (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489F235: G_location_path (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x489CF52: G__gisinit (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x10C3C8: interface (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B3F8: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 64 bytes in 1 blocks are definitely lost in loss record 66 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BE902: G_store (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48BF02F: G_tempfile_pid (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x48719A3: Rast_put_cell_title (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10B61B: close_down (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B411: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 200 bytes in 1 blocks are definitely lost in loss record 84 of 91
==7508==    at 0x483577F: malloc (vg_replace_malloc.c:299)
==7508==    by 0x4893888: G__malloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x10D86F: process (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B40C: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 267 (40 direct, 227 indirect) bytes in 1 blocks are definitely lost in loss record 85 of 91
==7508==    at 0x4837D7B: realloc (vg_replace_malloc.c:826)
==7508==    by 0x48939E0: G__realloc (in /usr/local/grass79/lib/libgrass_gis.7.9.so)
==7508==    by 0x486D28D: Rast_append_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x486D88D: Rast_command_history (in /usr/local/grass79/lib/libgrass_raster.7.9.so)
==7508==    by 0x10B5E4: close_down (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B411: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== 6,480 bytes in 15 blocks are possibly lost in loss record 90 of 91
==7508==    at 0x4837B65: calloc (vg_replace_malloc.c:752)
==7508==    by 0x40116D1: allocate_dtv (dl-tls.c:286)
==7508==    by 0x401203D: _dl_allocate_tls (dl-tls.c:532)
==7508==    by 0x5867B95: allocate_stack (allocatestack.c:621)
==7508==    by 0x5867B95: pthread_create@@GLIBC_2.2.5 (pthread_create.c:669)
==7508==    by 0x529CD61: ??? (in /usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0)
==7508==    by 0x5293E09: GOMP_parallel (in /usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0)
==7508==    by 0x484B497: G_ludcmp (in /usr/local/grass79/lib/libgrass_gmath.7.9.so)
==7508==    by 0x10DDB7: process (in /usr/local/grass79/bin/r.param.scale)
==7508==    by 0x10B40C: main (in /usr/local/grass79/bin/r.param.scale)
==7508== 
==7508== LEAK SUMMARY:
==7508==    definitely lost: 697 bytes in 41 blocks
==7508==    indirectly lost: 227 bytes in 5 blocks
==7508==      possibly lost: 6,480 bytes in 15 blocks
==7508==    still reachable: 25,884 bytes in 85 blocks
==7508==         suppressed: 0 bytes in 0 blocks
==7508== Reachable blocks (those to which a pointer was found) are not shown.
==7508== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==7508== 
==7508== For counts of detected and suppressed errors, rerun with: -v
==7508== ERROR SUMMARY: 42 errors from 42 contexts (suppressed: 0 from 0)
-------------- next part --------------
valgrind r.param.scale input=topo_test output=slope_test size=5 method=slope --o
==7681== Memcheck, a memory error detector
==7681== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==7681== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
==7681== Command: r.param.scale input=topo_test output=slope_test size=5 method=slope --o
==7681== 
 100%
==7681== 
==7681== HEAP SUMMARY:
==7681==     in use at exit: 33,288 bytes in 146 blocks
==7681==   total heap usage: 7,833 allocs, 7,687 frees, 125,724,201 bytes allocated
==7681== 
==7681== LEAK SUMMARY:
==7681==    definitely lost: 697 bytes in 41 blocks
==7681==    indirectly lost: 227 bytes in 5 blocks
==7681==      possibly lost: 6,480 bytes in 15 blocks
==7681==    still reachable: 25,884 bytes in 85 blocks
==7681==         suppressed: 0 bytes in 0 blocks
==7681== Rerun with --leak-check=full to see details of leaked memory
==7681== 
==7681== For counts of detected and suppressed errors, rerun with: -v
==7681== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)


More information about the grass-user mailing list