#2701 closed defect (fixed)
make garden fails
Reported by: | strk | Owned by: | robe |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.1.3 |
Component: | postgis | Version: | master |
Keywords: | Cc: |
Description
I don't really know what's the error triggering the failure. Here's the full log:
[strk@cdb:/usr/src/postgis/postgis(svn-trunk)] make garden ------------------------------------------------------ Generating SQL file from Documentation ------------------------------------------------------ make -C doc garden make[1]: Entering directory `/usr/src/postgis/postgis/doc' /usr/bin/xsltproc -o postgis_gardentest_22.sql xsl/postgis_gardentest.sql.xsl postgis-out.xml /usr/bin/xsltproc -o raster_gardentest_22.sql xsl/raster_gardentest.sql.xsl postgis-out.xml make[1]: Leaving directory `/usr/src/postgis/postgis/doc' ------------------------------------------------------ Launch regression Test ------------------------------------------------------ make -C regress garden make[1]: Entering directory `/usr/src/postgis/postgis/regress' createdb postgis_garden createlang plpgsql postgis_garden createlang: language "plpgsql" is already installed in database "postgis_garden" make[1]: *** [garden] Error 2 make[1]: Leaving directory `/usr/src/postgis/postgis/regress' make: *** [garden] Error 2
Change History (8)
comment:1 by , 11 years ago
Owner: | changed from | to
---|
comment:2 by , 11 years ago
doc/postgis_gardentest_22.sql is generated, yes. I see the "garden" rule in regress/Makefile does a manual database creation and run of psql, and wondering if it would make sense to have that done by run_test.pl directly. What would the "expected" result be ? We'd need a way for run_test.pl to evaluate the results…
comment:3 by , 11 years ago
r12424 fixes it. Very useful. Indeed it handled to crash the backend… Not sure how to now figure out which query did that. Robe ?
comment:4 by , 11 years ago
Last lines of the log file (postgis_garden_result.txt):
?column? ------------------------------------------------- GeometryST_AsTWKBAgg Single NULL: Start Testing (1 row) INSERT 0 1 BEGIN connection to server was lost
comment:5 by , 11 years ago
Here's the offending query:
SELECT ST_AsTWKBAgg(foo1.the_geom, 3) As result FROM ((SELECT CAST(Null As geometry) As the_geom)) As foo1 LIMIT 3;
\cc @nicklas
comment:6 by , 11 years ago
strk,
Looks like you figured it out. Hmm that used to crash my backend too but last I tried it it didn't after nicklas put in some patches after I put in #2672 . You sure you are running latest 2.2?
BTW to figure out the crashing entry the script writes to tables in the database. The last log entry in the postgis_garden_log22 (or 21 or whatever) is the crashing query since it writes the test before it runs it. Output of tests go in postgis_garden_log22_output
comment:7 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
strk — I reopened #2672 for your comment and closing this one out.
weird I don't even have a createlang plpgsql in the script. Olivier had set up the
make garden
Never looked to see what was behind it.
Does it generate the .sql files okay on your system?