[openssl.org #4641] [openssl-1.1.0-pre6] make test stops with solaris64-x86_64-gcc

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

[openssl.org #4641] [openssl-1.1.0-pre6] make test stops with solaris64-x86_64-gcc

Rich Salz via RT
Hello,


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 .............


Tested with gcc-5.4.0.


% ./Configure solaris-x86-gcc
% make
% make test
passed.

Regards,

--- Kiyoshi <[hidden email]>



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

--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
Reply | Threaded
Open this post in threaded view
|

Re: [openssl.org #4641] [openssl-1.1.0-pre6] make test stops with solaris64-x86_64-gcc

Rich Salz via RT
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

--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
Reply | Threaded
Open this post in threaded view
|

Re: [openssl.org #4641] [openssl-1.1.0-pre6] make test stops with solaris64-x86_64-gcc

Rich Salz via RT
Hello,

I have no time to check with debugger now,
but I do not think it is caused by assembler,
because,
- gcc-5.4.0 with gas (GNU Binutils) 2.27
- cc (Solaris developerstudio12.5) with /usr/ccs/bin/as
have the same result (see openssl.org #4642 also).

perl version which I use is v5.24.0.


Regards,

--- Kiyoshi <[hidden email]>
 


----- Original Message -----

> From: Andy Polyakov via RT <[hidden email]>
> To: [hidden email]
> Cc: [hidden email]
> Date: 2016/8/11, Thu 21:17
> Subject: Re: [openssl-dev] [openssl.org #4641] [openssl-1.1.0-pre6] make test stops with solaris64-x86_64-gcc
>
> 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

--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
Reply | Threaded
Open this post in threaded view
|

Re: [openssl.org #4641] [openssl-1.1.0-pre6] make test stops with solaris64-x86_64-gcc

Rich Salz via RT
Hi,

> I have no time to check with debugger now,

Then no progress will be made. Problem needs to be identified first, and
since similar problem was identified earlier, I'd have to insist on
confirmation whether or not it's the same.

> but I do not think it is caused by assembler,
> because,
> - gcc-5.4.0 with gas (GNU Binutils) 2.27
> - cc (Solaris developerstudio12.5) with /usr/ccs/bin/as
> have the same result (see openssl.org #4642 also).
>
> perl version which I use is v5.24.0.

Well, (assuming for a moment it's the same problem) there is *less*
reason to believe that x86_64cpuid.pl is broken. Because it's used with
a *number* of other toolchains, Linux, BSD, mingw, MSVC, without any
problem. Nor can I reproduce the problem on my Solaris VM. It's not as
fancy as yours, apparently, but it also kind of speak in favour of
suggestion that it's not an OpenSSL problem...


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

--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
Reply | Threaded
Open this post in threaded view
|

[openssl.org #4641] [openssl-1.1.0-pre6] make test stops with solaris64-x86_64-gcc

Rich Salz via RT
In reply to this post by Rich Salz via RT
On Thu Aug 11 17:12:10 2016, appro wrote:

> Hi,
>
> > I have no time to check with debugger now,
>
> Then no progress will be made. Problem needs to be identified first, and
> since similar problem was identified earlier, I'd have to insist on
> confirmation whether or not it's the same.
>
> > but I do not think it is caused by assembler,
> > because,
> > - gcc-5.4.0 with gas (GNU Binutils) 2.27
> > - cc (Solaris developerstudio12.5) with /usr/ccs/bin/as
> > have the same result (see openssl.org #4642 also).
> >
> > perl version which I use is v5.24.0.
>
> Well, (assuming for a moment it's the same problem) there is *less*
> reason to believe that x86_64cpuid.pl is broken. Because it's used with
> a *number* of other toolchains, Linux, BSD, mingw, MSVC, without any
> problem. Nor can I reproduce the problem on my Solaris VM. It's not as
> fancy as yours, apparently, but it also kind of speak in favour of
> suggestion that it's not an OpenSSL problem...
>

Believed to not be an OpenSSL problem. Closing this ticket.

Matt

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

--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
Reply | Threaded
Open this post in threaded view
|

Re: [openssl.org #4641] [openssl-1.1.0-pre6] make test stops with solaris64-x86_64-gcc

Rich Salz via RT
In reply to this post by Rich Salz via RT
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 <[hidden email]>





> 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

--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
Reply | Threaded
Open this post in threaded view
|

Re: [openssl.org #4641] [openssl-1.1.0-pre6] make test stops with solaris64-x86_64-gcc

Rich Salz via RT
> 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.)

For reference, I'm using 32-bit perl version 5.10.1, minimally supported
version, by default, i.e. *all* the time. Well, not on Solaris, on
Linux, but I do use it with 64-bit builds. As well with cross-compile
builds for a handful qemu-based environments, 32- and 64-bit ones, and
with mingw/wine. As for Solaris, I can say that 32-bit perl version
5.12.5 works for me. Bottom line is that perl's 32-bitness doesn't seem
to be the problem, on the contrary, it's actually *known* to be capable
of generating 64-bit assembly code, and failure to do so will be caught
swiftly.

> 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.

In other words it's effectively confirmed that it's not really OpenSSL
problem, but likely to be a problem with specific Solaris perl binary. I
wonder if you could find opportunity to post broken crypto/x86_64cpuid.s
generated by this broken perl, please?


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

--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
Reply | Threaded
Open this post in threaded view
|

Re: [openssl.org #4641] [openssl-1.1.0-pre6] make test stops with solaris64-x86_64-gcc

Rich Salz via RT
Hello,

crypto/x86_64cpuid.s generated by perl

32 bit (has problem) & 64 bit (no problem) are attached.

Regards,

--- Kiyoshi <[hidden email]>



>
>>  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.)
>
> For reference, I'm using 32-bit perl version 5.10.1, minimally supported
> version, by default, i.e. *all* the time. Well, not on Solaris, on
> Linux, but I do use it with 64-bit builds. As well with cross-compile
> builds for a handful qemu-based environments, 32- and 64-bit ones, and
> with mingw/wine. As for Solaris, I can say that 32-bit perl version
> 5.12.5 works for me. Bottom line is that perl's 32-bitness doesn't seem
> to be the problem, on the contrary, it's actually *known* to be capable
> of generating 64-bit assembly code, and failure to do so will be caught
> swiftly.
>
>>  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.
>
> In other words it's effectively confirmed that it's not really OpenSSL
> problem, but likely to be a problem with specific Solaris perl binary. I
> wonder if you could find opportunity to post broken crypto/x86_64cpuid.s
> generated by this broken perl, please?
>
>
> --
> 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


--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev

x86_64cpuid.s-with_32bit_perl.gz (2K) Download Attachment
x86_64cpuid.s-with_64bit_perl.gz (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [openssl.org #4641] [openssl-1.1.0-pre6] make test stops with solaris64-x86_64-gcc

Erik Forsberg-11
Note that a 32-bit Perl can be compiled with or without support for 64-bit integers.
That fact hit me once doing OpenSSL builds, some 64-bit constants were not
calculated correctly, however that showed up at build time so not likely
to be the case here. However, it might be helpful checking if the 32-bit perl
in question supports 64-bit or not.

>-- Original Message --
>
>
>Hello,
>
>crypto/x86_64cpuid.s generated by perl
>
>32 bit (has problem) & 64 bit (no problem) are attached.
>
>Regards,
>
>--- Kiyoshi <[hidden email]>
>
>
>
>>
>>>  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.)
>>
>> For reference, I'm using 32-bit perl version 5.10.1, minimally supported
>> version, by default, i.e. *all* the time. Well, not on Solaris, on
>> Linux, but I do use it with 64-bit builds. As well with cross-compile
>> builds for a handful qemu-based environments, 32- and 64-bit ones, and
>> with mingw/wine. As for Solaris, I can say that 32-bit perl version
>> 5.12.5 works for me. Bottom line is that perl's 32-bitness doesn't seem
>> to be the problem, on the contrary, it's actually *known* to be capable
>> of generating 64-bit assembly code, and failure to do so will be caught
>> swiftly.
>>
>>>  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.
>>
>> In other words it's effectively confirmed that it's not really OpenSSL
>> problem, but likely to be a problem with specific Solaris perl binary. I
>> wonder if you could find opportunity to post broken crypto/x86_64cpuid.s
>> generated by this broken perl, please?
>>
>>
>> --
>> 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
>
>
>Attachment: x86_64cpuid.s-with_32bit_perl.gz (1.8 KB)
>
>Attachment: x86_64cpuid.s-with_64bit_perl.gz (1.8 KB)
>
>--
>openssl-dev mailing list
>To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
Reply | Threaded
Open this post in threaded view
|

Re: [openssl.org #4641] [openssl-1.1.0-pre6] make test stops with solaris64-x86_64-gcc

Rich Salz via RT
Note that a 32-bit Perl can be compiled with or without support for 64-bit integers.
That fact hit me once doing OpenSSL builds, some 64-bit constants were not
calculated correctly, however that showed up at build time so not likely
to be the case here. However, it might be helpful checking if the 32-bit perl
in question supports 64-bit or not.

>-- Original Message --
>
>
>Hello,
>
>crypto/x86_64cpuid.s generated by perl
>
>32 bit (has problem) & 64 bit (no problem) are attached.
>
>Regards,
>
>--- Kiyoshi <[hidden email]>
>
>
>
>>
>>>  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.)
>>
>> For reference, I'm using 32-bit perl version 5.10.1, minimally supported
>> version, by default, i.e. *all* the time. Well, not on Solaris, on
>> Linux, but I do use it with 64-bit builds. As well with cross-compile
>> builds for a handful qemu-based environments, 32- and 64-bit ones, and
>> with mingw/wine. As for Solaris, I can say that 32-bit perl version
>> 5.12.5 works for me. Bottom line is that perl's 32-bitness doesn't seem
>> to be the problem, on the contrary, it's actually *known* to be capable
>> of generating 64-bit assembly code, and failure to do so will be caught
>> swiftly.
>>
>>>  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.
>>
>> In other words it's effectively confirmed that it's not really OpenSSL
>> problem, but likely to be a problem with specific Solaris perl binary. I
>> wonder if you could find opportunity to post broken crypto/x86_64cpuid.s
>> generated by this broken perl, please?
>>
>>
>> --
>> 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
>
>
>Attachment: x86_64cpuid.s-with_32bit_perl.gz (1.8 KB)
>
>Attachment: x86_64cpuid.s-with_64bit_perl.gz (1.8 KB)
>
>--
>openssl-dev mailing list
>To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev




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

--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
Reply | Threaded
Open this post in threaded view
|

Re: [openssl.org #4641] [openssl-1.1.0-pre6] make test stops with solaris64-x86_64-gcc

Rich Salz via RT
> Note that a 32-bit Perl can be compiled with or without support for 64-bit integers.
> That fact hit me once doing OpenSSL builds, some 64-bit constants were not
> calculated correctly, however that showed up at build time so not likely
> to be the case here. However, it might be helpful checking if the 32-bit perl
> in question supports 64-bit or not.

Those problems were addressed and both configurations are known to work.
For example 32-bit perl I use by default on Linux is *not* compiled with
64-bit integers, while 32-bit perl I have on Solaris is. No problem with
either. It appears to me that problem is likely to occur at sign
extension when processing effective addresses. To demonstrate this with
one-liner:

perl -e 'use integer; printf "%d\n",0xffffffff<<32>>32'

It should print -1 in either combination of bitnesses.


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

--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
Reply | Threaded
Open this post in threaded view
|

Re: [openssl.org #4641] [openssl-1.1.0-pre6] make test stops with solaris64-x86_64-gcc

Rich Salz via RT
With my old 32 bit perl,built by default except for prefix,
  perl -e 'use integer; printf "%d\n",0xffffffff<<32>>32'
prints 0.
64 bit perl prints -1.

After rebuilding 32 bit perl with Configuring "-Duse64bitint", output was changed to -1.
With this rebuilt 32 bit perl, openssl-1.1.0 "make test" passes.


(I checked perl-5.24.0, building both with gcc 5.4.0 & developerstudio12.5 cc,
and had the same results.)

Regards,

--- Kiyoshi <[hidden email]>


>
>>  Note that a 32-bit Perl can be compiled with or without support for 64-bit
> integers.
>>  That fact hit me once doing OpenSSL builds, some 64-bit constants were not
>>  calculated correctly, however that showed up at build time so not likely
>>  to be the case here. However, it might be helpful checking if the 32-bit
> perl
>>  in question supports 64-bit or not.
>
> Those problems were addressed and both configurations are known to work.
> For example 32-bit perl I use by default on Linux is *not* compiled with
> 64-bit integers, while 32-bit perl I have on Solaris is. No problem with
> either. It appears to me that problem is likely to occur at sign
> extension when processing effective addresses. To demonstrate this with
> one-liner:
>
> perl -e 'use integer; printf
> "%d\n",0xffffffff<<32>>32'
>
> It should print -1 in either combination of bitnesses.
>
>
> --
> 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

--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
Reply | Threaded
Open this post in threaded view
|

Re: [openssl.org #4641] [openssl-1.1.0-pre6] make test stops with solaris64-x86_64-gcc

Rich Salz via RT
In reply to this post by Rich Salz via RT
I forgot writing.

crypto/x86_64cpuid.s generated by 64 bit perl & generated by rebuilt 32 bit perl
is the same.

Regards,

--- Kiyoshi <[hidden email]>


> With my old 32 bit perl,built by default except for prefix,
>   perl -e 'use integer; printf
> "%d\n",0xffffffff<<32>>32'
> prints 0.
> 64 bit perl prints -1.
>
> After rebuilding 32 bit perl with Configuring "-Duse64bitint", output
> was changed to -1.
> With this rebuilt 32 bit perl, openssl-1.1.0 "make test" passes.
>
>
> (I checked perl-5.24.0, building both with gcc 5.4.0 & developerstudio12.5
> cc,
> and had the same results.)
>
> Regards,
>
> --- Kiyoshi <[hidden email]>
>
>
>>
>>>   Note that a 32-bit Perl can be compiled with or without support for
> 64-bit
>>  integers.
>>>   That fact hit me once doing OpenSSL builds, some 64-bit constants were
> not
>>>   calculated correctly, however that showed up at build time so not
> likely
>>>   to be the case here. However, it might be helpful checking if the
> 32-bit
>>  perl
>>>   in question supports 64-bit or not.
>>
>>  Those problems were addressed and both configurations are known to work.
>>  For example 32-bit perl I use by default on Linux is *not* compiled with
>>  64-bit integers, while 32-bit perl I have on Solaris is. No problem with
>>  either. It appears to me that problem is likely to occur at sign
>>  extension when processing effective addresses. To demonstrate this with
>>  one-liner:
>>
>>  perl -e 'use integer; printf
>>  "%d\n",0xffffffff<<32>>32'
>>
>>  It should print -1 in either combination of bitnesses.
>>
>>
>>  --
>>  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

--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev