[openssl-dev] [openssl.org #4641] [openssl-1.1.0-pre6] make test stops with solaris64-x86_64-gcc
Kiyoshi KANAZAWA via RT
rt at openssl.org
Thu Sep 1 19:16:03 UTC 2016
I'm sorry to be late.
I was too busy and had to prepare 64 bit gdb (& 64 bit perl).
It seems to be 32 bit perl (perl-5.24.0) problem.
(Generating 64 bit code with 32 bit perl.)
Tested with openssl-1.1.0 instead of pre-6,
and on pure Solaris 10, without any VM.
(1) with 32 bit perl
Did test/hmactest under gdb, break,
confirmed it was in OPENSSL_cleanse,
"leaq -0(%rsi),%rsi" (not "lea 0(%rdi),%rdi")
and making a short loop.
(2) with 64 bit perl
make test passed both with gcc 5.4.0 & developerstudio12.5.
Regrads,
--- Kiyoshi <yoi_no_myoujou at yahoo.co.jp>
> Hi,
>
>> make test stops on Solaris10 x64.
>>
>>
>> % ./Configure solaris64-x86_64-gcc
>>
>> % make
>> % make test
>> :
>> ../test/recipes/01-test_abort.t ............ ok
>> ../test/recipes/01-test_sanity.t ........... ok
>> ../test/recipes/01-test_symbol_presence.t .. ok
>> ../test/recipes/02-test_ordinals.t ......... ok
>> ../test/recipes/05-test_bf.t ............... ok
>> ../test/recipes/05-test_cast.t ............. ok
>> ../test/recipes/05-test_des.t .............. ok
>> ../test/recipes/05-test_fuzz.t ............. ok
>> ../test/recipes/05-test_hmac.t .............
>
> There was private report about similar problem. I mean if you can
> confirm that it's stuck in OPENSSL_cleanse, then it's same problem(*).
> Trouble is that it doesn't seem to be OpenSSL problem, because generated
> code appears to be mis-compiled. When single-stepping with 'stepi' you
> are likely to observe "lea 0(%rdi),%rdi" instruction, and it should be
> "lea 1(%rdi),%rdi". I mean it *is* "lea 1(%rdi),%rdi" in
> source file,
> crypto/x86_64cpuid.pl, and that's where our responsibility ends. In
> sense that we are responsible for providing source, and you are
> effectively responsible for providing working compiler environment. I
> don't know which components were involved in first report, I mean things
> like perl version, which assembler and its version, so I can't give any
> advice about updates that might be required...
>
> (*) To confirm run test/hmactest under debugger, break, see if it's in
> OPENSSL_cleanse, issue 'stepi' command few times to see if it's
> going
> "in circles".
>
>
> --
> Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4641
> Please log in as guest with password guest if prompted
>
--
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4641
Please log in as guest with password guest if prompted
More information about the openssl-dev
mailing list