Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugspgsql-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


pgsql-bugs by date

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

pgsql-patches by date

Next:From: Chris BrowneDate: 2006-02-15 17:17:47
Subject: Re: Patch Submission Guidelines
Previous:From: Simon RiggsDate: 2006-02-15 10:02:13
Subject: Re: Patch Submission Guidelines

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group