Re: free(): invalid pointer , when to dumping data to a new server - Mailing list pgsql-admin

From Lars Aksel Opsahl
Subject Re: free(): invalid pointer , when to dumping data to a new server
Date
Msg-id PR3P189MB1035C3DC4C526A813501E7FD9D160@PR3P189MB1035.EURP189.PROD.OUTLOOK.COM
Whole thread Raw
In response to Re: free(): invalid pointer , when to dumping data to a new server  (Laurenz Albe <laurenz.albe@cybertec.at>)
Responses Re: free(): invalid pointer , when to dumping data to a new server
Re: free(): invalid pointer , when to dumping data to a new server
List pgsql-admin

>
>From: Laurenz Albe <laurenz.albe@cybertec.at>Sent: Tuesday, October 27, 2020 3:10 PMTo: Lars Aksel Opsahl <Lars.Opsahl@nibio.no>; pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>Subject: Re: free(): invalid pointer , when to dumping data to a new server
>
.
.
>> 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
>

HI

Thanks that fixed the debug install yes.

Here is the new stackstrace not too much info that helps mee thou.

gdb /usr/pgsql-12/bin/postmaster /var/lib/systemd/coredump/core.postmaster.26.6f7d98107f544085a41c6f8b876418d0.298120.1603810048000000
GNU gdb (GDB) Red Hat Enterprise Linux 8.2-11.el8
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/pgsql-12/bin/postmaster...Reading symbols from /usr/lib/debug/usr/pgsql-12/bin/postgres-12.4-1PGDG.rhel8.x86_64.debug...done.
done.
BFD: warning: /var/lib/systemd/coredump/core.postmaster.26.6f7d98107f544085a41c6f8b876418d0.298120.1603810048000000 is truncated: expected core file size >= 2326896640, found: 2147483648

warning: core file may not match specified executable file.
[New LWP 298120]
Cannot access memory at address 0x7f79c5966128
Cannot access memory at address 0x7f79c5966120
Failed to read a valid object file image from memory.
Core was generated by `postgres: postgres test1 [local] idle                  '.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007f79c2caf70f in ?? ()
(gdb) bt
#0  0x00007f79c2caf70f in ?? ()
Backtrace stopped: Cannot access memory at address 0x7ffc037c6ae0
(gdb)

Lars

pgsql-admin by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: free(): invalid pointer , when to dumping data to a new server
Next
From: Alvaro Herrera
Date:
Subject: Re: free(): invalid pointer , when to dumping data to a new server