Re: amcheck assert failure

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: Grigory Smolkin <g(dot)smolkin(at)postgrespro(dot)ru>
Cc: PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: amcheck assert failure
Date: 2019-04-20 23:06:06
Message-ID: CAH2-WzkmvoOzP6pVTjdE=yJwTg49+L7ZegkPvbqk+3A0ahJ5LQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Sat, Apr 20, 2019 at 2:37 PM Peter Geoghegan <pg(at)bowt(dot)ie> wrote:
> Alternatively, you could dump the page image from within gdb. Go to
> the frame for _bt_check_natts() (e.g., enter "f 1"), and then dump the
> contents of the page to file:

I was inspired to do a write-up on this for the Wiki:

https://wiki.postgresql.org/wiki/Getting_a_stack_trace_of_a_running_PostgreSQL_backend_on_Linux/BSD#Dumping_a_page_image_from_within_GDB

Seems like a good idea to centralize knowledge of backend
instrumentation that's useful for bug reports, even beyond GDB.

--
Peter Geoghegan

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Азат Якупов 2019-04-21 18:47:58 Segfault behaviour
Previous Message Peter Geoghegan 2019-04-20 21:37:35 Re: amcheck assert failure