Re: pgcrypto: PGP signatures

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: Marko Tiikkaja <marko(at)joh(dot)to>
Cc: Abhijit Menon-Sen <ams(at)2ndquadrant(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Joel Jacobson <joel(at)trustly(dot)com>, Thomas Munro <munro(at)ip9(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pgcrypto: PGP signatures
Date: 2014-10-27 22:57:11
Message-ID: CAMkU=1xX9d2tYb41v6yCX-UB0qgqwhoTDS=Z2P2a+E3csrw1Tw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Oct 20, 2014 at 3:32 PM, Marko Tiikkaja <marko(at)joh(dot)to> wrote:

> Hi,
>
> Here's the rebased patch -- as promised -- in a v7.
>
>
>
Hi Marko,

Using the same script as for the memory leak, I am getting seg faults using
this patch.

24425 2014-10-27 15:42:11.819 PDT LOG: server process (PID 24452) was
terminated by signal 11: Segmentation fault
24425 2014-10-27 15:42:11.819 PDT DETAIL: Failed process was running:
select pgp_sym_decrypt_verify(dearmor($1),$2,dearmor($3),'debug=1')

gdb backtrace:

#0 pfree (pointer=0x0) at mcxt.c:749
#1 0x00007f617d7973e7 in pgp_sym_decrypt_verify_text (fcinfo=0x1d7f1f0) at
pgp-pgsql.c:1047
#2 0x000000000059f185 in ExecMakeFunctionResultNoSets (fcache=0x1d7f180,
econtext=0x1d7fb00, isNull=0x7fff02e902bf "", isDone=<value optimized out>)
at execQual.c:1992
#3 0x000000000059ae0c in ExecEvalExprSwitchContext (expression=<value
optimized out>, econtext=<value optimized out>, isNull=<value optimized
out>,
isDone=<value optimized out>) at execQual.c:4320

Cheers,

Jeff

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2014-10-27 22:57:27 Re: proposal: CREATE DATABASE vs. (partial) CHECKPOINT
Previous Message Tom Lane 2014-10-27 22:52:44 Re: proposal: CREATE DATABASE vs. (partial) CHECKPOINT