Re: [PATCHES] [patch 0/9] annual pgcrypto update

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Marko Kreen" <markokr(at)gmail(dot)com>
Cc: "Neil Conway" <neilc(at)samurai(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PATCHES] [patch 0/9] annual pgcrypto update
Date: 2006-07-14 17:50:58
Message-ID: 3058.1152899458@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

"Marko Kreen" <markokr(at)gmail(dot)com> writes:
> On 7/13/06, Neil Conway <neilc(at)samurai(dot)com> wrote:
>> Marko, can you take a look at what is causing this regression test
>> failure? The failing machine is kudu:

> Seems you have skipped the CAST5 patch. Could you recheck?

Applied, thanks. What I now see is that pgp-pubkey-decrypt passes on
a 32-bit machine but dumps core on a 64-bit machine, with SIGSEGV here:

#0 0x00002aaaac8b82ba in mp_int_div (a=Variable "a" is not available.
) at imath.c:3068
3068 q.digits[qpos++] = (mp_digit) qdigit;
(gdb) bt
#0 0x00002aaaac8b82ba in mp_int_div (a=Variable "a" is not available.
) at imath.c:3068
#1 0x00002aaaac8b9531 in mp_int_exptmod (a=0x970a28, b=0x978530, m=0x9780e0,
c=0x978980) at imath.c:1234
#2 0x00002aaaac8b4ef3 in pgp_elgamal_decrypt (pk=Variable "pk" is not available.
) at pgp-mpi-internal.c:225
#3 0x00002aaaac8be2b9 in pgp_parse_pubenc_sesskey (ctx=0x972848,
pkt=0x977328) at pgp-pubdec.c:116
#4 0x00002aaaac8bca0b in pgp_decrypt (ctx=0x972848, msrc=Variable "msrc" is not available.
)
at pgp-decrypt.c:1126
#5 0x00002aaaac8c0a73 in decrypt_internal (is_pubenc=0, need_text=1,
data=0x9772d0, key=0x976ab8, keypsw=0x0, args=Variable "args" is not available.

Any thoughts about the cause?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-07-14 17:58:12 Re: [PATCHES] [patch 0/9] annual pgcrypto update
Previous Message Tom Lane 2006-07-14 17:44:02 Re: pgstattuple extension for indexes

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2006-07-14 17:58:12 Re: [PATCHES] [patch 0/9] annual pgcrypto update
Previous Message Tom Lane 2006-07-14 17:44:02 Re: pgstattuple extension for indexes