Opened 13 years ago
Closed 13 years ago
#469 closed defect (invalid)
testrunner fail
Reported by: | aperi2007 | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 3.3.1 |
Component: | Default | Version: | main |
Severity: | Unassigned | Keywords: | |
Cc: |
Description
Hi, testing the last svn version of geos. When try the "make check" I see this error:
I work on a RedHat ES6 - 64 bit.
make[3]: Leaving directory `/home/archivio/postgres/software/geos/geos-svn/tests/bigtest' make[2]: Leaving directory `/home/archivio/postgres/software/geos/geos-svn/tests/bigtest' Making check in xmltester make[2]: Entering directory `/home/archivio/postgres/software/geos/geos-svn/tests/xmltester' make check-TESTS make[3]: Entering directory `/home/archivio/postgres/software/geos/geos-svn/tests/xmltester' Runner: testrunner created lt-XMLTester: GeometryComponentFilter.cpp:35: virtual void geos::geom::GeometryComponentFilter::filter_ro(const geos::geom::Geometry*): Assertion `0' failed. ./testrunner: line 2: 21747 Aborted (core dumped) ./XMLTester -v --test-valid-output ./tests/testLeaksBig.xml ./tests/split.xml ./tests/hexwkb.xml ./tests/test.xml ./tests/linemerge.xml ./tests/TestIsValid.xml ./tests/robustness.xml ./tests/buffer.xml ./tests/singlesidedbuffer.xml ./tests/ticket/bug176.xml ./tests/ticket/bug188.xml ./tests/ticket/bug244.xml ./tests/ticket/bug275.xml ./tests/ticket/bug350.xml ./tests/ticket/bug356.xml ./tests/ticket/bug358.xml ./tests/ticket/bug360.xml ./tests/ticket/bug366.xml ./tests/ticket/bug392.xml ./tests/ticket/bug398.xml ./tests/ticket/bug434.xml ./tests/general/TestBoundary.xml ./tests/general/TestBuffer.xml ./tests/general/TestBufferMitredJoin.xml ./tests/general/TestCentroid.xml ./tests/general/TestConvexHull.xml ./tests/general/TestConvexHull-big.xml ./tests/general/TestDistance.xml ./tests/general/TestFunctionAAPrec.xml ./tests/general/TestFunctionAA.xml ./tests/general/TestFunctionLAPrec.xml ./tests/general/TestFunctionLA.xml ./tests/general/TestFunctionLLPrec.xml ./tests/general/TestFunctionLL.xml ./tests/general/TestFunctionPA.xml ./tests/general/TestFunctionPLPrec.xml ./tests/general/TestFunctionPL.xml ./tests/general/TestFunctionPP.xml ./tests/general/TestInteriorPoint.xml ./tests/general/TestRectanglePredicate.xml ./tests/general/TestRelateAA.xml ./tests/general/TestRelateLA.xml ./tests/general/TestRelateLL.xml ./tests/general/TestRelatePL.xml ./tests/general/TestRelateAC.xml ./tests/general/TestRelateLC.xml ./tests/general/TestRelatePA.xml ./tests/general/TestRelatePP.xml ./tests/general/TestSimple.xml ./tests/general/TestUnaryUnion.xml ./tests/general/TestValid.xml ./tests/general/TestValid2.xml ./tests/general/TestValid2-big.xml ./tests/general/TestWithinDistance.xml ./tests/stmlf/stmlf-cases-20061020.xml ./tests/stmlf/stmlf-cases-20061020-invalid-output.xml ./tests/stmlf/stmlf-cases-20070119.xml ./tests/robust/TestRobustOverlayFixed.xml ./tests/robust/TestRobustRelate.xml ./tests/fme.xml ./tests/TestBufferExternal.xml ./tests/TestBufferExternal2.xml ./tests/heisenbugs.xml ./tests/badguy3.xml ./tests/hole_from_shell.xml ./tests/hole_red.xml ./tests/safe/16595.xml ./tests/safe/16596.xml FAIL: testrunner ================== 1 of 1 test failed ================== make[3]: *** [check-TESTS] Error 1 make[3]: Leaving directory `/home/archivio/postgres/software/geos/geos-svn/tests/xmltester' make[2]: *** [check-am] Error 2 make[2]: Leaving directory `/home/archivio/postgres/software/geos/geos-svn/tests/xmltester' make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory `/home/archivio/postgres/software/geos/geos-svn/tests' make: *** [check-recursive] Error 1 [postgres@artu geos-svn]$
Change History (9)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
I'm not sure to execute well your prescriptions.
I try:
gdb --args ./XMLTester -v --test-valid-output ./tests/testLeaksBig.xml .....
after execution it enter in gdb . I type bt, but it report: 'no stack'
To give more information, I report also the last part of messages from console..
...... Making check in tests make[1]: Entering directory `/home/archivio/postgres/software/geos/geos-svn/tests' Making check in bigtest make[2]: Entering directory `/home/archivio/postgres/software/geos/geos-svn/tests/bigtest' make bug234 TestSweepLineSpeed make[3]: Entering directory `/home/archivio/postgres/software/geos/geos-svn/tests/bigtest' make[3]: `bug234' is up to date. make[3]: `TestSweepLineSpeed' is up to date. make[3]: Leaving directory `/home/archivio/postgres/software/geos/geos-svn/tests/bigtest' make[2]: Leaving directory `/home/archivio/postgres/software/geos/geos-svn/tests/bigtest' Making check in xmltester make[2]: Entering directory `/home/archivio/postgres/software/geos/geos-svn/tests/xmltester' make check-TESTS make[3]: Entering directory `/home/archivio/postgres/software/geos/geos-svn/tests/xmltester' make[3]: Warning: File `testrunner' has modification time 21 s in the future GNU gdb (GDB) Red Hat Enterprise Linux (7.2-48.el6) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... "/home/archivio/postgres/software/geos/geos-svn/tests/xmltester/XMLTester": not in executable format: File format not recognized (gdb) bt No stack. (gdb)
comment:3 by , 13 years ago
Hi, I have obtain some result from gdb.
after an execution it report this I'm not sure if it is really useful :)
make check-TESTS make[3]: Entering directory `/home/archivio/postgres/software/geos/geos-svn/tests/unit' =============================== GEOS Test Suite Application =============================== capi::GEOSBuffer: .................... capi::GEOSContains: ... capi::GEOSCoordSeq: ......lt-geos_unit: GeometryComponentFilter.cpp:35: virtual void geos::geom::GeometryComponentFilter::filter_ro(const geos::geom::Geometry*): Assertion `0' failed. /bin/sh: line 5: 23596 Aborted (core dumped) ${dir}$tst FAIL: geos_unit ================== 1 of 1 test failed ================== make[3]: *** [check-TESTS] Error 1 make[3]: Leaving directory `/home/archivio/postgres/software/geos/geos-svn/tests/unit' make[2]: *** [check-am] Error 2 make[2]: Leaving directory `/home/archivio/postgres/software/geos/geos-svn/tests/unit' make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory `/home/archivio/postgres/software/geos/geos-svn/tests' make: *** [check-recursive] Error 1 [postgres@artu geos-svn]$
comment:4 by , 13 years ago
Oops, XMLTester is a libtool script, you'll need:
libtool --mode=execute gdb --args ./XMLTester ....
comment:5 by , 13 years ago
I tested.. this is the result.
make[3]: Entering directory `/home/archivio/postgres/software/geos/geos-svn/tests/bigtest' g++ -DHAVE_CONFIG_H -I. -I../../include -I../../include/geos -I../../include -I../../src/io/markup -DGEOS_INLINE -pedantic -Wall -ansi -Wno-long-long -ffloat-store -g -O2 -MT bug234.o -MD -MP -MF .deps/bug234.Tpo -c -o bug234.o bug234.cpp mv -f .deps/bug234.Tpo .deps/bug234.Po /bin/sh ../../libtool --tag=CXX --mode=link g++ -DGEOS_INLINE -pedantic -Wall -ansi -Wno-long-long -ffloat-store -g -O2 -lstdc++ -o bug234 bug234.o ../../src/libgeos.la ../../src/libgeos.la libtool: link: g++ -DGEOS_INLINE -pedantic -Wall -ansi -Wno-long-long -ffloat-store -g -O2 -o .libs/bug234 bug234.o -lstdc++ ../../src/.libs/libgeos.so -Wl,-rpath -Wl,/usr/local/lib g++ -DHAVE_CONFIG_H -I. -I../../include -I../../include/geos -I../../include -I../../src/io/markup -DGEOS_INLINE -pedantic -Wall -ansi -Wno-long-long -ffloat-store -g -O2 -MT TestSweepLineSpeed.o -MD -MP -MF .deps/TestSweepLineSpeed.Tpo -c -o TestSweepLineSpeed.o TestSweepLineSpeed.cpp mv -f .deps/TestSweepLineSpeed.Tpo .deps/TestSweepLineSpeed.Po g++ -DHAVE_CONFIG_H -I. -I../../include -I../../include/geos -I../../include -I../../src/io/markup -DGEOS_INLINE -pedantic -Wall -ansi -Wno-long-long -ffloat-store -g -O2 -MT GeometryTestFactory.o -MD -MP -MF .deps/GeometryTestFactory.Tpo -c -o GeometryTestFactory.o GeometryTestFactory.cpp mv -f .deps/GeometryTestFactory.Tpo .deps/GeometryTestFactory.Po /bin/sh ../../libtool --tag=CXX --mode=link g++ -DGEOS_INLINE -pedantic -Wall -ansi -Wno-long-long -ffloat-store -g -O2 -lstdc++ -o TestSweepLineSpeed TestSweepLineSpeed.o GeometryTestFactory.o ../../src/libgeos.la ../../src/libgeos.la libtool: link: g++ -DGEOS_INLINE -pedantic -Wall -ansi -Wno-long-long -ffloat-store -g -O2 -o .libs/TestSweepLineSpeed TestSweepLineSpeed.o GeometryTestFactory.o -lstdc++ ../../src/.libs/libgeos.so -Wl,-rpath -Wl,/usr/local/lib make[3]: Leaving directory `/home/archivio/postgres/software/geos/geos-svn/tests/bigtest' make[2]: Leaving directory `/home/archivio/postgres/software/geos/geos-svn/tests/bigtest' Making check in xmltester make[2]: Entering directory `/home/archivio/postgres/software/geos/geos-svn/tests/xmltester' make check-TESTS make[3]: Entering directory `/home/archivio/postgres/software/geos/geos-svn/tests/xmltester' make[3]: Warning: File `testrunner.sh' has modification time 26 s in the future Runner: testrunner created GNU gdb (GDB) Red Hat Enterprise Linux (7.2-48.el6) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /home/archivio/postgres/software/geos/geos-svn/tests/xmltester/.libs/lt-XMLTester...done. (gdb) bt No stack. (gdb)
comment:6 by , 13 years ago
Hi, finally I found how execute the program :)
This is the result of execution with gdb:
make[3]: `bug234' is up to date. make[3]: `TestSweepLineSpeed' is up to date. make[3]: Leaving directory `/home/archivio/postgres/software/geos/geos-svn/tests/bigtest' make[2]: Leaving directory `/home/archivio/postgres/software/geos/geos-svn/tests/bigtest' Making check in xmltester make[2]: Entering directory `/home/archivio/postgres/software/geos/geos-svn/tests/xmltester' make check-TESTS make[3]: Entering directory `/home/archivio/postgres/software/geos/geos-svn/tests/xmltester' GNU gdb (GDB) Red Hat Enterprise Linux (7.2-48.el6) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /home/archivio/postgres/software/geos/geos-svn/tests/xmltester/.libs/lt-XMLTester...done. (gdb) start Temporary breakpoint 1 at 0x40e290: file XMLTester.cpp, line 1458. Starting program: /home/archivio/postgres/software/geos/geos-svn/tests/xmltester/.libs/lt-XMLTester -v --test-valid-output ./tests/testLeaksBig.xml ./tests/split.xml ./tests/hexwkb.xml ./tests/test.xml ./tests/linemerge.xml ./tests/TestIsValid.xml ./tests/robustness.xml ./tests/buffer.xml ./tests/singlesidedbuffer.xml ./tests/ticket/bug176.xml ./tests/ticket/bug188.xml ./tests/ticket/bug244.xml ./tests/ticket/bug275.xml ./tests/ticket/bug350.xml ./tests/ticket/bug356.xml ./tests/ticket/bug358.xml ./tests/ticket/bug360.xml ./tests/ticket/bug366.xml ./tests/ticket/bug392.xml ./tests/ticket/bug398.xml ./tests/ticket/bug434.xml ./tests/general/TestBoundary.xml ./tests/general/TestBuffer.xml ./tests/general/TestBufferMitredJoin.xml ./tests/general/TestCentroid.xml ./tests/general/TestConvexHull.xml ./tests/general/TestConvexHull-big.xml ./tests/general/TestDistance.xml ./tests/general/TestFunctionAAPrec.xml ./tests/general/TestFunctionAA.xml ./tests/general/TestFunctionLAPrec.xml ./tests/general/TestFunctionLA.xml ./tests/general/TestFunctionLLPrec.xml ./tests/general/TestFunctionLL.xml ./tests/general/TestFunctionPA.xml ./tests/general/TestFunctionPLPrec.xml ./tests/general/TestFunctionPL.xml ./tests/general/TestFunctionPP.xml ./tests/general/TestInteriorPoint.xml ./tests/general/TestRectanglePredicate.xml ./tests/general/TestRelateAA.xml ./tests/general/TestRelateLA.xml ./tests/general/TestRelateLL.xml ./tests/general/TestRelatePL.xml ./tests/general/TestRelateAC.xml ./tests/general/TestRelateLC.xml ./tests/general/TestRelatePA.xml ./tests/general/TestRelatePP.xml ./tests/general/TestSimple.xml ./tests/general/TestUnaryUnion.xml ./tests/general/TestValid.xml ./tests/general/TestValid2.xml ./tests/general/TestValid2-big.xml ./tests/general/TestWithinDistance.xml ./tests/stmlf/stmlf-cases-20061020.xml ./tests/stmlf/stmlf-cases-20061020-invalid-output.xml ./tests/stmlf/stmlf-cases-20070119.xml ./tests/robust/TestRobustOverlayFixed.xml ./tests/robust/TestRobustRelate.xml ./tests/fme.xml ./tests/TestBufferExternal.xml ./tests/TestBufferExternal2.xml ./tests/heisenbugs.xml ./tests/badguy3.xml ./tests/hole_from_shell.xml ./tests/hole_red.xml ./tests/safe/16595.xml ./tests/safe/16596.xml Temporary breakpoint 1, main (argC=71, argV=0x7fffffffd838) at XMLTester.cpp:1458 1458 { Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.25.el6_1.3.x86_64 libgcc-4.4.5-6.el6.x86_64 libstdc++-4.4.5-6.el6.x86_64 (gdb) libstdc++-4.4.5-6.el6.x86_64
and this is the result of bt command:
#0 main (argC=71, argV=0x7fffffffd838) at XMLTester.cpp:1458
Regards,
comment:7 by , 13 years ago
Hi, sorry for my slow steps forward, but I'm no skill with gdb.
this is the final result of backtrace :
Temporary breakpoint 1, main (argC=71, argV=0x7fffffffd838) at XMLTester.cpp:1458 1458 { Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.25.el6_1.3.x86_64 libgcc-4.4.5-6.el6.x86_64 libstdc++-4.4.5-6.el6.x86_64 (gdb) libstdc++-4.4.5-6.el6.x86_64 Undefined command: "libstdc++-4". Try "help". (gdb) bt #0 main (argC=71, argV=0x7fffffffd838) at XMLTester.cpp:1458 (gdb) q A debugging session is active. Inferior 1 [process 31527] will be killed. Quit anyway? (y or n) n Not confirmed. (gdb) continue Continuing. lt-XMLTester: GeometryComponentFilter.cpp:35: virtual void geos::geom::GeometryComponentFilter::filter_ro(const geos::geom::Geometry*): Assertion `0' failed. Program received signal SIGABRT, Aborted. 0x00007ffff746d905 in raise () from /lib64/libc.so.6 (gdb) bt #0 0x00007ffff746d905 in raise () from /lib64/libc.so.6 #1 0x00007ffff746f0e5 in abort () from /lib64/libc.so.6 #2 0x00007ffff74669be in __assert_fail_base () from /lib64/libc.so.6 #3 0x00007ffff7466a80 in __assert_fail () from /lib64/libc.so.6 #4 0x00007ffff7afcb13 in geos::geom::GeometryComponentFilter::filter_ro ( this=<value optimized out>, geom=<value optimized out>) at GeometryComponentFilter.cpp:35 #5 0x00007ffff7b631c5 in getLines (this=0x7fffffffc7f0) at ../../../include/geos/geom/util/LinearComponentExtracter.h:57 #6 geos::operation::distance::DistanceOp::computeFacetDistance ( this=0x7fffffffc7f0) at DistanceOp.cpp:396 #7 0x00007ffff7b63871 in geos::operation::distance::DistanceOp::distance ( this=0x7fffffffc7f0) at DistanceOp.cpp:148 #8 0x00007ffff7b63b50 in geos::operation::distance::DistanceOp::distance ( g0=<value optimized out>, g1=<value optimized out>) at DistanceOp.cpp:63 #9 0x000000000040cc46 in XMLTester::parseTest (this=0x7fffffffd610, node=<value optimized out>) at XMLTester.cpp:1375 #10 0x000000000040d41b in XMLTester::parseCase (this=0x7fffffffd610, node=<value optimized out>) at XMLTester.cpp:644 #11 0x000000000040da23 in XMLTester::parseRun (this=0x7fffffffd610, node=<value optimized out>) at XMLTester.cpp:449 #12 0x000000000040df99 in XMLTester::run (this=0x7fffffffd610, source= "./tests/general/TestDistance.xml") at XMLTester.cpp:399 #13 0x000000000040e41a in main (argC=71, argV=<value optimized out>) at XMLTester.cpp:1507 (gdb)
comment:8 by , 13 years ago
Hi, changing the configure phase in this mode it seem work.
CFLAGS="-m64" CPPFLAGS="-m64" CXXFLAGS="-m64" LDFLAGS="-m64" FFLAGS="-m64" LDFLAGS="-L/usr/lib64/" ./configure --enable-python
Now the "make check" start and end without any error.
it only report some strange notice like these:
capi::GEOSBuffer: .................... capi::GEOSContains: ... capi::GEOSCoordSeq: ...... capi::GEOSDistance: . capi::GEOSGeomFromWKB: ..... capi::GEOSGeomToWKT: ............. capi::GEOSGeom_create: ....... capi::GEOSGeom_extractUniquePoints: ... capi::GEOSIntersects: ...NOTICE: IllegalArgumentException: RobustDeterminant encountered non-finite numbers .NOTICE: IllegalArgumentException: RobustDeterminant encountered non-finite numbers . capi::GEOSLineStringPoint: ... capi::GEOSOffsetCurve: ...... capi::GEOSOrientationIndex: ........... capi::GEOSPolygonizeGetCutEdges: .. capi::GEOSPreparedGeometry: ...... capi::GEOSRelateBoundaryNodeRule: .......NOTICE: Invalid boundary node rule 5 . capi::GEOSRelatePatternMatch: .....NOTICE: IllegalArgumentException: Geometry is not lineal capi::GEOSSharedPaths: ..NOTICE: IllegalArgumentException: Geometry is not lineal . capi::GEOSSimplify: . capi::GEOSSnap: .... capi::GEOSUnaryUnion: ........ capi::GEOSWithin: ... capi::GEOSisValidDetail: ...... geos::algorithm::Angle: .... geos::algorithm::CGAlgorithms::computeOrientation: .. geos::algorithm::CGAlgorithms::isCCW: ..... geos::algorithm::CGAlgorithms::isPointInRing: .. geos::algorithm::CGAlgorithms::signedArea: ... geos::algorithm::ConvexHull: ....... geos::algorithm::PointLocator: .... geos::algorithm::RobustLineIntersection: .. geos::algorithm::RobustLineIntersector: ............. geos::algorithm::distace::DiscreteHausdorffDistance: .... geos::geom::Coordinate: ......... geos::geom::CoordinateArraySequence: ................. geos::geom::CoordinateArraySequenceFactory: .... geos::geom::CoordinateList: .. geos::geom::Dimension: ..... geos::geom::Envelope: ......... geos::geom::Geometry::clone: ....... geos::geom::Geometry::covers: ... geos::geom::Geometry::isRectangle: ....... geos::geom::GeometryFactory: .................................... geos::geom::IntersectionMatrix: ............................. geos::geom::LineSegment: ...... geos::geom::LineString: ......................... geos::geom::LinearRing: .............................. geos::geom::Location: ... geos::geom::MultiLineString: . geos::geom::MultiPoint: ............................ geos::geom::MultiPolygon: . geos::geom::Point: ........................................ geos::geom::Polygon: ..................................... geos::geom::PrecisionModel: ......... geos::geom::Triangle: ..... geos::geom::prep::PreparedGeometryFactory: ............................. geos::geom::util::GeometryExtracter: .. geos::index::quadtree::DoubleBits: . geos::io::ByteOrderValues: ... geos::io::WKBReader: ....... geos::io::WKBWriter: ... geos::io::WKTReader: ...... geos::io::WKTWriter: ..... geos::linearref::LocationIndexedLine: ........................ geos::noding::BasicSegmentString: .... geos::noding::NodedSegmentString: ..... geos::noding::SegmentNode: .... geos::noding::SegmentPointComparator: ..... geos::operation::IsSimpleOp: ... geos::operation::buffer::BufferOp: ......... geos::operation::distance::DistanceOp: ................... geos::operation::geounion::CascadedPolygonUnion: . geos::operation::geounion::UnaryUnionOp: ..... geos::operation::linemerge::LineMerger: ...... geos::operation::linemerge::LineSequencer: ............ geos::operation::overlay::snap::GeometrySnapper: .. geos::operation::overlay::snap::LineStringSnapper: ....... geos::operation::overlay::validate::FuzzyPointLocator: ....... geos::operation::overlay::validate::OffsetPointGenerator: ..... geos::operation::overlay::validate::OverlayResultValidator: ...... geos::operation::polygonize::Polygonizer: .. geos::operation::sharedpaths::SharedPathsOp: ..................... geos::operation::valid::IsValidOp: . geos::operation::valid::ValidClosedRing: ..... geos::operation::valid::ValidSelfTouchingRingFormingHole: ....... geos::precision::SimpleGeometryPrecisionReducer: ....... geos::simplify::DouglasPeuckerSimplifier: .......... geos::simplify::TopologyPreservingSimplifier: .......... geos::util::UniqueCoordinateArrayFilter: . tests summary: ok:732 PASS: geos_unit ============= 1 test passed =============
I don't know if these are serious errors .
comment:9 by , 13 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Great to know there's finally no problem building geos. The notices are expected.
Can you obtain a backtrace ? If you edit 'testrunner' (it's a shell script) you can add a 'gdb --args' prefix to the ./XMLTester call, the enter 'bt'<enter> when you get the assertion