Re: capturing regression test core dump

Lists: pgsql-hackers
From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: capturing regression test core dump
Date: 2011-07-05 15:49:48
Message-ID: CA+TgmoaLajijNc7WQENdrpnnMtnTHdCDb99+ducNS=GtBPM5Tw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Is there any way to get the regression tests to write a core dump file
somewhere that I can get at it? I tried "ulimit -c unlimited" but
can't find any core file lying around after I reproduce the crash.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


From: Florian Pflug <fgp(at)phlo(dot)org>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: capturing regression test core dump
Date: 2011-07-05 15:57:57
Message-ID: 732B4DCF-7220-467D-AAEA-09C0A3232F27@phlo.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Jul5, 2011, at 17:49 , Robert Haas wrote:
> Is there any way to get the regression tests to write a core dump file
> somewhere that I can get at it? I tried "ulimit -c unlimited" but
> can't find any core file lying around after I reproduce the crash.

In case you're on OSX, the core dumps there are written to /cores,
not to the cwd of the process.

best regards,
Florian Pflug


From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: capturing regression test core dump
Date: 2011-07-05 16:03:40
Message-ID: 1309881722-sup-6332@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Excerpts from Robert Haas's message of mar jul 05 11:49:48 -0400 2011:
> Is there any way to get the regression tests to write a core dump file
> somewhere that I can get at it? I tried "ulimit -c unlimited" but
> can't find any core file lying around after I reproduce the crash.

Are you using a temp install? If so, the core files are going to end up
there, and thus go away when that's deleted. You could change the
core_pattern if you're on Linux (see core(5)) but it's probably easier
to use "make installcheck" instead.

--
Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Florian Pflug <fgp(at)phlo(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: capturing regression test core dump
Date: 2011-07-05 16:12:38
Message-ID: CA+TgmoYr9kqeWGrBtpbpWYaiOhRP8VQZ18Wq2-piZgxB+j96Mw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Tue, Jul 5, 2011 at 11:57 AM, Florian Pflug <fgp(at)phlo(dot)org> wrote:
> On Jul5, 2011, at 17:49 , Robert Haas wrote:
>> Is there any way to get the regression tests to write a core dump file
>> somewhere that I can get at it?  I tried "ulimit -c unlimited" but
>> can't find any core file lying around after I reproduce the crash.
>
> In case you're on OSX, the core dumps there are written to /cores,
> not to the cwd of the process.

Oh, ho! Thanks!

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company