[geos-devel] Debugging results on Solaris

Paul Ramsey pramsey at refractions.net
Thu Apr 17 10:04:13 EDT 2003


For XML tester you need to edit the line which points to the tests.xml 
file. Yury leaves it set to a DOS path, which unix merrily ignores, so 
you aren't actually testing anything.

On Thursday, April 17, 2003, at 04:12 AM, Carsten Neumann wrote:

> I have recompiled the library with "-g" and now at least some of the 
> test
> run fine (XMLTester, CTS). The others still fail.
>
>> autoheader-1.6
>> automake-1.6 --add-missing --gnu
>> autoconf
>> configure CXXFLAGS="-g" CFLAGS="-g"
>> make
>
> **************************************************************
>
> bash-2.03$ gdb .libs/SimpleWKTTester
> This GDB was configured as "sparc-sun-solaris2.8"...
> (gdb) run
> Starting program:
> /home/neumancn/nexus/src/geos/source/test/.libs/SimpleWKTTeste
> r
> Start Testing:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0xff29aa6c in _ZN9WKTReader14getCoordinatesEP15StringTokenizer (
>     this=<incomplete type>, tokenizer=0x230b0) at 
> ../io/WKTReader.cpp:32
> 32              CoordinateList
> *coordinates=CoordinateListFactory::internalFacto
> ry->createCoordinateList();
> (gdb) bt
> #0  0xff29aa6c in _ZN9WKTReader14getCoordinatesEP15StringTokenizer (
>     this=<incomplete type>, tokenizer=0x230b0) at 
> ../io/WKTReader.cpp:32
> #1  0xff29cb58 in _ZN9WKTReader18readLineStringTextEP15StringTokenizer 
> (
>     this=<incomplete type>, tokenizer=0x230b0) at 
> ../io/WKTReader.cpp:155
> #2  0xff29c55c in 
> _ZN9WKTReader22readGeometryTaggedTextEP15StringTokenizer (
>     this=<incomplete type>, tokenizer=0x230b0) at 
> ../io/WKTReader.cpp:125
> #3  0xff29a814 in _ZN9WKTReader4readESs (this=<incomplete type>,
>     wellKnownText={static npos = <incomplete type>,
>       _M_dataplus = {<allocator<char>> = {<No data fields>},
>         _M_p = 0x29a14 "LINESTRING(40 40, 50 130, 130 130)"},
>       static _S_empty_rep_storage = {0, 0, 1, 0}}) at 
> ../io/WKTReader.cpp:20
> #4  0x11744 in main (argc=1, argv=0xffbef4f4) at SimpleWKTTester.cpp:27
>
> **************************************************************
>
> bash-2.03$ gdb .libs/CTS
> (gdb) run
> Starting program: /home/neumancn/nexus/src/geos/source/test/.libs/CTS
> Start:
> End
>
> Program exited normally.
>
> **************************************************************
>
> bash-2.03$ gdb .libs/XMLTester
> (gdb) run
> Starting program: 
> /home/neumancn/nexus/src/geos/source/test/.libs/XMLTester
> Precision Model:
> Failed: 0
> Succeeded: 0
> End Test
> Program exited normally.
>
> **************************************************************
>
> bash-2.03$ gdb .libs/CoordinateListsExample
> (gdb) run
> Starting program:
> /home/neumancn/nexus/src/geos/source/examples/.libs/Coordinate
> ListsExample
> Start:
>
>
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x11824 in main (argc=1, argv=0xffbef4e4) at 
> CoordinateListsExample.cpp:17
> 17              CoordinateList
> *cl1=CoordinateListFactory::internalFactory->crea
> teCoordinateList();
> (gdb) bt
> #0  0x11824 in main (argc=1, argv=0xffbef4e4) at
> CoordinateListsExample.cpp:17
>
> **************************************************************
>
> bash-2.03$ gdb .libs/CustomCoordinateListExample
> (gdb) run
> Starting program:
> /home/neumancn/nexus/src/geos/source/examples/.libs/CustomCoor
> dinateListExample
> Start:
>
>
> CoordinateList cl: (11,11,1.7e-308) (140,200,1.7e-308) 
> (240,200,1.7e-308)
> (55,55
> ,1.7e-308) (140,120,1.7e-308)
> CoordinateList cl: (140,120,1.7e-308) (140,200,1.7e-308) 
> (240,200,1.7e-308)
> (240
> ,120,1.7e-308) (140,120,1.7e-308)
>
> Geometry:
> POLYGON ((140.0000000000000000 120.0000000000000000, 
> 140.0000000000000000
> 200.00
> 00000000000000, 240.0000000000000000 200.0000000000000000,
> 240.0000000000000000
> 120.0000000000000000, 140.0000000000000000 120.0000000000000000))
>
> Program received signal SIGSEGV, Segmentation fault.
> 0xff2b3efc in
> _ZN22GeometryGraphOperation23setComputationPrecisionEP14PrecisionM
> odel (this=<incomplete type>, pm=0x2bc08)
>     at ../operation/GeometryGraphOperation.cpp:27
> 27              li->setMakePrecise(makePrecise);
> (gdb) bt
> #0  0xff2b3efc in
> _ZN22GeometryGraphOperation23setComputationPrecisionEP14Precis
> ionModel (this=<incomplete type>, pm=0x2bc08)
>     at ../operation/GeometryGraphOperation.cpp:27
> #1  0xff2b3b90 in _ZN22GeometryGraphOperationC2EP8Geometry (
>     this=<incomplete type>, g0=0x2cb10)
>     at ../operation/GeometryGraphOperation.cpp:16
> #2  0xff2c4420 in _ZN9IsValidOpC1EP8Geometry (this=<incomplete type>,
>     g=0x2cb10) at ../operation/valid/IsValidOp.cpp:22
> #3  0xff26a434 in _ZN8Geometry7isValidEv (this=<incomplete type>)
>     at Geometry.cpp:121
> #4  0x1519c in main (argc=1, argv=0xffbef4dc)
>     at CustomCoordinateListExample.cpp:56
>
>
> ___________
>
> Carsten
>
>
>
> _______________________________________________
> geos-devel mailing list
> geos-devel at geos.refractions.net
> http://geos.refractions.net/mailman/listinfo/geos-devel
>
      Paul Ramsey
      Refractions Research
      Email: pramsey at refractions.net
      Phone: (250) 885-0632




More information about the geos-devel mailing list