v.spag core-dumped!

Duc Nygen duc at comsearch.com
Tue Jun 15 09:52:06 EDT 1993


Dear grassp's:
  I have a rather spaghetti-like vector file and run v.spag to correct
after v.in.ascii, it core-dumped:

(gdb) run map=zcs01
Starting program: /usr/grass4.1/sparc-sun-solaris2/etc/bin/main/cmd/v.spag map=zcs01

Selected information from vector header
 Organization:  Comsearch
 Map Name:      ZC data zcs01.d
 Source Date:   
 Orig. Scale:   24000
 No snapping will be done 

    Reading Vector file.
 100%
    Cleaning lines less than thresh
Identical lines check  and   Line intersections

Program received signal 11, Segmentation fault
dig_bound_box2 (points=0xffff541c, N=0xfce40, S=0xfce48, E=0xfce50, W=0xfce58, 
    orig_scale=24000) at bound_box.c:61
61              if (*xptr < *W) *W = *xptr;
(gdb) where
#0  dig_bound_box2 (points=0xffff541c, N=0xfce40, S=0xfce48, E=0xfce50, W=0xfce58, 
    orig_scale=24000) at bound_box.c:61
#1  0x19060 in new_line (map=0xeffff4e0, type=2, node=0xeffff1d8, points=0x469c0)
    at new_line.c:54
#2  0x17574 in _do_break_line (map=0xeffff4e0, Points=0x469c0, label=0, type=33554432, 
    node=0xeffff1d8) at break2.c:334
#3  0x1740c in break_line_at_segs_w_point (map=0xeffff4e0, ux=-87.899391199999997, 
    uy=32.600338000000001, line=452, Aseg=53, Bseg=1, Points=0x46a00, on_node=0)
    at break2.c:287
#4  0x16df8 in break_lines_at_segs_w_point (map=0xeffff4e0, ux=-87.899391199999997, 
    uy=32.600338000000001, A=452, Aseg=-268438304, APoints=0x1, B=452, Bseg=1, 
    BPoints=0x46a10, node=0) at break2.c:19
#5  0x1850c in cross_lines (Map=0xeffff4e0, A=452, B=452) at intersect.c:202
#6  0x17e24 in intersect (Map=0xeffff4e0, ident_only=0) at intersect.c:74
#7  0x18d90 in main (argc=307808, argv=0xeffffb54) at main2.c:240

I am running grass4.1beta on Solaris 2.1.  I though maybe it's the problem
in Solaris version, so I tried grass4.0 on SunOS 4.1.2, the same thing happened:
GRASS 4.0 > v.spag map=zcs01

Selected information from vector header
 Organization:  Comsearch
 Map Name:      ZC data zcs01.d
 Source Date:   
 Orig. Scale:   24000
 No snapping will be done 

    Reading Vector file.
 100%
    Cleaning lines less than thresh
    Line intersections
Segmentation fault (core dumped)

Any help is appreciated.
thanks
duc at comsearch.com



More information about the grass-dev mailing list