View Issue Details

IDProjectCategoryView StatusLast Update
0000619Pgpool-IIBugpublic2020-08-24 09:27
Reportergregn123 Assigned Topengbo  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionopen 
Product Version4.1.2 
Target Version4.1.3Fixed in Version4.1.3 
Summary0000619: Regression test 055.backend_all_down fails if PG_INSTALL_DIR is not set to "/usr/local/pgsql/bin" (the default value)
DescriptionRegression test 055.backend_all_down does not respect the PG_INSTALL_DIR setting in regress.sh - the test fails with the following type of error if PG_INSTALL_DIR is changed to something other than (the default value) "/usr/local/pgsql/bin":

    /usr/local/pgsql12/bin/pgpool: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory.

The problem is caused by the LD_LIBRARY_PATH value being hard-wired in src/test/regression/tests/055.backend_all_down/test.sh:

    echo "LD_LIBRARY_PATH=/usr/local/pgsql/lib" > pgpool.sh

This only works correctly if PG_INSTALL_DIR is /usr/local/pgsql/bin

Instead, it should be:

    echo "LD_LIBRARY_PATH=$PGBIN/../lib" > pgpool.sh

I've attached a patch. Please review.
Steps To ReproduceInstall Postgres to a non-default location (i.e. something other than /usr/local/pgsql), set PG_INSTALL_DIR (in regress.sh) to corresponding bin directory, and run the pgpool2 regression tests.
Additional InformationNOTE: regression test 019.log_client_messages correctly sets LD_LIBRARY_PATH to $PGBIN/../lib
TagsNo tags attached.

Activities

gregn123

2020-06-17 13:30

reporter  

administrator

2020-08-24 09:27

administrator   ~0003505

This issue is fixed in 4.0.3.
https://git.postgresql.org/gitweb/?p=pgpool2.git;a=commit;h=296455b5a8f796c9136879fd7b5aaeae2f0738aa

This commit use pg_config to get PostgreSQL lib path.

Issue History

Date Modified Username Field Change
2020-06-17 13:30 gregn123 New Issue
2020-06-17 13:30 gregn123 File Added: 0001-Fix-LD_LIBRARY_PATH-setting-in-test-055.backend_all_.patch
2020-06-17 15:58 pengbo Assigned To => pengbo
2020-06-17 15:58 pengbo Status new => assigned
2020-06-17 15:58 pengbo Description Updated
2020-06-17 15:58 pengbo Steps to Reproduce Updated
2020-08-24 09:27 administrator Note Added: 0003505
2020-08-24 09:27 administrator Status assigned => closed
2020-08-24 09:27 administrator Fixed in Version => 4.1.3
2020-08-24 09:27 administrator Target Version => 4.1.3