Opened 11 years ago

Closed 11 years ago

#319 closed defect (fixed)

v.to.rast segfaults in G_close_gdal_link()

Reported by: hamish Owned by: grass-dev@…
Priority: major Milestone: 6.4.0
Component: Default Version: svn-develbranch6
Keywords: gdal_link Cc:
CPU: x86-32 Platform: Linux

Description

Hi,

v.to.rast segfaults in G_close_gdal_link() when used with a FP attribute column.

#spearfish
v.random out=rand1k_elev n=1000
v.db.addtable map=rand1k_elev column='elevation double precision'
v.what.rast vector=rand1k_elev raster=elevation.10m column=elevation
v.to.rast in=rand1k_elev out=rand1k.elev use=attr column=elevation

Converted areas: 0 of 0
Converted points/lines: 1000 of 1000
Segmentation fault
(gdb) bt full
#0  0xb7f165b2 in G_close_gdal_link (gdal=0x4091d861) at gdal.c:121
No locals.
#1  0xb7f09a20 in close_old (fd=6) at closecell.c:137
        fcb = (struct fileinfo *) 0x808c650
        i = 134516666
#2  0xb7f09928 in G_close_cell (fd=6) at closecell.c:86
        fcb = (struct fileinfo *) 0x808c650
#3  0x0804cc84 in update_labels (rast_name=0x8057d78 "rand1k.elev", 
    vector_map=0x8057d68 "rand1k_elev", field=1, label_column=0x0, use=1, 
    val=1, attr_column=0x8057d88 "elevation") at support.c:493
        i = 0
        fd = 6
        Map = {format = 0, temporary = -1076280840, dblnk = 0x808fe38, plus = {
...

output map looks ok on causal look.

presumably introduced with r.external changes.

? Hamish

Change History (3)

comment:1 in reply to:  description Changed 11 years ago by glynn

Replying to hamish:

v.to.rast segfaults in G_close_gdal_link() when used with a FP attribute column.

Try merging r33690.

comment:2 Changed 11 years ago by neteler

Already merged with r33693.

Please close if fixed.

Markus

comment:3 Changed 11 years ago by hamish

Resolution: fixed
Status: newclosed

works after svn up. Thanks.

Hamish

Note: See TracTickets for help on using tickets.