Apparently setting the GNUTLS_CPUID_OVERRIDE variable helps to work around the
error. For more details please refer to this page.
https://gnutls.org/manual/html_node/Debugging-and-auditing.html
The error doesn't appear anymore when setting the GNUTLS_CPUID_OVERRIDE.
GNUTLS_CPUID_OVERRIDE=0x1 git clone https://...
With QEMU 7.0 and apt-get update the same error is also triggered, since also
GnuTLS is used.
sudo GNUTLS_CPUID_OVERRIDE=0x1 apt-get update
So this is not really a bug in git, but a bug in GnuTLS when running QEMU with
Windows as host (with Hyper-V acceleration hax or whpx).
Best,
Sascha
On Sun, 29 May 2022 13:19:42 +0200 Sascha Scandella
<sascha.scande...@gmail.com> wrote:
> I have unfortunately had to make the same experiences. with the accelerator
hax or whpx it leads to the same error with QEMU (tested v6.2.x and
> v7.0.x). Using tcg as accelerator is not an alternative, because it is
extremely slow.
>
> What I could find out so far is that it leads to an error with Ubuntu 20.04
LTS and 22.04 LTS. Also when updating git. Strangely, the error does not
> appear with Ubuntu 21.04. Therefore, I recently thought to repeat the test with Ubuntu 22.04 LTS where I unfortunately found that the same error
occurs.
>
> What helps is compiling git with OpenSSL instead of GnuTLS (which is standard
with git).
>
> See also https://github.com/paul-nelson-baker/git-openssl-shellscript.
>
> How could I get to the root cause of the error?
>
> Regards,
> Sascha
>
>
>