Opened 15 years ago

Closed 15 years ago

#280 closed defect (worksforme)

in_gml regression test fails

Reported by: mloskot Owned by: colivier
Priority: medium Milestone: PostGIS 1.5.0
Component: postgis Version: master
Keywords: Cc:

Description (last modified by mloskot)

Running regression tests against PostGIS from current trunk (r4706) gives failure for the in_gml test

 in_gml. failed (diff expected obtained: /tmp/pgis_reg_27721/test_45_diff)

and it looks it crashes the server

$ tail -n 2 /tmp/pgis_reg_27721/test_45_diff
--- 1 ----
! psql: FATAL:  the database system is in recovery mode

I did full rebuild of both, PostGIS and GEOS.

Full test log attached.

The problem may be related to bug reported in #273.

Environment:

  • Linux 64-bit (Ubuntu 9.10 Karmic Koala)
  • GCC 4.4.1
  • GEOS (version 3.2.0 from SVN trunk 2710)
  • libxml2 2.7.5

Attachments (1)

test_45_diff (11.2 KB ) - added by mloskot 15 years ago.
in_gml test failure log

Download all attachments as: .zip

Change History (8)

by mloskot, 15 years ago

Attachment: test_45_diff added

in_gml test failure log

comment:1 by robe, 15 years ago

That's interesting. For what its worth, I finally got around to running it on my OpenSUSE 11 vm (32-bit) last night and it worked fine using the same ftp://xmlsoft.org/libxml2/libxml2-sources-2.7.6.tar.gz I was using on my mingW. Even garden tests well returned geometries didn't verify they were right.

Mateusz, which version of libxml2 were you compiling against.

The reason I thought my mingW libxml2 compile was at fault was because even the test exes that get built by libxml2 would hang too.

comment:2 by colivier, 15 years ago

Hi Mateusz

Some questions, what result of following commands on your system ?

ldd postgis/libpostgis-1.5.so xml2config --version ./configure | grep xml

Tks !

comment:3 by colivier, 15 years ago

I post again the commands with the right Wiki formatting:

ldd postgis/libpostgis-1.5.so
xml2config --version
./configure | grep xml

comment:4 by mloskot, 15 years ago

Description: modified (diff)

I use libxml2 2.7.5 installed from Ubuntu 9.10 packages

Here is output of the commands:

  • ldd
    $ ldd /usr/lib/postgresql/8.4/lib/postgis-1.5.so 
    	linux-vdso.so.1 =>  (0x00007ffffc7d1000)
    	libgeos_c.so.1 => /usr/local/lib/libgeos_c.so.1 (0x00007f28c74bd000)
    	libproj.so.0 => /usr/lib/libproj.so.0 (0x00007f28c727c000)
    	libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00007f28c6f2d000)
    	libc.so.6 => /lib/libc.so.6 (0x00007f28c6bbe000)
    	libgeos-3.2.0.so => /usr/local/lib/libgeos-3.2.0.so (0x00007f28c66bd000)
    	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f28c63ac000)
    	libm.so.6 => /lib/libm.so.6 (0x00007f28c6128000)
    	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f28c5f11000)
    	libdl.so.2 => /lib/libdl.so.2 (0x00007f28c5d0c000)
    	libz.so.1 => /lib/libz.so.1 (0x00007f28c5af5000)
    	/lib64/ld-linux-x86-64.so.2 (0x00007f28c7986000)
    
  • xml2config
    mloskot@vb-ubuntu910-x64:~/dev/postgis/_svn/trunk$ xml2config --version
    No command 'xml2config' found, did you mean:
     Command 'xml2-config' from package 'libxml2-dev' (main)
    xml2config: command not found
    mloskot@vb-ubuntu910-x64:~/dev/postgis/_svn/trunk$ xml2-config --version
    2.7.5
    mloskot@vb-ubuntu910-x64:~/dev/postgis/_svn/trunk$ ./configure | grep xml
    checking for xml2-config... /usr/bin/xml2-config
    checking libxml/tree.h usability... yes
    checking libxml/tree.h presence... yes
    checking for libxml/tree.h... yes
    checking libxml/parser.h usability... yes
    checking libxml/parser.h presence... yes
    checking for libxml/parser.h... yes
    checking for xmlInitParser in -lxml2... yes
      Libxml2 config:       /usr/bin/xml2-config
      Libxml2 version:      2.7.5
    

comment:5 by pramsey, 15 years ago

Owner: changed from pramsey to colivier

comment:6 by colivier, 15 years ago

Ok i get a shell on a Ubuntu 9.10 - 64bits

I'm not able to reproduce the bug, (same versions at all)

I guess that you loose the postgres connection with Hausdorff test (#279) and then when in_gml test occur it just can't be executed.

I suggest to comment, in the Makefile, the Hausdorff test and rerun make test

comment:7 by mloskot, 15 years ago

Resolution: worksforme
Status: newclosed

Yes, you are right. This problem is caused by the Hausdorff test. Disabling the Hausdorff makes the regression tests passing:

...
 regress_ogc_prep. ok
 regress_buffer_params. ok
 in_gml. ok

Run tests: 44
Failed: 0

I'm closing this ticket.

Note: See TracTickets for help on using tickets.