Hi!

When building openssl-0.9.3 on HP-UX 9.07 with the HP-UX native unbundled cc,
exptest dies with a floating point exception before even displaying the first
dot. This is independent from compiler optimization settings and reproducable
on different hardware. The stack tracebacks differ due to random data, but here
are some of them:

(file unknown): $$mulo2I +0x000001b8: (line unknown)
> 0 $$mulo2I + 0x000001b8 (0x7b034804, 0x7b034804, 0x40005ebc, 0)
 1 bn_mul_words (rp = 0x40006238, ap = 0x40006198, num = 5, w = 2596374266)    
[bn_asm.c: 98]
 2 BN_div (dv =   00000000, rm = 0x40006050, num = 0x40006050, divisor = 0x40006070, 
ctx = 0x40005eb8)    [bn_div.c: 252]
 3 BN_mod (rem = 0x40006050, m = 0x40006050, d = 0x40006070, ctx = 0x40005eb8)    
[bn_div.c: 314]
 4 main (argc = 1, argv = 0x7b03452c)    [exptest.c: 116]

(file unknown): $$mulo2I +0x000001b8: (line unknown)
> 0 $$mulo2I + 0x000001b8 (0x7b034a44, 0x7b034a44, 0x40005ee4, 0x35192d2a)
 1 bn_mul_words (rp = 0x400061d8, ap = 0x40006470, num = 9, w = 3338240664)    
[bn_asm.c: 104]
 2 BN_div (dv =   00000000, rm = 0x400062a8, num = 0x400062a8, divisor = 0x400062bc, 
ctx = 0x40005eb8)    [bn_div.c: 252]
 3 BN_mod (rem = 0x400062a8, m = 0x400062a8, d = 0x400062bc, ctx = 0x40005eb8)    
[bn_div.c: 314]
 4 BN_MONT_CTX_set (mont = 0x400062a0, mod = 0x40006070, ctx = 0x40005eb8)    
[bn_mont.c: 390]
 5 BN_mod_exp_mont (rr = 0x40005fd0, a = 0x40006030, p = 0x40006050, m = 0x40006070, 
ctx = 0x40005eb8, in_mont =   00000000)    [bn_exp.c: 336]
 6 main (argc = 1, argv = 0x7b03452c)    [exptest.c: 116]

(file unknown): $$mulo2I +0x000001b8: (line unknown)
> 0 $$mulo2I + 0x000001b8 (0x7b0347e4, 0x40054ab0, 0x5f, 0x7b0346e0)
 1 bn_mul_add_words (rp = 0x40006444, ap = 0x400063a0, num = 2, w = 2475222221)    
[bn_asm.c: 74]
 2 bn_mul_normal (r = 0x40006420, a = 0x40006380, na = 10, b = 0x400062b8, nb = 6)    
[bn_mul.c: 722]
 3 BN_mul (r = 0x40005ee4, a = 0x7b0347e4, b = 0x40006248, ctx = 0x40005eb8)    
[bn_mul.c: 633]
 4 BN_mod_mul_montgomery (r = 0x7b0347e4, a = 0x7b0347e4, b = 0x40006248, mont = 
0x40006240, ctx = 0x40005eb8)    [bn_mont.c: 98]
 5 BN_mod_exp_mont (rr = 0x40005fd0, a = 0x40006030, p = 0x40006050, m = 0x40006070, 
ctx = 0x40005eb8, in_mont =   00000000)    [bn_exp.c: 348]
 6 main (argc = 1, argv = 0x7b03452c)    [exptest.c: 116]

(file unknown): $$mulo2I +0x000001b8: (line unknown)
> 0 $$mulo2I + 0x000001b8 (0x7b034a44, 0x7b034a44, 0x40005ee4, 0xfffffffc)
 1 bn_mul_words (rp = 0x400061b8, ap = 0x40006470, num = 10, w = 2317035510)    
[bn_asm.c: 102]
 2 BN_div (dv =   00000000, rm = 0x40006288, num = 0x40006288, divisor = 0x4000629c, 
ctx = 0x40005eb8)    [bn_div.c: 252]
 3 BN_mod (rem = 0x40006288, m = 0x40006288, d = 0x4000629c, ctx = 0x40005eb8)    
[bn_div.c: 314]
 4 BN_MONT_CTX_set (mont = 0x40006280, mod = 0x40006070, ctx = 0x40005eb8)    
[bn_mont.c: 390]
 5 BN_mod_exp_mont (rr = 0x40005fd0, a = 0x40006030, p = 0x40006050, m = 0x40006070, 
ctx = 0x40005eb8, in_mont =   00000000)    [bn_exp.c: 336]
 6 main (argc = 1, argv = 0x7b03452c)    [exptest.c: 116]

(file unknown): $$mulo2I +0x000001b8: (line unknown)
> 0 $$mulo2I + 0x000001b8 (0xb114b89f, 0x7a7eda44, 0xf24fb6ad, 0x60c55d6b)
 1 BN_div (dv =   00000000, rm = 0x40006030, num = 0x40006030, divisor = 0x40006070, 
ctx = 0x40005eb8)    [bn_div.c: 219]
 2 BN_mod (rem = 0x40006030, m = 0x40006030, d = 0x40006070, ctx = 0x40005eb8)    
[bn_div.c: 314]
 3 main (argc = 1, argv = 0x7b03452c)    [exptest.c: 114]

(file unknown): $$mulo2I +0x000001b8: (line unknown)
> 0 $$mulo2I + 0x000001b8 (0x9d088a8a, 0xad48a812, 0xfcf97b49, 0x61f9006a)
 1 BN_div (dv =   00000000, rm = 0x400061c8, num = 0x400061c8, divisor = 0x400061dc, 
ctx = 0x40005eb8)    [bn_div.c: 219]
 2 BN_mod (rem = 0x400061c8, m = 0x400061c8, d = 0x400061dc, ctx = 0x40005eb8)    
[bn_div.c: 314]
 3 BN_MONT_CTX_set (mont = 0x400061c0, mod = 0x40006070, ctx = 0x40005eb8)    
[bn_mont.c: 390]
 4 BN_mod_exp_mont (rr = 0x40005fd0, a = 0x40006030, p = 0x40006050, m = 0x40006070, 
ctx = 0x40005eb8, in_mont =   00000000)    [bn_exp.c: 336]
 5 main (argc = 1, argv = 0x7b03452c)    [exptest.c: 116]

Used settings for this test were:

OpenSSL 0.9.3 23 May 1999
built on: Wed May 26 11:45:15 CES 1999
platform: hpux-cc
options:  bn(64,32) md2(int) rc4(ptr,int) des(ptr,risc1,16,long) idea(int) 
blowfish(idx) 
compiler: cc -DB_ENDIAN -DBN_DIV2W -Ae +ESlit -g -z

The 0.9.3 exptest works fine when linked with the 0.9.2b libcrypto.

Bye, Andy

-------------------------------------------------------------------------------
   Andreas Ley       !  "Even when you're   !  Email: [EMAIL PROTECTED]
   Goethestr. 27     !   a genius, life is  !  Home:  +49 721 84 10 36
   76135 Karlsruhe   !   a mystery!"        !  RZ:    +49 721 608 6341 <- NEU!
   Germany           !  Doogie Howser, M.D. !  AKK:   +49 721 96 403 22
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to