[openssl-users] Openssl 1.0.2 evp_test core dumps on Sparc T4, solaris 11

Göran Hammarbäck goran.hammarback at foxt.com
Tue Feb 3 08:41:02 UTC 2015


I am building openssl 1.0.2 on a number of platforms, and I am having
problems on a virtual Solaris 11.0 machine running on a Sparc T4.
The code builds fine, but the evp_test core dumps.
Here are the last lines of output from the command (test/evp_test
test/evptests.txt):

Testing cipher id-aes256-CCM(encrypt/decrypt)
Key
0000 1b de 32 51 d4 1a 8b 5e a0 13 c1 95 ae 12 8b 21
0010 8b 3e 03 06 37 63 57 07 7e f1 c1 c7 85 48 b9 2e
IV
0000 5b 8e 40 74 6f 6b 98 e0 0f 1d 13 ff 41
Plaintext
0000 53 bd 72 a9 70 89 e3 12 42 2b f7 2e 24 23 77 b3
0010 c6 ee 3e 20 75 38 9b 99 9c 4e f7 f2 8b d2 b8 0a
Ciphertext
0000 9a 5f cc cd b4 cf 04 e7 29 3d 27 75 cc 76 a4 88
0010 f0 42 38 2d 94 9b 43 b7 d6 bb 2b 98 64 78 67 26
AAD
0000 c1 7a 32 51 4e b6 10 3f 32 49 e0 76 d4 c8 71 dc
0010 97 e0 4b 28 66 99 e5 44 91 dc 18 f6 d7 34 d4 c0
Tag
0000 20 24 93 1d 73 bc a4 80 c2 4a 24 ec e6 b6 c2 bf
zsh: segmentation fault (core dumped)  ./test/evp_test test/evptests.txt

pstack:
sol11b% pstack core
core 'core' of 19831:   ./test/evp_test test/evptests.txt
 00000b80 ???????? (6bb20, ffbfec80, ffbfd240, 20, b80, 1)
 ff20c3c4 aes_ccm_cipher (ffbfe240, ffbfd240, ffbfec80, 20, ff20c220,
ff2d8894) + 1a4
 ff205e90 EVP_EncryptUpdate (ffbfe240, ffbfd240, ffbfd22c, ffbfec80, 20,
1) + 110
 00011afc test1    (ff2d8894, ffbfec24, ffffec00, ffbfe2d0, d, 0) + 33c
 00012ed8 main     (ffbfe394, ffffe76c, ffffffff, ffbfe398, ffffe768,
ffffe794) + 658
 0001161c _start   (0, 0, 0, 0, 0, 0) + 5c

If I comment out the aes-256-ccm line in evptests.txt, all other tests
run fine. When I run the same binary on a virtual machine on a Sparc T2,
it works fine. I also tried building the code on the T2, but it still
fails on the T4. ldd on evp_test shows that it is using the correct
1.0.2 versions of libssl.so and libcrypto.so.

I also tried with the openssl-1.0.2-stable-SNAP-20150202 snapshot but
got the same result.

Anyone had similar problems?

Göran Hammarbäck



More information about the openssl-users mailing list