[GRASS-dev] Re: [GRASS-user] barin option in r.flow module

Markus Neteler neteler at osgeo.org
Sat Dec 20 13:43:45 EST 2008


(moved to grass-dev)

On Mon, Dec 15, 2008 at 4:37 PM, Casagrande Luca <thedoktor78 at gmail.com> wrote:
> Casagrande Luca wrote:
>>
>> Hello everybody,
>> I have got some troubles using r.flow with this option..it stays forever
>> at the:
>> Reading input files: elevation...
>> , barrier
>> If I remove the barin option, all is fine.
>> I am using the DEM from spearfish with GRASS 6.2.3 and latest 6.4svn.
>>
> This is how replicate using Spearfish dataset:
> g.region rast=elevation.10m
> v.to.rast input=streams at PERMANENT output=streamsTest use=val type=line layer=1 value=1 rows=4096 --overwrite
> r.null map=streamsTest null=0
> r.report units=me map=streamsTest | grep "no data"
> r.flow elevin=elevation.10m barin=streamsTest skip=37 bound=9432 flout=testvector lgout=testraster

I can reproduce the crash (one typo fixed in above example):


(gdb) r elevin=elevation.10m barin=streamTest skip=37 bound=9432
flout=testvector lgout=testraster
Starting program:
/home/neteler/grass64/dist.x86_64-unknown-linux-gnu/bin/r.flow
elevin=elevation.10m barin=streamTest skip=37 bound=9432
flout=testvector lgout=testraster
[Thread debugging using libthread_db enabled]
[New Thread 47222862720544 (LWP 24952)]
warning: Lowest section in /usr/lib64/libicudata.so.36 is .gnu.hash at
0000000000000120
WARNING: Vector map <testvector> already exists and will be overwritten
Reading input files: elevation
Reading input files: barrier

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47222862720544 (LWP 24952)]
0x00000000004050b8 in read_input_files () at io.c:121
121                         put(ds, row, col, -1);
(gdb) bt
#0  0x00000000004050b8 in read_input_files () at io.c:121
#1  0x0000000000404ac6 in main (argc=7, argv=0x7fffc58021b8) at calc.c:556
(gdb) bt full
#0  0x00000000004050b8 in read_input_files () at io.c:121
        barc = (DCELL *) 0x2ed1750
        fd = 9
        row = 0
        col = 1211
        hd = {format = 0, compressed = 1, rows = 1398, rows3 = 1398,
cols = 1899, cols3 = 1899, depths = 1, proj = 1, zone = 13,
  ew_res = 10, ew_res3 = 10, ns_res = 10, ns_res3 = 10, tb_res = 1,
north = 4928000, south = 4914020, east = 609000,
  west = 590010, top = 1, bottom = 0}
#1  0x0000000000404ac6 in main (argc=7, argv=0x7fffc58021b8) at calc.c:556
        module = (struct GModule *) 0x2af2e5b87f60
        pelevin = (struct Option *) 0x2af2e5b87ec0
        paspin = (struct Option *) 0x612410
        pbarin = (struct Option *) 0x6124d0
        pskip = (struct Option *) 0x612590
        pbound = (struct Option *) 0x612650
        pflout = (struct Option *) 0x612710
        plgout = (struct Option *) 0x6127d0
        pdsout = (struct Option *) 0x612890
        fup = (struct Flag *) 0x2af2e5b87e80
        flg = (struct Flag *) 0x612970
        fmem = (struct Flag *) 0x6129c0
        default_skip = 37
        larger = 1899
        default_bound = 9432
        default_skip_ans = 0x6118e0 "37"
        default_bound_ans = 0x6123f0 "0-9432"
        skip_opt = 0x6123d0 "1-1899"
        history = {
  mapid = "�$9��*\000\000p)9��*\000\000\000`���*\000\000�d���*\000\000\200i���*\000\000\000\000L��*\000\000�\004L��*\000\000\200\tL��*\000\000\000\200���*\000\000�\204���*\000",
  title = "\200\211���*\000\000\000\200+��*\000\000�\204+��*\000\000�Ը��*\000\000h\211+��*\000\000\000\000���*\000\000\000\200\220��*\000\000�\204\220��*\000\000x\211\220��*\000\000\000
\020��*\000",
  mapset = "��z��*\000\000�$\020��*\000\000\200)\020��*\000\000\000\200\215��*\000\000�\204\215��*\000\000��z��*\000\000\000\000\000\000\000\000\000\000�\017\200��\177",
'\0' <repeats 12 times>, " \035\000\213��",
  creator = "\000\000\226SV��U`\t\202��*\000\000\000\000\000\000\000\000\000\000\220\020\200��\177\000\000\001\000\000\000\000\000\000\000�\f+��*\000\000\000\000\000\000\000\000\000\000n-linux-\000\000\000\000\000\000\000\000�)+��*\000",
  maptype = "�\034\200��\177\000\000\220\f+��*\000\000\017\035\200��\177\000\000\000\035\200��\177\000\000�\034\200��\177\000\000\030\vL��*\000\000`\fL��*\000\000\000\000\000\000\000\000\000\000U����*\000\000\002\000\000\000\000\000\000",
  datsrc_1 = "@\035\200��\177\000\000�\024+��*\000\000��z��*\000\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\000\000�\036\000\213��\000\000\226SV��U�\034\200��\177\000\000@\035\200��\177\000\000\230�a��*\000",
  datsrc_2 = "\000\000\000\000\000\000\000\000p\021\200��\177\000\000\005\000\000\000\000\000\000\000�\f+��*\000\000\000\000\000\000\000\000\000\000�i�G",
'\0' <repeats 12 times>,
"�)+��*\000\000�\034\200��\177\000\000\220\f+��*\000",
  keywrd = "\017\035\200��\177\000\000\000\035\200��\177\000\000�\034\200��\177\000\000\030\vL��*\000\000\215\225\222��*\000\000\003\000\000\000\000\000\000\000@\035\200��\177\000\000�\024+��*\000\000��z��*\000\000��z��*\000",
edlinecnt = 0, edhist = {
    "\000\000\000\000p\021\200��\177\000\000\005\000\000\000\000\000\000\000\000\000\200
\000\213��\000\000\226SV��U\000�4\000\000\000\000\000\177\024\200��\177\000\000p\024\200��\177\000\000
\021\200��\177\000\000�\034\200��\177\000\000@\035\200�",
    "�\177\000\00080@��*\000\000\000\000\000\000\000\000\000\000p\022\200��\177\000\000\000\000\000\000\000\000\000\000�\f+��*\000\000\000\000\000\000\000\000\000\000\177ELF\002\001\001\000\000\000\000\000\000\000\000\000�)+��*\000\000�\034\200�",
    "�\177\000\000\220\f+��*\000\000\017\035\200��\177\000\000\a\000\000\000\000\000\000\000
\006���*\000\000�\024+��*\000\000@\027,��*\000\000\000и��*\000\000�Ը��*\000\000@:\036��*\000\000��z�",
    "�*\000\000��z��*\000\000\000\000\000\000\000\000\000\000p\022\200��\177",
'\0' <repeats 12 times>, "\200\"\000\213��\000\000\226SV��Ux
\036��*\000\000\000\000\000\000\000\000\000\000@\023\200��\177\000\000\004\000\000",
    "\000\000\000\000�\f+��*\000\000\000\000\000\000\000\000\000\000d\037",
'\0' <repeats 14 times>,
"�)+��*\000\000�\034\200��\177\000\000\220\f+��*\000\000\017\035\200��\177\000\000\000\035\200��\177\000\000�\034\200�",
    "�\177\000\000\030\vL��*\000\000\000\000 ", '\0' <repeats 13
times>, "�-\000\000\000\000\000\000\002\000\000\000\000\000\000\000@\035\200��\177\000\000�\024+��*\000\000��z��*\000\000\000\000\000\000\000\000\000\000\004\000\000",
    "\000\000\000\000\000\000
$\000\213��\000\000\226SV��U8\002\000\000\000\000\000\000
\000\000\000\000\000\000\000�\034\200��\177\000\000@\035\200��\177\000\000 at y���*\000\000\000\000\000\000\000\000\000\0000\024\200��\177\000\000\000\000\000",
    "\000\000\000\000�\f+��*\000\000\000\000\000\000\000\000\000\000\004",
'\0' <repeats 15 times>,
"�)+��*\000\000�\034\200��\177\000\000\220\f+��*\000\000\017\035\200��\177\000\000\000\035\200��\177\000\000�\034\200�",
    "�\177\000\000\006\000\000\000\000\000\000\000\210\005���*\000\000�\024+��*\000\000
\022,��*\000\000@\027,��*\000\000\000и��*\000\000�Ը��*\000\000��z��*",
'\0' <repeats 13 times>,
    "\000\000\000\000\000\000\000&\000\213��\000\000\226SV��U�\034\200��\177\000\000@\035\200��\177\000\0008p���*\000\000\000\000\000\000\000\000\000\000\020\025\200��\177\000\000\000\000\000\000\000\000\000\000�\f+��*\000\000\000\000\000",
    "\000\000\000\000\000\000\000\000\037", '\0' <repeats 11 times>,
"�)+��*\000\000�\034\200��\177\000\000\220\f+��*\000\000\017\035\200��\177\000\000\000\035\200��\177\000\000�\034\200��\177\000\000\030\vL��*\000\000a�\000�",
    "�S\200\030\002\000\000\000\000\000\000\000@\035\200��\177\000\000�\024+��*\000\000��z��*",
'\0' <repeats 18 times>, "\020\025\200��\177", '\0' <repeats 12
times>, "�'\000\213��\000\000\226S",
    "V��U�1���*\000\000\000\000\000\000\000\000\000\000\020\026\200��\177\000\000\004\000\000\000\000\000\000\000�\f+��*\000\000\000\000\000\000\000\000\000\000�1���*\000\000\000\000\000\000\000\000\000\000�)+��*\000\000�\034\200�",
    "�\177\000\000\220\f+��*\000\000\017\035\200��\177\000\000\000\035\200��\177\000\000�\034\200��\177\000\000\030\vL��*\000\000�\034\200��\177\000\000\000\000\000\000\000\000\000\000\017\035\200��\177\000\000\002\000\000\000\000\000\000\000@\035\200�",
    "�\177\000\000�\024+��*\000\000��z��*\000\000\000\000\000\000\000\000\000\000\004\000\000\000\000\000\000\000\000\000`)\000\213��\000\000\226SV��U�1���*\000\000\000\000\000\000\000\000\000\000\020\026\200��\177\000\000\003\000\000",
    "\000\000\000\000\000\000�)\000\213��\000\000\226SV��Uh\211\000\000\000\000\000\000\000\000
\000\000\000\000\000�\034\200��\177\000\000@\035\200��\177\000\000h�\221��*",
'\0' <repeats 11 times>, "\027\200��\177\000\000\003\000\000",
    "\000\000\000\000�\f+��*\000\000\000\000\000\000\000\000\000\000p\002",
'\0' <repeats 14 times>,
"\006\000\000\000\000\000\000\000�\004���*\000\000�\024+��*\000\000\001\000\000\000�\177\000\000\000\000���*\000\000�\r\200�",
    "�\177\000\000\000\000\000\000\000\000\000\000\202\225\222��*\000\000\232\023+��*\000\000�Ը��*\000\000\000и��*\000\000��z��*\000\000\000\000���*\000\000��z��*\000\000\000\000\000\000\000\000\000\000\003\000\000",
    "\000\000\000\000\000\000�+\000\213��\000\000\226SV��UQ�td\006",
'\0' <repeats 11 times>,
"�\034\200��\177\000\000@\035\200��\177\000\000�\220p��*\000\000\000\000\000\000\000\000\000\000�\027\200��\177\000\000\n\000\000",
    "\000\000\000\000�\f+��*\000\000\000\000\000\000\000\000\000\000pW4",
'\0' <repeats 13 times>,
"�)+��*\000\000�\034\200��\177\000\000\220\f+��*\000\000\017\035\200��\177\000\000\000\035\200��\177\000\000�\034\200�",
    "�\177\000\000\005\000\000\000\000\000\000\0000�z��*\000\000�\024+��*\000\000@\027,��*\000\000\000и��*\000\000�Ը��*\000\000��z��*\000\000\000\000\000\000\000\000\000\000�\027\200��\177\000\000\n\000\000",
    "\000\000\000\000\000\000\200-\000\213��\000\000\226SV��U$\000\004
P\000\020X\200�DB(\000\006\200\020\030B\000
@\200\000\tP\000Q\212@\020\000\000\000\000\b\000\000\021\020@\b@\200�\000!�B�\203�٤X\002\b\004\020@",
    "\a\020\004\002\220@\"\000
\032\020\002\031\004F&\000\001���!\200��\177\000\000\210�z��*\000\000\200\000@\023\020\000k\000!\204*\n\002\000
\000�\034\200��\177\000\000@\035\200��\177\000\000h�`\000\000\000\000\000\000\000\000",
   "\000\000\000\000\f\000\000\000\000\000\000\000��z��*\000\000�\024+��*\000\000@\027,��*\000\000\000и��*\000\000�Ը��*\000\000\0305\036��*\000\000@:\036��*\000\000\0000\036��*\000\000\000\020\202�",
    "�*\000\000�ٸ��*\000\000
\022,��*\000\000�\024\202��*\000\000��z��*\000\000\000\000\000\000\000\000\000\000\017\035\200��\177\000\000D\023@\000\000\000\000\000\000\000\200:\000\213��h�`\000\000\000\000\000\000\000\000",
    '\0' <repeats 22 times>, " 0\000\213��\000\000\226SV��UX�`", '\0'
<repeats 31 times>, "\2000\000\213��\000\000\226S",
    "V��UH�`", '\0' <repeats 31 times>,
"�0\000\213��\000\000\226SV��U8�`", '\0' <repeats 21 times>,
"\001\000\000",
    "\000\000\000\000��z��*\000\000�\025\200��\177\000\000\000\000\000\000\000\000\000\000D\023@\000\000\000\000\000\232\023+��*\000\000\001\000\000\000\000\000\000\000��z��*\000\000\020\031\200��\177\000\000\000\000\000\000\000\000\000\0000\023@",
    "\000\000\000\000\232\023+��*\000\000\001\000\000\000\000\000\000\000\000�z��*\000\000@\031\200��\177\000\000\000\000\000\000\000\000\000\000�\022@\000\000\000\000\000\232\023+��*\000\000\001\000\000\000\000\000\000\000�\031\202��*\000\000p\031\200�",
    "�\177\000\000\000\000\000\000\000\000\000\000t\022@\000\000\000\000\000\232\023+��*\000\000\001\000\000\000\000\000\000\000�\024\202��*\000\000�\031\200��\177\000\000\000\000\000\000\000\000\000\000i\022@\000\000\000\000\000\232\023+��*\000\000\001\000\000",
    "\000\000\000\0009�*��*\000\000�\031\200��\177\000\000
\002���*\000\000\017\000\000\000\000\000\000\0004\000\000\000\000\000\000\000\207�\226|\000\000\000\000J�*��*\000\000\000\032\200��\177\000\000\206�\226|\000\000\000\000E\022@",
    "\a\000\000\000�[�\001\000\000\000\000\200\032\200��\177\000\000�\033\200��\177\000\000\b\034\200��\177\000\000�J���*\000\000\000\000\000\000\000\000\000\000@\035���*\000\000��z��*\000\000\032g*��*\000\000�\f��",
    "�*\000\000�c*��*\000\000\000\000\000\000\000\000\000\000\n\b\000\000\001\000\000\000\001\000\000\000\000\000\000\000X\003,��*\000\000@\034\200��\177\000\000�\033\200��\177\000\000\207�\226|\000\000\000\000\b\034\200��\177\000\000\000\000\000",
    "\000\000\000\000R�*��*\000\000\000\000\000\000\000\000\000\000@\035���*",
'\0' <repeats 18 times>,
"\001\000\000\000\000\000\000\000\000�*\000\000�\032\200��\177\000\000\000\000\000\000\000\000\000\000�\021@",
    "\000\000\000\000\232\023+�\001\000\000\000@\035���*\000\000X\003,��*\000\000\b\035\200��\177\000\000(\005L��*\000\000\032g*��*\000\000\232\023+�\000\000\000\000\001\000\000\000\000\000\000\000
\022,��*\000\000P\033\200�",
    "�\177\000\000\000\000\000\000\000\000\000\000�\017@\000\000\000\000\000\232\023+��*\000\000\001\000\000\000\000\000\000\000�\f,��*\000\000\200\033\200��\177\000\000\000\000\000\000\000\000\000\000\031\016@\000\000\000\000\000�����*\000\000��z�",
    "�*\000\000ż���*\000\000\220\v���*\000\000��z��*\000\000�\034\200��\177\000\000����",
'\0' <repeats 12 times>,
"(\005L��*\000\000\a\000\000\000\000\000\000\000p=���*\000\000(\005L�",
    "�*\000\000�i*��*\000\000@\035\200��\177\000\0009\000+��*\000\000\000\000\000\000�*\000\000\000\000\000\000\000\000\000\000\b\035\200��\177\000\000X\003,��*\000\000\000\000\000\000\000\000\000\000H\210���*\000\0008���",
    "�*\000\000�c*��*\000\000
\000L��*\000\0009�*��*\000\000bg*��*\000\000
\002���*\000\000\017\000\000\000\000\000\000\0004\000\0---Type
<return> to continue, or q <return> to quit---
00\000\000\000\000\000�?\212\236\000\000\000\0009�*��*\000\000}g~�",
    "\000\000\000\000�\002���*\000\000'\000\000\000\000\000\000\0009�*��*\000\000���r\000\000\000\000�\002���*\000\000'\000\000\000\000\000\000\0004\000\000\000\000\000\000\000�7�Z\000\000\000\000J�*��*\000\000@\035\200�",
    "�\177\000\000�7�Z\000\000\000\000�\036\200�.\000\000\0009�*��*\000\000`\035\200��\177\000\0009�*��*\000\000\017\000\000\000\000\000\000\0009�*��*\000\000'\000\000\000\000\000\000\000
\002���*\000\000\017\000\000",
    "\000\000\000\0004\000\000\000\000\000\000\000\220u\202\r\000\000\000\000J�*��*\000\000�\026\2070\020\000\000\000\220u\202\r\000\000\000\000�\035\200�\020\000\000\000�\t6\000\000\000\000\000�\035\200��\177\000\000@\037\200��\177\000\000X\037\200�",
    "�\177\000\000��*��*\000\000\030\000\000\000\000\000\000\000x\002���*\000\000\032\000\000\000\000\000\000\000X\002���*\000\000\026\000\000\000\000\000\000\0009�*��*\000\000�\026��\000\000\000\000\000\002���*\000\000\v\000\000",
    "\000\000\000\0004\000\000\000\000\000\000\000\016���\000\000\000\000J�*��*\000\000��C+\000\000\000\000\016���\000\000\000\000�\037\200�\016\000\000\000\214�>\003\000\000\000\000p\036\200��\177\000\000�\037\200��\177\000\000�\037\200�",
    "�\177\000\000���*", '\0' <repeats 18 times>,
"�\024\202��*\000\000h٭��*\000\000xϨ��*\000\000\200\a���*\000\000\000\000\000\000\001\000\000\000\035\r\000\000\001\000\000\000\000\000\000",
    "\001\000\000\000P\030\202��*\000\0000
\200��\177\000\0009�*��*\000\000\016���\000\000\000\000
\002���*\000\000\017\000\000\000\000\000\000\0004\000\000\000\000\000\000\000.N=�\000\000\000\000J�*��*\000\000\001\000\000",
    "\000\000\000\000.N=�\000\000\000\000\001\000\000\000.\000\000\0008��\003\000\000\000\000@\037\200��\177\000\000�
\200��\177\000\000�
\200��\177\000\000�J���*\000\000\000\000\000\000\000\000\000\000x\003���*\000\000��z�",
    "�*\000\000k\023@\000\000\000\000\000�\f���*\000\000\b\t@\000\000\000\000\000\000\000\000\000\001\000\000\000\234\a\000\000\001\000\000\000��`\000\000\000\000\000X\003,��*\000\000\000!\200��\177\000\000�
\200��\177\000\000.N=�",
    "\000\000\000\000�
\200��\177\000\000\000\000\000\000\000\000\000\000R�*��*\000\000\000\000\000\000\000\000\000\000x\003���*\000\000\001\000\000\000�\177\000\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000�\024\202�@\000\000\000��`",
    '\0' <repeats 12 times>,
"�!\200��\177\000\000@\004\000\000\001\000\000\000x\003���*\000\000X\003,��*\000\0000!\200��\177\000\000\000\000,��*\000\000k\023@\000\000\000\000\000s(+�\000\000\000\000\001\000\000"}}
(gdb)

Though I am a bit lost in the backtrace...
Anyone having an idea?

Markus


More information about the grass-dev mailing list