I'm having an issue with v.clean in versions of grass that I have compiled, name 6.3.1 from svn on 1-26-09 and 6.4.0RC3. I also am running the version from Fedora 10 repository (6.3). The fedora version does not segfault on v.clean, but my compiled versions do and I am trying to find out why. I am wondering why the Fedora provided version does not crash on my machine, yet the versions I compile do. Let me know if more information is needed.<br>
<br>Here are the configure commands I have tried.<br><br><i>CFLAGS="-pipe -g" ./configure --with-x<br><br>CFLAGS="-pipe -g" ./configure --enable-64bit --with-x --enable-largefile --with-libs=/usr/lib64/</i><br>
<br>here are the commands leading up to the crashing command.<br><br><i>g.remove vect=my_nat_gas<br>g.copy vect=nat_gas_pipe,my_nat_gas<br>echo "1|-89.266544|28.311140|miss1<br>2|-89.178207|28.315156|miss2<br>3|-88.929256|28.531984|miss3<br>
4|-89.391020|29.242699|dynergy<br>5|-89.382989|29.395282|sonat<br>6|-90.218180|29.214592|tenn<br>7|-90.742182|30.957751|transco3<br>8|-88.466822|31.996386|transco4<br>9|-89.497|28.663|testing" | v.in.ascii cat=1 x=2 y=3 out=stations \<br>
col="cat integer, east double precision, north double precision,\<br>label varchar(43)"<br>#create nodes at ends of lines of network<br><a href="http://v.net">v.net</a> in=my_nat_gas out=my_nat_gas_nodes operation=nodes<br>
#create vector map of connecting lines from stations to pipe network<br>v.distance from=stations to=my_nat_gas_nodes out=lines upload=dist \<br> column=dist from_type=point to_type=point dmax=0.02 --overwrite -a<br>v.patch input=lines,my_nat_gas out=connected<br>
v.clean input=connected output=connected_clean tool=snap,break,rmdupl --overwrite</i><br><br><b>core dump backtraces<br><br>grass 6.3.1svn from monday jan 26th, 2009</b><br>#0 0x00000000011518ae in RTreeInsertRect2 (r=0x7fc0fa6e8a58, tid=-93414816, <br>
n=0xfffffffffa6eb570, new_node=0x7fff041150a8, level=1) at index.c:96<br>#1 0x0000000001151941 in RTreeInsertRect2 (r=0x7fc0fa6e8a58, tid=-93414816, <br> n=0x7fc0fa6dd260, new_node=0x7fff04115188, level=1) at index.c:102<br>
#2 0x0000000001151941 in RTreeInsertRect2 (r=0x7fc0fa6e8a58, tid=-93414816, <br> n=0x7fc0fa7379d0, new_node=0x7fff04115268, level=1) at index.c:102<br>#3 0x0000000001151941 in RTreeInsertRect2 (r=0x7fc0fa6e8a58, tid=-93414816, <br>
n=0x7fc0fa737be0, new_node=0x7fff04115348, level=1) at index.c:102<br>#4 0x0000000001151941 in RTreeInsertRect2 (r=0x7fc0fa6e8a58, tid=-93414816, <br> n=0x7fc0fb008a00, new_node=0x7fff04115428, level=1) at index.c:102<br>
#5 0x0000000001151941 in RTreeInsertRect2 (r=0x7fc0fa6e8a58, tid=-93414816, <br> n=0x2a172f0, new_node=0x7fff04115540, level=1) at index.c:102<br>#6 0x0000000001151ce1 in RTreeInsertRect (R=0x7fc0fa6e8a58, Tid=-93414816, <br>
Root=0x7fff04116258, Level=1) at index.c:160<br>#7 0x000000000115233d in RTreeDeleteRect (R=0x7fff041155f0, Tid=878, <br> Nn=0x7fff04116258) at index.c:299<br>#8 0x0000000007610643 in dig_spidx_del_node (Plus=0x7fff04116050, node=878)<br>
at spindex.c:197<br>#9 0x000000000760b42f in dig_del_line (plus=0x7fff04116050, line=473)<br> at plus_line.c:202<br>#10 0x0000000000142d71 in V2_delete_line_nat (Map=0x7fff04116040, line=473)<br> at write_nat.c:606<br>
#11 0x00000000001424a8 in V2_rewrite_line_nat (Map=0x7fff04116040, line=473, <br> type=2, points=0x7fc0f8f8e890, cats=0x7fc0f8f8e8c0) at write_nat.c:353<br>#12 0x00000000001417bd in Vect_rewrite_line (Map=0x7fff04116040, line=473, <br>
type=2, points=0x7fc0f8f8e890, cats=0x7fc0f8f8e8c0) at write.c:151<br>#13 0x0000000000140df4 in Vect_snap_lines_list (Map=0x7fff04116040, <br> List_lines=0x7fc0f8f8e840, thresh=0, Err=0x0, msgout=0x32e5b6c860)<br> at snap.c:351<br>
#14 0x00000000001410a5 in Vect_snap_lines (Map=0x7fff04116040, type=79, <br> thresh=0, Err=0x0, msgout=0x32e5b6c860) at snap.c:433<br>#15 0x0000000000402f85 in main (argc=5, argv=0x7fff04116de8) at main.c:325<br><br><b>grass 6.4.0 rc3</b><br>
#0 0x00000000012578ce in RTreeInsertRect2 (r=0x7f829a5e8a58, tid=-1705076128, <br> n=0xffffffff9a5eb570, new_node=0x7fffa3917848, level=1) at index.c:97<br>97 assert(level >= 0 && level <= n->level);<br>
(gdb) bt<br>#0 0x00000000012578ce in RTreeInsertRect2 (r=0x7f829a5e8a58, tid=-1705076128, <br> n=0xffffffff9a5eb570, new_node=0x7fffa3917848, level=1) at index.c:97<br>#1 0x0000000001257961 in RTreeInsertRect2 (r=0x7f829a5e8a58, tid=-1705076128, <br>
n=0x7f829a5dd260, new_node=0x7fffa3917928, level=1) at index.c:102<br>#2 0x0000000001257961 in RTreeInsertRect2 (r=0x7f829a5e8a58, tid=-1705076128, <br> n=0x7f829a6379d0, new_node=0x7fffa3917a08, level=1) at index.c:102<br>
#3 0x0000000001257961 in RTreeInsertRect2 (r=0x7f829a5e8a58, tid=-1705076128, <br> n=0x7f829a637be0, new_node=0x7fffa3917ae8, level=1) at index.c:102<br>#4 0x0000000001257961 in RTreeInsertRect2 (r=0x7f829a5e8a58, tid=-1705076128, <br>
n=0x7f829adddab0, new_node=0x7fffa3917bc8, level=1) at index.c:102<br>#5 0x0000000001257961 in RTreeInsertRect2 (r=0x7f829a5e8a58, tid=-1705076128, <br> n=0x2f4b410, new_node=0x7fffa3917ce0, level=1) at index.c:102<br>
#6 0x0000000001257d01 in RTreeInsertRect (R=0x7f829a5e8a58, Tid=-1705076128, <br> Root=0x7fffa39189d8, Level=1) at index.c:156<br>#7 0x000000000125835d in RTreeDeleteRect (R=0x7fffa3917d90, Tid=878, <br> Nn=0x7fffa39189d8) at index.c:284<br>
#8 0x000000000104f737 in dig_spidx_del_node (Plus=0x7fffa39187d0, node=878)<br> at spindex.c:245<br>#9 0x000000000104a525 in dig_del_line (plus=0x7fffa39187d0, line=473)<br> at plus_line.c:235<br>#10 0x000000000014afe2 in V2_delete_line_nat (Map=0x7fffa39187c0, line=473)<br>
at write_nat.c:746<br>#11 0x000000000014a719 in V2_rewrite_line_nat (Map=0x7fffa39187c0, line=473, <br> type=2, points=0x7f8298c608d0, cats=0x7f8298c60900) at write_nat.c:468<br>#12 0x000000000014989d in Vect_rewrite_line (Map=0x7fffa39187c0, line=473, <br>
type=2, points=0x7f8298c608d0, cats=0x7f8298c60900) at write.c:189<br>#13 0x0000000000148f72 in Vect_snap_lines_list (Map=0x7fffa39187c0, <br> List_lines=0x7f8298b42a30, thresh=0, Err=0x0) at snap.c:371<br>#14 0x000000000014914b in Vect_snap_lines (Map=0x7fffa39187c0, type=79, <br>
thresh=0, Err=0x0) at snap.c:442<br>#15 0x0000000000402f09 in main (argc=5, argv=0x7fffa3919568) at main.c:342<br><br><br>