Re: free(): invalid pointer , when to dumping data to a new server

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Lars Aksel Opsahl <Lars(dot)Opsahl(at)nibio(dot)no>, "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: free(): invalid pointer , when to dumping data to a new server
Date: 2020-10-27 14:10:50
Message-ID: 4ae13029956a4bbcb7f60aee6f97b62c6bf85b98.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Mon, 2020-10-26 at 10:22 +0000, Lars Aksel Opsahl wrote:
> I have done some more testing and postgres also crashes right after 'pg_restore --section=pre-data -1'
> is done also. Here I also see the 'free(): invalid pointer' in the postgres log.
>
> This happens on with Postgres 12 and Postgres 13. and any version of postgis I have tested with.
>
> The pre-data input is little bit more than 200.000 lines with more than 6000 CREATE statements,
> if I test with the first 100 lines it does not crash. It seems like no data are lost here because
> the server does recovery at startup.
>
> I tested on another with CentOS and the same software and it worked ok
>
> The server diagnostic does not indicate any memory errors.
>
> Dnf search does not give mee any debuginfo file for postgres

You'll have to edit "/etc/yum.repos.d/pgdg-fedora-all.repo" and
set the "PostgreSQL 13 for Fedora $releasever - $basearch - Debuginfo"
repository to "enabled=1".

Then you can install the debuginfo packages and generate a stack trace.

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Lars Aksel Opsahl 2020-10-27 15:15:10 Re: free(): invalid pointer , when to dumping data to a new server
Previous Message Laurenz Albe 2020-10-27 14:07:02 Re: wait_event_type IO & wait_event CopyFileRead