Skip to content

v.to.rast segfault converting points #3105

Description

@marisn

The issue is reproduceable, reason unknown. At the moment just taking a note, will look into this at some point later.

#0  0x0000000000000000 in ?? ()
#1  0x00007ffff7ede221 in G_plot_point (east=<optimized out>, north=<optimized out>) at plot.c:195
#2  0x0000555555558d49 in plot_points (n=<optimized out>, y=<optimized out>, x=<optimized out>)
    at do_lines.c:206
#3  do_lines (Map=Map@entry=0x7fffffffcd10, Points=Points@entry=0x5555555ada10, 
    Cvarr=Cvarr@entry=0x7fffffffccf0, ctype=ctype@entry=0, 
    field=field@entry=1, cat_list=cat_list@entry=0x0, use=4, value=value@entry=1, value_type=0,
    feature_type=1, count_all=0x7fffffffccec, dense=1) at do_lines.c:134
#4  0x000055555555b049 in vect_to_rast (vector_map=0x5555555a8850 "fosso_punti", raster_map=0x5555555a8890
    "fosso_dem", field_name=<optimized out>, column=0x0, cache_mb=cache_mb@entry=300,
    use=use@entry=4, value=value@entry=1, value_type=0, rgbcolumn=0x0, 
    labelcolumn=0x0, ftype=1, where=0x0, cats=0x0, dense=1) at vect2rast.c:179
#5  0x0000555555557c09 in main (argc=<optimized out>, argv=<optimized out>) at main.c:165
==7669== Jump to the invalid address stated on the next line
==7669==    at 0x0: ???
==7669==    by 0x4952220: G_plot_point (plot.c:195)
==7669==    by 0x10CD48: plot_points (do_lines.c:206)
==7669==    by 0x10CD48: do_lines (do_lines.c:134)
==7669==    by 0x10F048: vect_to_rast (vect2rast.c:179)
==7669==    by 0x10BC08: main (main.c:165)
==7669==  Address 0x0 is not stack'd, malloc'd or (recently) free'd

First reported on the ml by bonushenricus
https://lists.osgeo.org/pipermail/grass-user/2023-July/083373.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    CRelated code is in CbugSomething isn't workingvectorRelated to vector data processing

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions