[GRASS-dev] r.los segfaulting x86_64

Hi, I just compiled grass 63-cvs and tried to run r.los module only
think I get is

GRASS 6.3.cvs (spearfish60):~ > r.los input=elevation.dem out=tmp
coordinate=603336,4925505.75 obs_elev=1.8
WARNING: Segment_format: Illegal seek
Segmentation fault
GRASS 6.3.cvs (spearfish60):~ >

When I try the debugger (not sure, what I'm doing), I get:

Starting program: /usr/local/grass-6.3.cvs/bin/r.los input=elevation.dem
out=tmp coordinate=603336,4925505.75 obs_elev=1.8
WARNING: Segment_format: Illegal seek

Program received signal SIGSEGV, Segmentation fault.
0x00002b71ce0c034a in segment_pagein (SEG=0x7fffdcb00080, n=0) at
pagein.c:46
46 if (n == SEG->scb[SEG->cur].n)
(gdb) bt
#0 0x00002b71ce0c034a in segment_pagein (SEG=0x7fffdcb00080, n=0)
    at pagein.c:46
#1 0x00002b71ce0c05cd in segment_put (SEG=0x7fffdcb00080,
buf=0x7fffdcafe9a4,
    row=<value optimized out>, col=<value optimized out>) at put.c:48
#2 0x0000000000401c8e in delete (PT_TO_DELETE=0x5e07a0, head=0x507790,
    seg_out_p=0x0, row_viewpt=0, col_viewpt=-592451212) at delete.c:32
#3 0x000000000040304f in hidden_point_elimination (head=0x507790,
    viewpt_elev=1329, seg_in_p=0x7fffdcb000c0,
seg_out_p=0x7fffdcb00080,
    seg_patt_p=0x7fffdcb00040, quadrant=1, sign_on_y=1, sign_on_x=1,
    row_viewpt=83, col_viewpt=445, patt_flag=0) at pts_elim.c:189
#4 0x000000000040243f in main (argc=<value optimized out>,
    argv=<value optimized out>) at main.c:322

any hint what to do?

Thanks

jachym
--
Jachym Cepicky
e-mail: jachym.cepicky@gmail.com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

Tested GRASS 6.2.3 - it works

Jachym

Jachym Cepicky píše v Pá 07. 12. 2007 v 13:21 +0100:

Hi, I just compiled grass 63-cvs and tried to run r.los module only
think I get is

GRASS 6.3.cvs (spearfish60):~ > r.los input=elevation.dem out=tmp
coordinate=603336,4925505.75 obs_elev=1.8
WARNING: Segment_format: Illegal seek
Segmentation fault
GRASS 6.3.cvs (spearfish60):~ >

When I try the debugger (not sure, what I'm doing), I get:

Starting program: /usr/local/grass-6.3.cvs/bin/r.los input=elevation.dem
out=tmp coordinate=603336,4925505.75 obs_elev=1.8
WARNING: Segment_format: Illegal seek

Program received signal SIGSEGV, Segmentation fault.
0x00002b71ce0c034a in segment_pagein (SEG=0x7fffdcb00080, n=0) at
pagein.c:46
46 if (n == SEG->scb[SEG->cur].n)
(gdb) bt
#0 0x00002b71ce0c034a in segment_pagein (SEG=0x7fffdcb00080, n=0)
    at pagein.c:46
#1 0x00002b71ce0c05cd in segment_put (SEG=0x7fffdcb00080,
buf=0x7fffdcafe9a4,
    row=<value optimized out>, col=<value optimized out>) at put.c:48
#2 0x0000000000401c8e in delete (PT_TO_DELETE=0x5e07a0, head=0x507790,
    seg_out_p=0x0, row_viewpt=0, col_viewpt=-592451212) at delete.c:32
#3 0x000000000040304f in hidden_point_elimination (head=0x507790,
    viewpt_elev=1329, seg_in_p=0x7fffdcb000c0,
seg_out_p=0x7fffdcb00080,
    seg_patt_p=0x7fffdcb00040, quadrant=1, sign_on_y=1, sign_on_x=1,
    row_viewpt=83, col_viewpt=445, patt_flag=0) at pts_elim.c:189
#4 0x000000000040243f in main (argc=<value optimized out>,
    argv=<value optimized out>) at main.c:322

any hint what to do?

Thanks

jachym
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

--
Jachym Cepicky
e-mail: jachym.cepicky@gmail.com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

Fixed in CVS.

Markus

Jachym Cepicky-4 wrote:

Hi, I just compiled grass 63-cvs and tried to run r.los module only
think I get is

GRASS 6.3.cvs (spearfish60):~ > r.los input=elevation.dem out=tmp
coordinate=603336,4925505.75 obs_elev=1.8
WARNING: Segment_format: Illegal seek
Segmentation fault
GRASS 6.3.cvs (spearfish60):~ >

When I try the debugger (not sure, what I'm doing), I get:

Starting program: /usr/local/grass-6.3.cvs/bin/r.los input=elevation.dem
out=tmp coordinate=603336,4925505.75 obs_elev=1.8
WARNING: Segment_format: Illegal seek

Program received signal SIGSEGV, Segmentation fault.
0x00002b71ce0c034a in segment_pagein (SEG=0x7fffdcb00080, n=0) at
pagein.c:46
46 if (n == SEG->scb[SEG->cur].n)
(gdb) bt
#0 0x00002b71ce0c034a in segment_pagein (SEG=0x7fffdcb00080, n=0)
    at pagein.c:46
#1 0x00002b71ce0c05cd in segment_put (SEG=0x7fffdcb00080,
buf=0x7fffdcafe9a4,
    row=<value optimized out>, col=<value optimized out>) at put.c:48
#2 0x0000000000401c8e in delete (PT_TO_DELETE=0x5e07a0, head=0x507790,
    seg_out_p=0x0, row_viewpt=0, col_viewpt=-592451212) at delete.c:32
#3 0x000000000040304f in hidden_point_elimination (head=0x507790,
    viewpt_elev=1329, seg_in_p=0x7fffdcb000c0,
seg_out_p=0x7fffdcb00080,
    seg_patt_p=0x7fffdcb00040, quadrant=1, sign_on_y=1, sign_on_x=1,
    row_viewpt=83, col_viewpt=445, patt_flag=0) at pts_elim.c:189
#4 0x000000000040243f in main (argc=<value optimized out>,
    argv=<value optimized out>) at main.c:322

any hint what to do?

Thanks

jachym
--
Jachym Cepicky
e-mail: jachym.cepicky@gmail.com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

--
View this message in context: http://www.nabble.com/r.los-segfaulting-x86_64-tf4961791.html#a14221442
Sent from the Grass - Dev mailing list archive at Nabble.com.

Markus Neteler wrote:

Fixed in CVS.

FWIW I don't think a percent memory option was useful for r.los anyway, so no
loss. The current method gets so slow by the time that the region is > 500x500,
that by the time system memory was a problem it would take centuries to finish.

Hamish

      ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

So what was the actual fix?
I suppose the segmented memory management was dropped?

Benjamin

Hamish wrote:

Markus Neteler wrote:

Fixed in CVS.

FWIW I don't think a percent memory option was useful for r.los anyway, so no
loss. The current method gets so slow by the time that the region is > 500x500,
that by the time system memory was a problem it would take centuries to finish.

Hamish

      ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

--
Benjamin Ducke, M.A.
Archäoinformatik
(Archaeoinformation Science)
Institut für Ur- und Frühgeschichte
(Inst. of Prehistoric and Historic Archaeology)
Christian-Albrechts-Universität zu Kiel
Johanna-Mestorf-Straße 2-6
D 24098 Kiel
Germany

Tel.: ++49 (0)431 880-3378 / -3379
Fax : ++49 (0)431 880-7300
www.uni-kiel.de/ufg