G70> gdb `which v.build` (gdb) run map=seg005 [cut] D1/2: Vect_Rewind(): name = seg005 level = 1 D1/2: Vect_open_sidx(): name = seg005 mapset= pietro mode = new D1/2: Memory based spatial index D2/2: dig_cidx_free() D1/2: Vect_Rewind(): name = seg005 level = 1 Building areas... Unexpected error. Program received signal SIGABRT, Aborted. 0x00007ffff729b3d9 in raise () from /usr/lib/libc.so.6 (gdb) bt full #0 0x00007ffff729b3d9 in raise () from /usr/lib/libc.so.6 No symbol table info available. #1 0x00007ffff729c7d8 in abort () from /usr/lib/libc.so.6 No symbol table info available. #2 0x00007ffff7294506 in __assert_fail_base () from /usr/lib/libc.so.6 No symbol table info available. #3 0x00007ffff72945b2 in __assert_fail () from /usr/lib/libc.so.6 No symbol table info available. #4 0x00007ffff6601ebd in RTreeNewListBranch (t=0x609c30) at node.c:441 p = 0x0 __PRETTY_FUNCTION__ = "RTreeNewListBranch" #5 0x00007ffff6601f0e in RTreeReInsertBranch (b=..., level=0, ee=0x7fffffffc530, t=0x609c30) at node.c:456 l = 0xe6bbdb #6 0x00007ffff660248b in RTreeRemoveBranches (n=0x20e7d8db0, b=0x609d58, ee=0x7fffffffc530, cover=0x20dcff3c0, t=0x609c30) at node.c:526 i = 0 j = 2 maxkids = 9 type = 0 center_r = 7090380.0850708243 delta = 0 rdist = {{id = 8, distance = 21.734826991031039}, {id = 6, distance = 25.265005897599387}, {id = 9, distance = 50.460792597578418}, {id = 7, distance = 56.067547330275147}, {id = 4, distance = 66.035111299513773}, {id = 2, distance = 71.503427645668225}, {id = 3, distance = 101.47533875529244}, {id = 1, distance = 155.7431870289096}, {id = 0, distance = 259.84885517371265}, {id = 5, distance = 269.47032316330291}} new_cover = 0x609d98 center_n = 0x60a820 __PRETTY_FUNCTION__ = "RTreeRemoveBranches" #7 0x00007ffff6602727 in RTreeAddBranch (b=0x609d58, n=0x20e7d8db0, newnode=0x7fffffffc490, ee=0x7fffffffc530, cover=0x20dcff3c0, overflow=0x7fffffffc510 '\001' , "\377\177", t=0x609c30) at node.c:579 i = 9 maxkids = 9 __PRETTY_FUNCTION__ = "RTreeAddBranch" #8 0x00007ffff66001c8 in RTreeInsertRect2M (r=0x7ffff6c27908 , child=..., level=0, newnode=0x7fffffffc538, t=0x609c30, ee=0x7fffffffc530, overflow=0x7fffffffc510 '\001' , "\377\177") at indexm.c:135 i = 2 n = 0x20dcff380 n2 = 0x0 cover = 0x20dcff3c0 top = 8 down = 0 result = 0 b = 0x609d58 s = 0x60a0c0 #9 0x00007ffff66004b7 in RTreeInsertRectM (r=0x7ffff6c27908 , child=..., level=0, t=0x609c30) at indexm.c:199 newnode = 0x5459d4 newroot = 0x5b0c3348cc056741 reInsertList = 0x0 e = 0x3 result = 3 overflow = '\001' b = 0x609d48 #10 0x00007ffff66051d8 in RTreeInsertRect (r=0x7ffff6c27908 , tid=5528020, t=0x609c30) at index.c:324 newchild = {id = 5528020, ptr = 0x5459d4, pos = 5528020} __PRETTY_FUNCTION__ = "RTreeInsertRect" #11 0x00007ffff6a16b22 in dig_spidx_add_area (Plus=0x7fffffffd290, area=5528020, box=0x7fffffffc680) at spindex.c:373 ---Type to continue, or q to quit--- rect = {boundary = 0x1bfb8c9e0} rect_init = 6 #12 0x00007ffff6a10c9a in dig_add_area (plus=0x7fffffffd290, n_lines=4, lines=0x1bfb9ce30, box=0x7fffffffc680) at plus_area.c:241 i = 4 area = 5528020 line = 15121371 Area = 0x20e85acc0 Line = 0x15cbd6470 topo = 0x15cbd6490 #13 0x00007ffff7b83b6b in Vect_build_line_area (Map=0x7fffffffd280, iline=15119628, side=1) at build.c:129 area = 0 isle = 0 n_lines = 4 plus = 0x7fffffffd290 box = {N = 7090381.6636432782, S = 7090378.5064983703, E = 745714.53107862209, W = 745710.32155207801, T = 0, B = 0} APoints = 0x1bfb71050 lines = 0x1bfb9ce30 area_size = 9.4138104151934385 #14 0x00007ffff7b86940 in Vect_build_nat (Map=0x7fffffffd280, build=4) at build_nat.c:149 plus = 0x7fffffffd290 i = 22296794 s = 0 type = -2 line = 15119628 offset = 3198718951 side = 1 area = 6338176 Cats = 0x60bb30 Line = 0x15cb2d620 Area = 0x7ffff6a0a100 box = {N = 7089187.4735818272, S = 7089187.4735818272, E = 756241.2414881211, W = 756241.2414881211, T = 0, B = 0} #15 0x00007ffff7b85138 in Vect_build_partial (Map=0x7fffffffd280, build=4) at build.c:858 plus = 0x7fffffffd290 ret = 0 #16 0x00007ffff7b848f3 in Vect_build (Map=0x7fffffffd280) at build.c:559 No locals. #17 0x0000000000401935 in main (argc=2, argv=0x7fffffffdbe8) at main.c:118 module = 0x7ffff7b59d08 map_opt = 0x7ffff7b59d68 opt = 0x607410 err_opt = 0x607350 chk = 0x7ffff7b59d38 Map = {format = 0, temporary = 0, dblnk = 0x60b740, plus = { version = {topo = {major = 0, minor = 0, back_major = 0, back_minor = 0}, spidx = {major = 0, minor = 0, back_major = 0, back_minor = 0}, cidx = {major = 0, minor = 0, back_major = 0, back_minor = 0}}, with_z = 0, spidx_with_z = 0, off_t_size = 0, head_size = 0, spidx_head_size = 0, cidx_head_size = 0, release_support = 0, port = {byte_order = 0, off_t_size = 0, dbl_cnvrt = "\000\000\000\000\000\000\000", flt_cnvrt = "\000\000\000", lng_cnvrt = "\000\000\000", int_cnvrt = "\000\000\000", shrt_cnvrt = "\000", off_t_cnvrt = "\000\000\000\000\000\000\000", dbl_quick = 0, flt_quick = 0, lng_quick = 0, int_quick = 0, shrt_quick = 0, off_t_quick = 0}, spidx_port = {byte_order = 0, off_t_size = 0, dbl_cnvrt = "\000\000\000\000\000\000\000", flt_cnvrt = "\000\000\000", lng_cnvrt = "\000\000\000", int_cnvrt = "\000\000\000", shrt_cnvrt = "\000", off_t_cnvrt = "\000\000\000\000\000\000\000", dbl_quick = 0, flt_quick = 0, lng_quick = 0, int_quick = 0, shrt_quick = 0, off_t_quick = 0}, cidx_port = {byte_order = 0, off_t_size = 0, dbl_cnvrt = "\000\000\000\000\000\000\000", flt_cnvrt = "\000\000\000", lng_cnvrt = "\000\000\000", int_cnvrt = "\000\000\000", shrt_cnvrt = "\000", ---Type to continue, or q to quit--- off_t_cnvrt = "\000\000\000\000\000\000\000", dbl_quick = 0, flt_quick = 0, lng_quick = 0, int_quick = 0, shrt_quick = 0, off_t_quick = 0}, mode = 0, built = 1, box = { N = 7104206.8011954101, S = 7089186.6842956003, E = 759827.49500820006, W = 745280.94984459004, T = 0, B = 0}, Node = 0x7fffdd179010, Line = 0x7fffb8c80010, Area = 0x7fffe5ec3010, Isle = 0x7fffeac63010, n_plines = 0, n_llines = 0, n_blines = 16325866, n_clines = 5970928, n_flines = 0, n_klines = 0, n_vfaces = 0, n_hfaces = 0, n_nodes = 10693030, n_edges = 0, n_lines = 22296794, n_areas = 5528019, n_isles = 309687, n_faces = 0, n_volumes = 0, n_holes = 0, alloc_nodes = 10694000, alloc_edges = 0, alloc_lines = 22297000, alloc_areas = 5529000, alloc_isles = 310000, alloc_faces = 0, alloc_volumes = 0, alloc_holes = 0, Node_offset = 0, Edge_offset = 0, Line_offset = 0, Area_offset = 0, Isle_offset = 0, Volume_offset = 0, Hole_offset = 0, Spidx_built = 1, Spidx_new = 1, Spidx_file = 0, spidx_fp = {file = 0x0, start = 0x0, current = 0x0, end = 0x0, size = 0, alloc = 0, loaded = 0}, Node_spidx_offset = 0, Line_spidx_offset = 0, Area_spidx_offset = 0, Isle_spidx_offset = 0, Face_spidx_offset = 0, Volume_spidx_offset = 0, Hole_spidx_offset = 0, Node_spidx = 0x607af0, Line_spidx = 0x609020, Area_spidx = 0x609c30, Isle_spidx = 0x60a840, Face_spidx = 0x0, Volume_spidx = 0x0, Hole_spidx = 0x0, update_cidx = 0, n_cidx = 2, a_cidx = 5, cidx = 0x60b450, cidx_up_to_date = 0, coor_size = 0, coor_mtime = 0, uplist = {do_uplist = 0, uplines = 0x0, uplines_offset = 0x0, alloc_uplines = 0, n_uplines = 0, upnodes = 0x0, alloc_upnodes = 0, n_upnodes = 0}}, open = 1428335138, mode = 0, level = 1, head_only = 0, support_updated = 1, name = 0x60b640 "seg005", mapset = 0x60b6c0 "pietro", location = 0x60b6e0 "combabula", gisdbase = 0x60b700 "/home/pietro", next_line = 0, constraint = { region_flag = 0, box = {N = 0, S = 0, E = 0, W = 0, T = 0, B = 0}, type_flag = 0, type = 0, field_flag = 0, field = 0}, proj = 0, hist_fp = 0x60bc00, dgraph = {line_type = 0, graph_s = { iErrno = 0, Version = 0 '\000', Endian = 0 '\000', NodeAttrSize = 0, EdgeAttrSize = 0, aOpaqueSet = { 0 }, cNode = 0, cHead = 0, cTail = 0, cAlone = 0, cEdge = 0, nnCost = 0, Flags = 0, nFamily = 0, nOptions = 0, pNodeTree = 0x0, pEdgeTree = 0x0, pNodeBuffer = 0x0, iNodeBuffer = 0, pEdgeBuffer = 0x0, iEdgeBuffer = 0, edgePrioritizer = {cEdge = 0, iEdge = 0, pEdgePri32Item = 0x0, pvAVL = 0x0}, nodePrioritizer = { pvAVL = 0x0}}, spCache = {nStartNode = 0, NodeHeap = { index = 0, count = 0, block = 0, pnode = 0x0}, pvVisited = 0x0, pvPredist = 0x0}, edge_fcosts = 0x0, edge_bcosts = 0x0, node_costs = 0x0, cost_multip = 0}, head = { organization = 0x60b720 "", date = 0x607a70 "", user_name = 0x607a90 "pietro", map_name = 0x607ab0 "", source_date = 0x6072d0 "Thu Nov 28 20:55:18 2013", orig_scale = 1, comment = 0x607520 "", proj = 1, plani_zone = -55, digit_thresh = 0, coor_version = {major = 5, minor = 1, back_major = 5, back_minor = 1}, with_z = 0, size = 0, head_size = 18, port = {byte_order = 0, off_t_size = 0, dbl_cnvrt = "\000\001\002\003\004\005\006\a", flt_cnvrt = "\000\001\002\003", lng_cnvrt = "\000\001\002\003", int_cnvrt = "\000\001\002\003", shrt_cnvrt = "\000\001", off_t_cnvrt = "\000\001\002\003\004\005\006\a", dbl_quick = 1, flt_quick = 1, lng_quick = 1, int_quick = 1, shrt_quick = 1, off_t_quick = 1}, last_offset = 2793609156, recycle = 0x0}, dig_fp = {file = 0x60b760, start = 0x0, current = 0x0, end = 0x0, size = 0, alloc = 0, loaded = 0}, fInfo = {i = 0, ogr = { driver_name = 0x0, dsn = 0x0, layer_name = 0x0, driver = 0x0, ds = 0x0, layer = 0x0, dbdriver = 0x0, dsn_options = 0x0, layer_options = 0x0, cache = {lines = 0x0, lines_types = 0x0, lines_cats = 0x0, lines_alloc = 0, lines_num = 0, lines_next = 0, fid = 0, sf_type = SF_UNKNOWN, ctype = 0}, feature_cache = 0x0, offset = {array = 0x0, array_num = 0, array_alloc = 0}, next_line = 0}, pg = {conninfo = 0x0, ---Type to continue, or q to quit--- db_name = 0x0, schema_name = 0x0, table_name = 0x0, fid_column = 0x0, geom_column = 0x0, feature_type = SF_UNKNOWN, coor_dim = 0, srid = 0, dbdriver = 0x0, inTransaction = 0, conn = 0x0, res = 0x0, cursor_name = 0x0, cursor_fid = 0, next_line = 0, cache = {lines = 0x0, lines_types = 0x0, lines_cats = 0x0, lines_alloc = 0, lines_num = 0, lines_next = 0, fid = 0, sf_type = SF_UNKNOWN, ctype = 0}, offset = {array = 0x0, array_num = 0, array_alloc = 0}, topogeom_column = 0x0, toposchema_name = 0x0, toposchema_id = 0, topo_geo_only = 0}}, site_att = 0x0, n_site_att = 0, n_site_dbl = 0, n_site_str = 0} i = 1 build = 1 dump = 0 sdump = 0 cdump = 0 fdump = 0 xname = "\000\240\372\367\377\177\000\000\320T\373\367\377\177\000\000\000\000\000\000\000\000\000\000\320T\373\367\377\177", '\000' , "\260\372\367\377\177\000\000д\372\367\377\177\000\000\250\271\372\367\377\177\000\000\210\000\373\367\377\177\000\000\330\364\372\367\377\177\000\000\000\240\372\367\377\177\000\000Ф\372\367\377\177\000\000\240\251\372\367\377\177\000\000\000\220\372\367\377\177\000\000\000P\373\367\377\177\000\000\000\340\372\367\377\177\000\000\320\344\372\367\377\177\000\000\320T\373\367\377\177\000\000\000\000\000\000\000\000\000\000P\222\336\367\377\177\000\000\000\375%\366\377\177\000\000\000\000\000\264\377\377\377\377\004\000\000\000\000\000\000\000\220\326\377\377\377\177\000\000\340$"... xmapset = "\000\000\000\000\377\177\000\000\000\300\372\367\377\177\000\000P\320\377\377\377\177\000\000\000\000 \240\377\377\377\377\260\224\371\365\377\177\000\000\345\224\336\367\377\177\000\000\001\000\000\000\377\177\000\000\240\331\372\367\377\177\000\000\200\320\377\377\377\177\000\000\000\000\200\240\377\377\377\377\240\224\371\365\377\177\000\000\345\224\336\367\377\177\000\000\001\000\000\000\000\000\000\000\320\324\372\367\377\177\000\000\260\320\377\377\377\177\000\000\061\000\000\000\064\000\000\000\220\224\371\365\377\177\000\000\345\224\336\367\377\177\000\000\001\000\000\000=\000\000\000\000\320\372\367\377\177\000\000\340\320\377\377\377\177\000\000C\000\000\000D\000\000\000\200\224\371\365\377\177\000\000\345\224\336\367\377\177\000\000\001\000\000\000\000\000\000\000"... opt_desc = 0x607540 "build;build topology;dump;write topology to stdout;sdump;write spatial index to stdout;cdump;write category index to stdout;fdump;write feature index to stdout (OGR simple-feature-based formats only)" (gdb) l 24 int main(int argc, char *argv[]) 25 { 26 struct GModule *module; 27 struct Option *map_opt, *opt, *err_opt; 28 struct Flag *chk; 29 struct Map_info Map; 30 int i, build, dump, sdump, cdump, fdump; 31 char xname[GNAME_MAX], xmapset[GMAPSET_MAX]; 32 char *opt_desc; 33 G_gisinit(argv[0]); (gdb) frame 2 #2 0x00007ffff7294506 in __assert_fail_base () from /usr/lib/libc.so.6 (gdb) l 34 35 module = G_define_module(); 36 G_add_keyword(_("vector")); 37 G_add_keyword(_("topology")); 38 G_add_keyword(_("geometry")); 39 module->label = _("Creates topology for vector map."); 40 module->description = _("Optionaly also checks for topological errors."); 41 42 map_opt = G_define_standard_option(G_OPT_V_MAP); 43 map_opt->label = NULL;