Closed Bug 1362392 Opened 3 years ago Closed 3 years ago

MPI tests fail with 32-bit builds

Categories

(NSS :: Libraries, defect)

3.31
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: franziskus, Unassigned)

Details

These tests run fine with 64-bit builds.

> There are currently 41 test suites available
> mpi.sh: #1: mpi copy test - PASSED
> mpi.sh: #2: mpi exchange test - PASSED
> mpi.sh: #3: mpi zero test - PASSED
> mpi.sh: #4: mpi set test - PASSED
> mpi.sh: #5: mpi absolute-value test - PASSED
> mpi.sh: #6: mpi negate test - PASSED
> error: computed F595CB42, expected F59667D9
> mpi.sh: #7: mpi add-digit test - FAILED
> mpi.sh: #8: mpi add test - PASSED
> error: computed F595CB42, expected F5952EAB
> mpi.sh: #9: mpi subtract-digit test - FAILED
> mpi.sh: #10: mpi subtract test - PASSED
> test mp_mul_d(&a, md4, &a) failed: error -4
> mpi.sh: #11: mpi multiply-digit test - FAILED
> mpi.sh: #12: mpi multiply test - PASSED
> mpi.sh: #13: mpi square test - PASSED
> error: computed q = 0, expected 8CAFD53C272BD6FE8B0847BDC3B539EFAB5C3
> error: computed r = F7738918FFC7A201, expected 1E5
> error: computed q = 0, expected F74A2876A1432698923B0767DA19DCF3D71795E
> error: computed r = F7738918FFC7A201, expected E
> mpi.sh: #14: mpi divide-digit test - FAILED
> mpi.sh: #15: mpi divide-2 test - PASSED
> error: computed F2B050D226E6DA88, expected 34584F700C15A341E40BF7BFDD88A6630C8FF2B2067469372D391342BDAB6163963CD5A5C79F708BDE26E0CCF2DB66CD6D6089E29A877C45
> mpi.sh: #16: mpi divide-2d test - FAILED
> mpi.sh: #17: mpi divide test - PASSED
> error: computed F595CB42, expected A8FD7145E727A20E52E73D22990D35D158090307A13A5215AAC4E9AB1E96BD34E531209E03310400
> mpi.sh: #18: mpi expt-digit test - FAILED
> mpi.sh: #19: mpi expt test - PASSED
> mpi.sh: #20: mpi expt-2 test - PASSED
> test mp_mod_d(&a, md5, &r) failed: error -4
> mpi.sh: #21: mpi modulo-digit test - FAILED
> mpi.sh: #22: mpi modulo test - PASSED
> mpi.sh: #23: mpi mod-add test - PASSED
> mpi.sh: #24: mpi mod-subtract test - PASSED
> mpi.sh: #25: mpi mod-multiply test - PASSED
> mpi.sh: #26: mpi mod-square test - PASSED
> mpi.sh: #27: mpi mod-expt test - PASSED
> test mp_exptmod_d(&a, md4, &m, &a) failed: error -4
> mpi.sh: #28: mpi mod-expt-digit test - FAILED
> mpi.sh: #29: mpi mod-inverse test - PASSED
> mpi.sh: #30: mpi compare-digit test - PASSED
> mpi.sh: #31: mpi compare-zero test - PASSED
> mpi.sh: #32: mpi compare test - PASSED
> mpi.sh: #33: mpi compare-magnitude test - PASSED
> mpi.sh: #34: mpi parity test - PASSED
> mpi.sh: #35: mpi gcd test - PASSED
> mpi.sh: #36: mpi lcm test - PASSED
> mpi.sh: #37: mpi conversion test - PASSED
> error: test_raw: expected length 25, computed 21
> mpi.sh: #38: mpi binary test - FAILED
> mpi.sh: #39: mpi pprime test - PASSED
> mpi.sh: #40: mpi fermat test - PASSED
Are these new failures? When did they start? Or are these new tests?
Flags: needinfo?(franziskuskiefer)
These are old tests that weren't run for a while before I enabled them, but only for 64-bit. So these aren't new failures.
Some MPI functions are simply broken with 32-bit and have been for a while. I'm actually surprised we don't see this in other tests.
Flags: needinfo?(franziskuskiefer)
If these functions are bad shouldn't that result in broken encryption and not connecting to sites on 32 bit machines?
Flags: needinfo?(franziskuskiefer)
Yeah, that's what's confusing. Also see bug 1362536 comment 2. I have to do some more digging to figure out what exactly is going on.
Flags: needinfo?(franziskuskiefer)
https://hg.mozilla.org/projects/nss/rev/0b92eb7b7e13568e443d6800fa0785de67121850
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.31
Group: crypto-core-security → core-security-release
Group: core-security-release
You need to log in before you can comment on or make changes to this bug.