[GRASS5] current d.vect/symbol code and gcc 2.96
Markus Neteler
neteler at itc.it
Mon Dec 13 07:48:56 EST 2004
Hi,
while the new d.vect with list support for symbols
works fine in MacOSX and Redhat Enterprise 3, it
still fails on RH7/gcc 2.96.
It seems to crash in one of the G_realloc() lines.
Is there anyone using gcc 2.96
Here some debugging details:
Breakpoint 3, icon_files () at main.c:73
(gdb) cont
D0/0: list basic/circle,basic/box,basic/cross1,basic/diamond,basic/x,basic/point,basic/airport,basic/arrow1,basic/arrow2,basic/compass,basic/cross2,basic/marker,basic/octagon,basic/star,
D0/0: di->d_name: muchomurka
D0/0: buf basic/target
D0/0: ni: 10
Breakpoint 3, icon_files () at main.c:73
(gdb) cont
Program received signal SIGSEGV, Segmentation fault.
0x4052b1e6 in chunk_free (ar_ptr=0x405dccc0, p=0x8054638) at malloc.c:3242
in malloc.c
(gdb)
It crashes when d->d_name is set to 'demo':
buf = G_realloc(buf, strlen(d->d_name) + ni );
No idea how to get this working.
Markus
More information about the grass-dev
mailing list