Re: BUG #16685: The ecpg thread/descriptor test fails sometimes on Windows
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alexander Lakhin <exclusion@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Date: 2020-10-24T20:41:09Z
Lists: pgsql-bugs
BTW, I searched the buildfarm logs of ECPG failures to see if I could find anything related to this, and noticed that there were a fair number of Windows-machine failures in the thread/prep test. They don't all look quite alike, but this one is representative (and the most recent): sysname|dory snapshot|2019-04-02 11:20:25 ================== pgsql.build/src/interfaces/ecpg/test/regression.diffs =================== diff -w -U3 c:/pgbuildfarm/pgbuildroot/HEAD/pgsql.build/src/interfaces/ecpg/test/expected/thread-prep.stderr c:/pgbuildfarm/pgbuildroot/HEAD/pgsql.build/src/interfaces/ecpg/test/results/thread-prep.stderr --- c:/pgbuildfarm/pgbuildroot/HEAD/pgsql.build/src/interfaces/ecpg/test/expected/thread-prep.stderr 2018-04-20 16:03:08 -0400 +++ c:/pgbuildfarm/pgbuildroot/HEAD/pgsql.build/src/interfaces/ecpg/test/results/thread-prep.stderr 2019-04-02 07:43:27 -0400 @@ -0,0 +1,84 @@ +SQL error: could not connect to database "ecpg1_regression" on line 48 +SQL error: the connection to the server was lost on line 53 +SQL error: the connection to the server was lost on line 52 +SQL error: invalid statement name "i" on line 53 +SQL error: the connection to the server was lost on line 52 +SQL error: invalid statement name "i" on line 53 +SQL error: the connection to the server was lost on line 52 +SQL error: invalid statement name "i" on line 53 +SQL error: the connection to the server was lost on line 52 +SQL error: invalid statement name "i" on line 53 ... quite a few repetitions of this ... +SQL error: the connection to the server was lost on line 52 +SQL error: invalid statement name "i" on line 53 +SQL error: invalid statement name "i" on line 55 +SQL error: connection "Connection: 1" does not exist on line 56 I suspect that this might arise from a pthread_once failure associated with the actual_connection_key variable. regards, tom lane
Commits
-
Fix ancient bug in ecpg's pthread_once() emulation for Windows.
- 758b45e83b50 9.5.24 landed
- 379c43bdad1d 9.6.20 landed
- f38b66ec0562 10.15 landed
- 12a73f29ff7d 11.10 landed
- bdc79ddd1079 12.5 landed
- fd048e0cb5aa 13.1 landed
- 21d36747d4fa 14.0 landed