[GRASS5] i.points and i.rectify: glibc detected/corruption

Markus Neteler neteler at itc.it
Mon Nov 28 10:50:52 EST 2005


Hi,

in both i.points and i.rectify we get ugly
*** glibc detected *** double free or corruption

While i.points continues to work, i.rectify does not with more
than 3 input maps (the first maps are processed, with subsequent
maps in the group it crashes when closing the original map, while
calling G_close_cell() ):

(gdb) break rectify.c:42
Breakpoint 2 at 0x804c33d: file rectify.c, line 42.
(gdb) run
`/nfsmnt/thuille0/ssi/software/cvsgrass61/dist.i686-pc-linux-gnu/bin/i.rectify' has changed; re-reading symbols.
Breakpoint 1 at 0x804c66a: file rectify.c, line 107.
Breakpoint 2 at 0x804c37e: file rectify.c, line 42.
Starting program: /nfsmnt/thuille0/ssi/software/cvsgrass61/dist.i686-pc-linux-gnu/bin/i.rectify group=landsat_nov2002 extension=rectify order=2 -a
Region N=6340321.018350 S=6329231.553074 E=4379720.870537 W=4369526.512250
Resolution EW=15.080412 NS=15.067208
Using Region: N=6340321.018350 S=6329231.553074, E=4379720.870537 W=4369526.512250
Rectified input file 20021104_HPN_riocuarto will be saved as 20021104_HPN_riocuartorectify

Breakpoint 2, rectify (name=0x8b6de40 "20021104_HPN_riocuarto", mapset=0x8b6df40 "gomez", result=0x8b6dcc8 "20021104_HPN_riocuartorectify", order=2) at rectify.c:42
(gdb) next
(gdb) cont
Continuing.


Breakpoint 1, rectify (name=0x8b6de40 "20021104_HPN_riocuarto", mapset=0x8b6df40 "gomez", result=0x8b6dcc8 "20021104_HPN_riocuartorectify", order=2) at rectify.c:107
(gdb) cont
Continuing.
***********************************************
Rectify [20021104_HPN_riocuarto at gomez] (LOCATION riocuarto_landsat)
 into  [20021104_HPN_riocuartorectify in neteler] (LOCATION riocuarto_vect)
complete
-----------------------------------------------
 736 rows, 676 cols (497536 cells) completed in 1:01
 489379.7 cells per minute

Rectified input file 20021104_HRF_riocuarto.1 will be saved as 20021104_HRF_riocuarto.1rectify

Breakpoint 2, rectify (name=0x8b6e040 "20021104_HRF_riocuarto.1", mapset=0x8b6e140 "gomez", result=0x8b6f358 "20021104_HRF_riocuarto.1rectify", order=2) at rectify.c:42
(gdb) next
(gdb) cont
Continuing.


Breakpoint 1, rectify (name=0x8b6e040 "20021104_HRF_riocuarto.1", mapset=0x8b6e140 "gomez", result=0x8b6f358 "20021104_HRF_riocuarto.1rectify", order=2) at rectify.c:107
(gdb) cont
Continuing.
***********************************************
Rectify [20021104_HRF_riocuarto.1 at gomez] (LOCATION riocuarto_landsat)
 into  [20021104_HRF_riocuarto.1rectify in neteler] (LOCATION riocuarto_vect)
complete
-----------------------------------------------
 736 rows, 676 cols (497536 cells) completed in 0:38
 785583.2 cells per minute

Rectified input file 20021104_HRF_riocuarto.2 will be saved as 20021104_HRF_riocuarto.2rectify

Breakpoint 2, rectify (name=0x8b6e240 "20021104_HRF_riocuarto.2", mapset=0x8b6e340 "gomez", result=0x8b6f440 "20021104_HRF_riocuarto.2rectify", order=2) at rectify.c:42
(gdb) cont
Continuing.


Breakpoint 1, rectify (name=0x8b6e240 "20021104_HRF_riocuarto.2", mapset=0x8b6e340 "gomez", result=0x8b6f440 "20021104_HRF_riocuarto.2rectify", order=2) at rectify.c:107
(gdb) cont
Continuing.
***********************************************
Rectify [20021104_HRF_riocuarto.2 at gomez] (LOCATION riocuarto_landsat)
 into  [20021104_HRF_riocuarto.2rectify in neteler] (LOCATION riocuarto_vect)
complete
-----------------------------------------------
 736 rows, 676 cols (497536 cells) completed in 0:22
 1356916.4 cells per minute

Rectified input file 20021104_HRF_riocuarto.3 will be saved as 20021104_HRF_riocuarto.3rectify

Breakpoint 2, rectify (name=0x8b6e440 "20021104_HRF_riocuarto.3", mapset=0x8b6e540 "gomez", result=0x8b6f468 "20021104_HRF_riocuarto.3rectify", order=2) at rectify.c:42
(gdb) cont
Continuing.


Breakpoint 1, rectify (name=0x8b6e440 "20021104_HRF_riocuarto.3", mapset=0x8b6e540 "gomez", result=0x8b6f468 "20021104_HRF_riocuarto.3rectify", order=2) at rectify.c:107
(gdb) cont
Continuing.
*** glibc detected *** double free or corruption (!prev): 0x08b85f70 ***

Program received signal SIGABRT, Aborted.
0x003207a2 in ?? ()
(gdb)

In the fcb section something happens which is called by G_close_cell().
Strangly, it works for the first maps.

How to debug this?

Markus




More information about the grass-dev mailing list