FirebirdSQL / firebird

Firebird server, client and tools
https://firebirdsql.org
1.26k stars 217 forks source link

run_all PDB fails with "Error calling COPY_XTRA" #8292

Closed hvlad closed 4 weeks ago

hvlad commented 4 weeks ago

It happens on Windows with MSVC 17.10 and later. Fix in #8251 is not complete, unfortunately.

Run setenvvar.bat few times in the same console and check MSVC_RUNTIME_MINOR_VERSION value after each run - first time there will be correct value '3', on the second run - '4', and so on.

The problem is in way how Windows command interpreter evaluates values of environment variables. See https://devblogs.microsoft.com/oldnewthing/20060823-00/?p=29993, for example.

When run_all.bat is called with PDB switch, it calls setenvvar.bat twice and second run leads to a same problem as described in #8251.