Opened 7 years ago

Closed 7 years ago

#4042 closed defect (duplicate)

rect tree test failure

Reported by: dbaston Owned by: pramsey
Priority: medium Milestone: PostGIS 2.5.0
Component: postgis Version: master
Keywords: Cc:

Description

I'm seeing a cunit test failure in trunk:

Suite: measures
  Test: test_mindistance2d_tolerance ...passed
  Test: test_rect_tree_contains_point ...passed
  Test: test_rect_tree_intersects_tree ...FAILED
    1. cu_measures.c:413  - CU_ASSERT_EQUAL(tree_inter( "POLYGON((0 0, 3 1, 0 2, 3 3, 0 4, 3 5, 0 6, 5 6, 5 0, 0 0))", "GEOMETRYCOLLECTION(MULTILINESTRING((6 3, 8 4)),POINT(1 3.5))"),LW_FALSE)
  Test: test_lwgeom_segmentize2d ...passed
  Test: test_lwgeom_locate_along ...passed
  Test: test_lw_dist2d_pt_arc ...passed
  Test: test_lw_dist2d_seg_arc ...passed
  Test: test_lw_dist2d_arc_arc ...passed
  Test: test_lw_arc_length ...passed
  Test: test_lw_dist2d_pt_ptarrayarc ...passed
  Test: test_lw_dist2d_ptarray_ptarrayarc ...passed
  Test: test_lwgeom_tcpa ...passed
  Test: test_lwgeom_is_trajectory ...passed
  Test: test_rect_tree_distance_tree ...NOTICE: liblwgeom code interrupted
NOTICE: liblwgeom code interrupted
NOTICE: liblwgeom code interrupted
NOTICE: liblwgeom code interrupted
NOTICE: Geometry is not a LINESTRING
NOTICE: Line does not have M dimension
NOTICE: Measure of vertex 1 (1) not bigger than measure of vertex 0 (1)
NOTICE: Measure of vertex 1 (0) not bigger than measure of vertex 0 (1)
NOTICE: Measure of vertex 2 (2) not bigger than measure of vertex 1 (3)
passed

The above is taken from this GitLab CI output:

https://gitlab.com/dbaston/postgis/-/jobs/56625842

The build environment is the following Docker image: dbaston/postgis-build-env:latest

Change History (5)

comment:1 by dbaston, 7 years ago

Getting the same error on my local machine, too.

comment:2 by pramsey, 7 years ago

But not on mine. Grr, I was afraid there'd be some platform issues where tree distance ended up differing from brute-force…

Run Summary:    Type  Total    Ran Passed Failed Inactive
              suites     41     41    n/a      0        0
               tests    288    288    288      0        0
             asserts   4013   4013   4013      0      n/a

comment:3 by dbaston, 7 years ago

If there's anything I can do to help debug, let me know.

comment:4 by dbaston, 7 years ago

==4342== Conditional jump or move depends on uninitialised value(s)
==4342==    at 0x4E51216: lw_dist2d_pt_seg (measures.c:2234)
==4342==    by 0x4E82C6B: rect_leaf_node_intersects (lwtree.c:131)
==4342==    by 0x4E82C6B: rect_tree_intersects_tree_recursive (lwtree.c:949)
==4342==    by 0x4E82AD4: rect_tree_intersects_tree_recursive (lwtree.c:963)
==4342==    by 0x4E82A69: rect_tree_intersects_tree_recursive (lwtree.c:973)
==4342==    by 0x41FAE7: tree_inter.constprop.0 (cu_measures.c:356)
==4342==    by 0x41FC4C: test_rect_tree_intersects_tree (cu_measures.c:409)
==4342==    by 0x52F9D36: ??? (in /usr/lib/x86_64-linux-gnu/libcunit.so.1.0.1)
==4342==    by 0x52FA06F: ??? (in /usr/lib/x86_64-linux-gnu/libcunit.so.1.0.1)
==4342==    by 0x52FA3BD: CU_run_all_tests (in /usr/lib/x86_64-linux-gnu/libcunit.so.1.0.1)
==4342==    by 0x40710C: main (cu_tester.c:173)
==4342== 
==4342== Conditional jump or move depends on uninitialised value(s)
==4342==    at 0x4E510B9: lw_dist2d_pt_pt (measures.c:2286)
==4342==    by 0x4E51294: lw_dist2d_pt_seg (measures.c:2268)
==4342==    by 0x4E82C6B: rect_leaf_node_intersects (lwtree.c:131)
==4342==    by 0x4E82C6B: rect_tree_intersects_tree_recursive (lwtree.c:949)
==4342==    by 0x4E82AD4: rect_tree_intersects_tree_recursive (lwtree.c:963)
==4342==    by 0x4E82A69: rect_tree_intersects_tree_recursive (lwtree.c:973)
==4342==    by 0x41FAE7: tree_inter.constprop.0 (cu_measures.c:356)
==4342==    by 0x41FC4C: test_rect_tree_intersects_tree (cu_measures.c:409)
==4342==    by 0x52F9D36: ??? (in /usr/lib/x86_64-linux-gnu/libcunit.so.1.0.1)
==4342==    by 0x52FA06F: ??? (in /usr/lib/x86_64-linux-gnu/libcunit.so.1.0.1)
==4342==    by 0x52FA3BD: CU_run_all_tests (in /usr/lib/x86_64-linux-gnu/libcunit.so.1.0.1)
==4342==    by 0x40710C: main (cu_tester.c:173)
==4342== 
==4342== Conditional jump or move depends on uninitialised value(s)
==4342==    at 0x4E82AD7: rect_tree_intersects_tree_recursive (lwtree.c:963)
==4342==    by 0x4E82A69: rect_tree_intersects_tree_recursive (lwtree.c:973)
==4342==    by 0x41FAE7: tree_inter.constprop.0 (cu_measures.c:356)
==4342==    by 0x41FC4C: test_rect_tree_intersects_tree (cu_measures.c:409)
==4342==    by 0x52F9D36: ??? (in /usr/lib/x86_64-linux-gnu/libcunit.so.1.0.1)
==4342==    by 0x52FA06F: ??? (in /usr/lib/x86_64-linux-gnu/libcunit.so.1.0.1)
==4342==    by 0x52FA3BD: CU_run_all_tests (in /usr/lib/x86_64-linux-gnu/libcunit.so.1.0.1)
==4342==    by 0x40710C: main (cu_tester.c:173)
==4342== 
==4342== Conditional jump or move depends on uninitialised value(s)
==4342==    at 0x4E82AD7: rect_tree_intersects_tree_recursive (lwtree.c:963)
==4342==    by 0x4E82A69: rect_tree_intersects_tree_recursive (lwtree.c:973)
==4342==    by 0x41FAE7: tree_inter.constprop.0 (cu_measures.c:356)
==4342==    by 0x41FC7B: test_rect_tree_intersects_tree (cu_measures.c:416)
==4342==    by 0x52F9D36: ??? (in /usr/lib/x86_64-linux-gnu/libcunit.so.1.0.1)
==4342==    by 0x52FA06F: ??? (in /usr/lib/x86_64-linux-gnu/libcunit.so.1.0.1)
==4342==    by 0x52FA3BD: CU_run_all_tests (in /usr/lib/x86_64-linux-gnu/libcunit.so.1.0.1)
==4342==    by 0x40710C: main (cu_tester.c:173)
==4342== 

Last edited 7 years ago by dbaston (previous) (diff)

comment:5 by Algunenano, 7 years ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.