Re: amcheck assert failure - Mailing list pgsql-bugs

From Peter Geoghegan
Subject Re: amcheck assert failure
Date
Msg-id CAH2-WzkmvoOzP6pVTjdE=yJwTg49+L7ZegkPvbqk+3A0ahJ5LQ@mail.gmail.com
Whole thread Raw
In response to Re: amcheck assert failure  (Peter Geoghegan <pg@bowt.ie>)
Responses Re: amcheck assert failure
List pgsql-bugs
On Sat, Apr 20, 2019 at 2:37 PM Peter Geoghegan <pg@bowt.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



pgsql-bugs by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: amcheck assert failure
Next
From: Азат Якупов
Date:
Subject: Segfault behaviour