I've compiled a recent SVN (r30272) GRASS, and now getting a
strange behaviour from `g.mlist' and `g.list'. E. g.:
GRASS 6.3.svn (modis-sin-i):~ > g.mlist type=rast mapset=ivan
GRASS 6.3.svn (modis-sin-i):~ >
This works well with GRASS 6.2.3 from Debian (though it takes
noticeable time to complete):
GRASS 6.2.3 (modis-sin-i):~ > g.mlist type=rast mapset=ivan
... 3106 lines skipped...
2006-08-brdf.a.albedo.altay.8.qa-mask
2006-08-brdf.a.albedo.altay.9.qa-mask
foo
GRASS 6.2.3 (modis-sin-i):~ >
Also (though it presumably is a different issue):
GRASS 6.3.svn (modis-sin-i):~ > gdb g.list
...
(gdb) set args type=rast mapset=ivan
Breakpoint 2, G_ls_format (list=0x807f4a8, num_items=3109, perline=0,
stream=0x8056ec0) at ls.c:157
157 perline = screen_width / (max_len + 1);
(gdb) print screen_width
$7 = 80
(gdb) print max_len
$8 = 110
(gdb)
NB: the `max_len >= screen_width' case isn't handled properly!
(gdb) next
161 field_width = screen_width / perline;
(gdb) print perline
$9 = 0
(gdb) next
Program received signal SIGFPE, Arithmetic exception.
0xf7e821a0 in G_ls_format (list=0x807f4a8, num_items=3109, perline=0,
stream=0x8056ec0) at ls.c:161
161 field_width = screen_width / perline;
(gdb)