[openssl-dev] [openssl.org #4667] Issue with OpenSSL v1.1.0 on AIX with XLC and GCC and -O

REIX, Tony via RT rt at openssl.org
Thu Sep 1 14:48:30 UTC 2016


On my AIX 7.1 machine, building/testing  evp test of openssl 1.1.0 with:

-  GCC 4.8.5 is: OK, 64 & 32 bits:
      ../test/recipes/30-test_evp.t .............. ok

- GCC 5.4.0 is: OK, 64 & 32 bits:
      ../test/recipes/30-test_evp.t .............. ok

- GCC 6.1.0 is: KO, 64 & 32 bits:
#   Failed test 'running evp_test evptests.txt'
#   at ../test/recipes/30-test_evp.t line 18.
# Looks like you failed 1 test of 1.
../test/recipes/30-test_evp.t ..............
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests

- GCC 6.2.0 is: KO, 64 & 32 bits:
#   Failed test 'running evp_test evptests.txt'
#   at ../test/recipes/30-test_evp.t line 18.
# Looks like you failed 1 test of 1.
../test/recipes/30-test_evp.t ..............
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests


GCC team look to have changed something in their -O optimization.
And, as I said already, XLC also has some aggressive optimization that does not work in 64bit with ppccap.c file.

I think that there is some not-perfect code in ppccap.c of version 1.1.0 .


Regards,

Tony





Le 01/09/2016 15:45, Andy Polyakov via RT a écrit :

About the possible "linker quirk", the same linker is used also for version 1.0.2h which runs perferctly.



Yes, but 1.0.2 and 1.1 ppccap's are different.



Also, that does not explain why simply compiling ppccap.c only with -O0 makes the issue to dispappear.



Bugs seldom make sense. If they did, we would spot them prior they
manifest themselves, so there would be no bugs :-)



I also tried to repeat the failing test several times: failure is consistent.


Here below are the details you asked.



Thanks! I've have closer look at it a bit later today. Just in case,
1.1. was tested on AIX 7.x...





-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4667
Please log in as guest with password guest if prompted



More information about the openssl-dev mailing list