Bug#633458: gcc-4.6 miscompiles libgcrypt11 on armel
Package: gcc-4.6
Version: 4.6.1-1
Severity: normal
Blocks: 633373
gcc-4.6 seems to miscompile libgcrypt11 on armel, causing total
failure of gnutls26.
-------------------------------
(sid)ametzler@abel:~/GNUTLS$ ~/GNUTLS/2.10.5-2/usr/bin/gnutls-cli db.debian.org Resolving 'db.debian.org'...
Connecting to '82.195.75.106:443'...
*** Fatal error: Decryption has failed.
*** Handshake has failed
GnuTLS error: Decryption has failed.
-------------------------------
libgcrypt11 1.4.6-5 (no source changes compared to 1.4.6-7, just a
switch to multiarch directories) works:
-------------------------------
(sid)ametzler@abel:~/GNUTLS$ LD_LIBRARY_PATH=~/GNUTLS/gcr-1.4.6-5/lib ~/GNUTLS/
2.10.5-2/usr/bin/gnutls-cli db.debian.org
Resolving 'db.debian.org'...
Connecting to '82.195.75.106:443'...
- Ephemeral Diffie-Hellman parameters
[...]
- Handshake was completed
-------------------------------
I have also rebuilt libgcrypt11 with gcc-4.5, this also fixed the issue:
-------------------------------
LD_LIBRARY_PATH=/home/ametzler/GNUTLS/GCR/libgcrypt11-1.4.6+gcc45/src/.libs ~/GNUTLS/2.10.5-2/usr/bin/gnutls-cli db.debian.org
Resolving 'db.debian.org'...
Connecting to '82.195.75.106:443'...
- Ephemeral Diffie-Hellman parameters
[...]
- Handshake was completed
-------------------------------
All tests done in the sid chroot of the Debian porterbox (abel).
cu andreas
ii gcc 4:4.6.0-6 GNU C compiler
ii gcc-4.5 4.5.3-3 The GNU C compiler
ii gcc-4.6 4.6.1-1 GNU C compiler
ii libgcrypt11 1.4.6-7 LGPL Crypto library - runtime library
ii libgnutls26 2.10.5-2 the GNU TLS library - runtime library
ii libtasn1-3 2.9-4 Manage ASN.1 structures (runtime)
Reply to: