On 2006.12.27 at 09:57:30 +0100, Andy Polyakov wrote:

> >
> >>turns to be culprit, then note that there are two code pathes, sse2 and 
> >>integer-only, the latter has separate squaring procedure, and we have to 
> >>figure out which one fails... To switch off squaring procedure, comment 
> >>out '&jz (&label("bn_sqr_mont"));' line #273. To switch off integer-only 
> >>path altogether replace 'if (0)' around line #248 with 'if (1)'. You 
> >
> >Commenting out line #273 fixes problem with following configuration 
> >(output of make report):
> 
> Then it's integer-only squaring code path... Could you please double 
> confirm that commenting out line #273 *alone* fixes the problem, i.e. 
> line #248 still reads as 'if(0)'. I'll have alook at the code, but there 
> might be need for test case, so could you provide sequence of commands 
> to reproduce the problem [or program if it was one].

I'd try to provide minimal isolated test case for gost2001_do_sign
function. Actual tests from our automated test suite - using 
openssl dgst -sign and openssl req might be a bit too complicated to
debug.

> >same result is achieved without no-sse2 option - fail without commenting 
> >line #273  and pass with it.
> 
> ??? If you configure without no-sse2 and run on sse2 capable CPU, then 
> line #273 shouldn't affect result. What CPU and OS was the test executed on?

uname -a
Linux lynx 2.6.16-athlon #1 Tue May 30 12:23:37 MSD 2006 i686 GNU/Linux

cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 8
model name      : AMD Sempron(tm)   2500+
stepping        : 1
cpu MHz         : 1747.181
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow ts
bogomips        : 3498.37

It seems that there I've run tests with SSE2 support on non-sse2-capable CPU. 
I've repeated tests on PIV machine. 


Same build which produces errors on machine above passes tests on real
P4 with:
grep flags /proc/cpuinfo
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm
pni monitor ds_cpl cid cx16 xtpr

We ought to fix something in our test farm and run sse2 automated tests
on machine which can do SSE2.

> I for one *would* be interested *if* I had time. But otherwise you 
> should know that it's very much appreciated, that you perform nightly 
> builds on such variety of platforms and escalate problems as they pop up. A.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to