From: Jens Neuhalfen Message-Id: Date: Sat, 21 May 2016 19:05:01 +0200 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: [Openvpn-devel] Solaris 11: t_lpback.sh coredump on AES-GCM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable To: openvpn-devel Hi, ./t_lpback.sh fails with AES-GCM mode on Solaris 11. CRYPTO_gcm128_setiv fr= om libcrypto seems to jump into NULL pointer country.=20 This is currently no issue for me, but in case anyone cares I put the cored= ump on https://www.neuhalfen.name/__downloads__/openvpn/core_solaris11_aes-= gcm_crash .=20 cheers Jens ./t_lpback.sh -n Testing cipher AES-128-CBC... OK -n Testing cipher AES-128-CFB... OK -n Testing cipher AES-128-CFB1... OK -n Testing cipher AES-128-CFB8... OK -n Testing cipher AES-128-GCM... FAILED Sat May 21 19:01:09 2016 OpenVPN 2.3_git [git:master/b207d8ae9a6b0e99] i386= -pc-solaris2.11 [SSL (OpenSSL)] [IPv6] built on May 21 2016 Sat May 21 19:01:09 2016 library versions: OpenSSL 1.0.1p 9 Jul 2015 Sat May 21 19:01:09 2016 OpenVPN 2.3_git [git:master/b207d8ae9a6b0e99] i386= -pc-solaris2.11 [SSL (OpenSSL)] [IPv6] built on May 21 2016 Sat May 21 19:01:09 2016 Entering OpenVPN crypto self-test mode. Sat May 21 19:01:09 2016 TESTING ENCRYPT/DECRYPT of packet length=3D1 Sat May 21 19:01:09 2016 TESTING ENCRYPT/DECRYPT of packet length=3D2 ./t_lpback.sh: line 48: 19049: Memory fault(coredump) =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94 gdb ../src/openvpn/openvpn core ... Reading symbols from /export/home/jens/openvpn/src/openvpn/openvpn...done. [New LWP 1] [New LWP 1] [Thread debugging using libthread_db enabled] [New Thread 1 (LWP 1)] Core was generated by `../src/openvpn/openvpn --test-crypto --secret key.19= 038 --cipher AES-256-GCM'. Program terminated with signal 11, Segmentation fault. #0 0x00000000 in ?? () (gdb) bt #0 0x00000000 in ?? () #1 0x07505972 in CRYPTO_gcm128_setiv () from /lib/libcrypto.so.1.0.0 #2 0x075402af in aesni_gcm_init_key () from /lib/libcrypto.so.1.0.0 #3 0x0753cc50 in EVP_CipherInit_ex () from /lib/libcrypto.so.1.0.0 #4 0x0753c968 in EVP_CipherInit () from /lib/libcrypto.so.1.0.0 #5 0x0808bc10 in cipher_ctx_reset (ctx=3D0x811b808, iv_buf=3Div_buf@...1852...= 1...=3D0xfeffd930 "") at crypto_openssl.c:623 #6 0x0808985d in openvpn_encrypt_aead (opt=3D0xfeffe144, work=3D..., buf= =3D0xfeffd9f0) at crypto.c:130 #7 openvpn_encrypt (buf=3Dbuf@...1851...=3D0xfeffd9f0, work=3D..., opt=3Do= pt@...1851...=3D0xfeffe144) at crypto.c:340 #8 0x0808ab02 in test_crypto (co=3Dco@...1851...=3D0xfeffe144, frame=3Dfra= me@...1851...=3D0xfeffe00c) at crypto.c:1078 #9 0x0809a4eb in test_crypto_thread (arg=3D0xfeffda38) at init.c:3921 #10 do_test_crypto (o=3Do@...1851...=3D0xfeffe358) at init.c:3947 #11 0x080b1f05 in openvpn_main (argc=3Dargc@...1851...=3D6, argv=3Dargv@...493...= 1851...=3D0xfeffec88) at openvpn.c:232 #12 0x080ee9c1 in main (argc=3D6, argv=3D0xfeffec88) at openvpn.c:345 (gdb) frame 1 #1 0x07505972 in CRYPTO_gcm128_setiv () from /lib/libcrypto.so.1.0.0 (gdb) info args No symbol table info available. (gdb) info local No symbol table info available. (gdb) info locals ...