[GRASS-dev] [GRASS GIS] #3365: r.in.gdal: crash on large dataset
GRASS GIS
trac at osgeo.org
Tue Jul 4 15:26:10 PDT 2017
#3365: r.in.gdal: crash on large dataset
----------------------+---------------------------------
Reporter: neteler | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.2.2
Component: Raster | Version: svn-releasebranch72
Resolution: | Keywords: r.in.gdal
CPU: x86-64 | Platform: Linux
----------------------+---------------------------------
Comment (by neteler):
Replying to [comment:4 mmetz]:
...
> Maybe you need to recompile GRASS with -g in order to replace "???" with
some real information.
My bad, I was calling the wrong grass72 version without debugging symbols
in...
> I could reproduce the problem, the segfault is caused by stack overflow
because alloca allocates memory in the stack, while malloc and calloc
allocate memory in the heap. I could fix the segfault by replacing
G_alloca()/G_freea() with G_malloc()/G_free(). Please try the attached
patch against lib/raster/.
Thanks! r.in.gdal now runs, no more immediate crash. In some hours the
dataset may be imported, I'll report.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3365#comment:5>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list