[sr #107850] gnutls 3.0.4 fails to compile on VIA C7 unless --disable-hardware-acceleration is provided

anonymous INVALID.NOREPLY at gnu.org
Sun Oct 23 13:46:13 CEST 2011


URL:
  <http://savannah.gnu.org/support/?107850>

                 Summary: gnutls 3.0.4 fails to compile on VIA C7 unless
--disable-hardware-acceleration is provided
                 Project: GnuTLS
            Submitted by: None
            Submitted on: Sun 23 Oct 2011 11:46:12 AM UTC
                Category: Core library
                Priority: 5 - Normal
                Severity: 4 - Important
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: fijam at archlinux.us
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I cannot compile gnutls 3.0.4 on a system with the following processor (VIA
C7):

$ cat /proc/cpuinfo
processor       : 0
vendor_id       : CentaurHauls
cpu family      : 6
model           : 10
model name      : VIA Esther processor  800MHz
stepping        : 9
[...]
flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge cmov pat
clflush acpi mmx fxsr sse sse2 tm nx up pni est tm2 rng rng_en ace ace_en ace2
ace2_en phe phe_en pmm pmm_en

using the following configure switches:
 ./configure --prefix=/usr \
        --with-zlib \
        --disable-static \
        --disable-guile \
        --disable-valgrind-tests

The compilation fails at:

make[3]: Entering directory `/var/abs/extra/gnutls/src/gnutls-3.0.4/tests'
/bin/sh: line 5:  8042 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: mini-deflate
PASS: simple
/bin/sh: line 5:  8050 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: gc
/bin/sh: line 5:  8055 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: set_pkcs12_cred
/bin/sh: line 5:  8060 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: certder
/bin/sh: line 5:  8065 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: certuniqueid
/bin/sh: line 5:  8070 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: mpi
/bin/sh: line 5:  8075 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: certificate_set_x509_crl
/bin/sh: line 5:  8080 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: dn
/bin/sh: line 5:  8085 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: parse_ca
/bin/sh: line 5:  8090 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: moredn
/bin/sh: line 5:  8095 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: mini
/bin/sh: line 5:  8100 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: hostname-check
/bin/sh: line 5:  8105 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: cve-2008-4989
/bin/sh: line 5:  8110 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: pkcs12_s2k
/bin/sh: line 5:  8115 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: chainverify
/bin/sh: line 5:  8120 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: crq_key_id
/bin/sh: line 5:  8125 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: x509sign-verify
/bin/sh: line 5:  8130 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: cve-2009-1415
/bin/sh: line 5:  8135 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: cve-2009-1416
/bin/sh: line 5:  8140 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: crq_apis
/bin/sh: line 5:  8145 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: init_roundtrip
/bin/sh: line 5:  8150 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: pkcs12_s2k_pem
/bin/sh: line 5:  8155 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: dn2
/bin/sh: line 5:  8160 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: mini-eagain
/bin/sh: line 5:  8165 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: nul-in-x509-names
/bin/sh: line 5:  8170 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: x509_altname
/bin/sh: line 5:  8175 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: pkcs12_encode
/bin/sh: line 5:  8180 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: mini-x509
/bin/sh: line 5:  8185 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: mini-x509-rehandshake
/bin/sh: line 5:  8190 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: rng-fork
/bin/sh: line 5:  8195 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: mini-eagain-dtls
/bin/sh: line 5:  8200 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: cipher-test
/bin/sh: line 5:  8205 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: x509cert
/bin/sh: line 5:  8210 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: x509cert-tl
/bin/sh: line 5:  8215 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: infoaccess
/bin/sh: line 5:  8220 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: openssl
/bin/sh: line 5:  8225 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: openpgp-auth
/bin/sh: line 5:  8230 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: openpgp-auth2
/bin/sh: line 5:  8235 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: openpgp-keyring
/bin/sh: line 5:  8240 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: pgps2kgnu
/bin/sh: line 5:  8245 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: x509self
/bin/sh: line 5:  8251 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: x509dn
/bin/sh: line 5:  8257 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: anonself
/bin/sh: line 5:  8263 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: pskself
/bin/sh: line 5:  8269 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: dhepskself
try to resume from db
/bin/sh: line 5:  8275 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: resume
/bin/sh: line 5:  8281 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: setcredcrash
/bin/sh: line 5:  8286 Segmentation fault     
PKCS12FILE=./pkcs12-decode/client.p12 PKCS12PASSWORD=foobar
PKCS12FILE_2=./pkcs12-decode/pkcs12_2certs.p12 PKCS12PASSWORD_2="" EXEEXT=
srcdir="." ${dir}$tst
FAIL: openpgpself
RFC 2253 escaping not working?
FAIL: rfc2253-escape-test
===================================
49 of 50 tests failed

I have tried the following (infoaccess chosen at random, I tried a handful of
executables from /tests and they all fail in the same fashion):

$ gdb tests/infoaccess
[...]
(gdb) run
Starting program: /var/abs/extra/gnutls/src/gnutls-3.0.4/tests/infoaccess
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0xb7f77484 in register_padlock_crypto ()
   from /var/abs/extra/gnutls/src/gnutls-3.0.4/lib/.libs/libgnutls.so.28

(gdb) bt
#0  0xb7f77484 in register_padlock_crypto ()
   from /var/abs/extra/gnutls/src/gnutls-3.0.4/lib/.libs/libgnutls.so.28
#1  0xb7f76b65 in _gnutls_register_accel_crypto ()
   from /var/abs/extra/gnutls/src/gnutls-3.0.4/lib/.libs/libgnutls.so.28
#2  0xb7f1d103 in gnutls_global_init ()
   from /var/abs/extra/gnutls/src/gnutls-3.0.4/lib/.libs/libgnutls.so.28
#3  0x08048a9a in doit ()
#4  0x08048975 in main ()


Please let me know what other information do you need. Alternatively, I can
hook you up with SSH access to the affected machine.

Compiling with --disable-hardware-acceleration works just fine.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/support/?107850>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





More information about the Gnutls-devel mailing list