Re: BUG #2246: Bad malloc interactions: ecpg, openssl

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Klosterman <andrew5(at)ece(dot)cmu(dot)edu>
Cc: Stephen Frost <sfrost(at)snowman(dot)net>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2246: Bad malloc interactions: ecpg, openssl
Date: 2006-02-15 17:07:47
Message-ID: 2018.1140023267@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-patches

Andrew Klosterman <andrew5(at)ece(dot)cmu(dot)edu> writes:
> With the debug binaries, I was able to step through the program and get to
> what appears to be the function where it bails: line 1166 of
> postgresql-8.1.0/src/interfaces/libpq/fe-secure.c where SSL_free() is
> called.

BTW, is the address that glibc says is corrupted consistent from run to
run? If so, you could narrow down the problem pretty quickly by setting
a hardware watchpoint on that address with gdb. Any hits that are not
from the malloc subroutines are probably the source of the problem.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2006-02-15 17:39:39 Re: BUG #2263: corrupted pgstat.stat file
Previous Message Alex Kostyshin 2006-02-15 15:45:40 BUG #2264: bad work with cyrillic encoding

Browse pgsql-patches by date

  From Date Subject
Next Message Chris Browne 2006-02-15 17:17:47 Re: Patch Submission Guidelines
Previous Message Simon Riggs 2006-02-15 10:02:13 Re: Patch Submission Guidelines