Re: pg_dump dumping... core

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ohp(at)pyrenet(dot)fr
Cc: pgsql-hackers list <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_dump dumping... core
Date: 2003-04-24 14:57:25
Message-ID: 13574.1051196245@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

ohp(at)pyrenet(dot)fr writes:
> pg_dump is crashing on 1 database here.

Judging from the backtrace, malloc's data structures have gotten
corrupted, probably as a result of somebody scribbling on a few more
bytes than their buffer would hold.

Since we haven't seen other reports of similar problems, I'm leaning
to the theory that it's a platform-specific problem. In particular
I wonder whether you might have a buggy version of vsnprintf(). I have
seen Solaris 7's vsnprintf() overrun its output buffer --- could
Unixware's have the same bug?

It'd be worth trying the workaround outlined in FAQ_Solaris (add
snprintf.o to LIBOBJS and rebuild libpq.so), just to see if it makes
any difference. If not, you're in for some tedious debugging to try
to figure out exactly where the culprit is :-(

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Karl Waclawek 2003-04-24 14:58:48 libpq.dll (Win32) for rel. 7.3.2 missing some exports
Previous Message ohp 2003-04-24 14:29:36 pg_dump dumping... core