Hi,
   I'm trying to get pine4.50 working with openssl-0.9.7-beta6
on an HP system running HPUX 11.0.  "make report" info was attached
to bugid 412 opened earlier this morning.  I've since rebuilt
and reinstalled (working around bug 412 by hand) with the "-g"
option in the compile for openssl.

   Pine 4.50 (http://www.washington.edu/pine/) is built with the
following command:

./build SSLDIR=/opt/openssl-0.9.7 SSLCERTS=/opt/openssl-0.9.7/ssl/certs
PASSWDTYPE=pam hpx

When I fire up pine after compilation with SSL, it notes that I
have self-signed certificate on the IMAP server I am trying to talk
to via Pine (imapd runs on a Sun box, not on the HP, and is built with
0.9.6h).  I say, "yes continue with this cert" in Pine, then it cores.
A gdb traceback gives the following:

Program received signal SIGABRT, Aborted.
0xc002ea68 in kill ()
(gdb) backtrace
#0  0xc002ea68 in kill ()
#1  0xc002de2c in raise ()
#2  0xc00282a8 in fatal_error ()
#3  0xc0021bdc in _shl_bor ()
#4  0xc002cc1c in sp_ok ()
#5  0xc002de2c in raise ()
#6  0xc0021b74 in _shl_bor ()
#7  0x7f5d418c in BN_nnmod (r=0xc3ff800, m=0x0, d=0x0, ctx=0x0) at bn_mod.c:132
#8  0x7f5d7cf8 in BN_mod_inverse (in=0x21, a=0x401a8b94, n=0x0, ctx=0x401a87d0)
    at bn_gcd.c:237
#9  0xc002de2c in raise ()
#10 0x80 in ?? ()
#11 0xc002de2c in raise ()


The reference to "r=" in BN_nnmod is a bad memory address:

(gdb) up 6
#6  0xc0021b74 in _shl_bor ()
(gdb) up
#7  0x7f5d418c in BN_nnmod (r=0xc3ff800, m=0x0, d=0x0, ctx=0x0) at bn_mod.c:132
132             if (!(BN_mod(r,m,d,ctx)))
(gdb) print r
$1 = (BIGNUM *) 0xc3ff800
(gdb) print *r
Error accessing memory address 0xc3ff800: Bad address.
(gdb) print &r
Can't take address of "r" which isn't an lvalue.
(gdb) print m
$2 = (BIGNUM *) 0x0
(gdb) print *m
Error accessing memory address 0x0: Invalid argument.
(gdb) up
#8  0x7f5d7cf8 in BN_mod_inverse (in=0x21, a=0x401a8b94, n=0x0, ctx=0x401a87d0)
    at bn_gcd.c:237
237                     if (!BN_nnmod(B, B, A, ctx)) goto err;
(gdb) print B
$3 = (BIGNUM *) 0x401a8758
(gdb) print *B
$4 = {d = 0x401a83c0, top = 2, dmax = 2, neg = 0, flags = 0}
(gdb) print A
$5 = (BIGNUM *) 0x401a87f8
(gdb) print *A
$6 = {d = 0x401a84a0, top = 1, dmax = 2, neg = 0, flags = 0}
(gdb) print ctx
$7 = (BN_CTX *) 0x401a87d0
(gdb) print *ctx
$8 = {tos = 1075481768, bn = {{d = 0x0, top = 2, dmax = 0, neg = 0,
      flags = 1075481712}, {d = 0x3, top = 4, dmax = 0, neg = 0,
      flags = 1075479712}, {d = 0x1, top = 2, dmax = 0, neg = 0,
      flags = 1075481744}, {d = 0x1, top = 3, dmax = 0, neg = 0, flags = 0}, {
      d = 0x0, top = 0, dmax = 0, neg = 0, flags = 0} <repeats 20 times>, {
      d = 0x0, top = 0, dmax = 0, neg = 0, flags = 1}, {d = 0x2, top = 0,
      dmax = 7, neg = 0, flags = 0}, {d = 0x0, top = 0, dmax = 0, neg = 0,
      flags = 0}, {d = 0x0, top = 0, dmax = 0, neg = 0, flags = 0}, {d = 0x8,
      top = 1075481093, dmax = 105, neg = 1964493110, flags = -1014182651}, {
      d = 0xd2590873, top = -718109172, dmax = 6776, neg = 0,
      flags = 101462016}, {d = 0x131d5503, top = 53478660, dmax = 16711937,
      neg = 0, flags = 0}, {d = 0x0, top = 0, dmax = 0, neg = 0, flags = 0}},
  flags = 0, depth = 0, pos = {0, 0, 0, 15, 0, 1075288068, 137, 0, 0, 0, 0,
    0}, too_many = 0}


-----------------------------------
Jeff A. Earickson, Ph.D
Senior UNIX Sysadmin and Email Guru
Information Technology Services
Colby College, 4214 Mayflower Hill,
Waterville ME, 04901-8842
phone: 207-872-3659 (fax = 3076)
-----------------------------------

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to