Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1irw8c-0004nx-1T for pgsql-bugs@arkaria.postgresql.org; Thu, 16 Jan 2020 03:48:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1irw8a-0007sN-SZ for pgsql-bugs@arkaria.postgresql.org; Thu, 16 Jan 2020 03:48:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1irw8a-0007sF-76 for pgsql-bugs@lists.postgresql.org; Thu, 16 Jan 2020 03:48:04 +0000 Received: from mail-oln040092253074.outbound.protection.outlook.com ([40.92.253.74] helo=APC01-SG2-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1irw8W-0003xx-4k for pgsql-bugs@lists.postgresql.org; Thu, 16 Jan 2020 03:48:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CCJWLc6VU+nhZ9WAFKY4loUl++vs05CiRgTvXBa0QbMUpLs3+5W8sIxns2KpJh7RGYYlBYNNtL3s+qctvwosVWVVL/n049AayjqmWPnFMMfH1BBp+sEkn884LQTLqJE+dT3RH84a0Nj7JTYchA2SCWx9XrNKvJc9TtVCMEYpxIR8W0Zuntc1GWLl4In7Yf0FjzVifConbO/YcTMKa8ZNPh6//c2Oa2obeRbip+bWht3Q449CJBItEvAY0tJBzGL0OvbBxEuk0G3QCyTaUZluYLYwbEhlqVaNRTphxVnih0ySW4a/KOaa6fzECs0wOf+hAu2LsTTtKv0gbty8BGQMew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=woKvuVV5FpApAiRDnIsBgT03Gg648F96OZN0ax3C0K8=; b=NL1ZZU7NwvAEHIFUOWHGJYL9ZzPwOC29/KhizriQl0DyiONj3aG6psTQ9kFqFQyhww2LA9eezpdPVuRYCzfMoOuGvUNfqyQnGFNyWp/cniSOOGynXbb6qmbzhKtBF/+uJVqHDXDMn2gnLXuHCtrQvHTWFKUtZrw0Ph8vyqe7aUqE/vBrPamfkJzGx6yC7UZ2xaEykolj7mfKPWGPzjytw2oo1vS9GMVFyxcCyWzFlin++DLMKAd1A2QaluGvp/Aw5kSu1WRUEfaGYo/u9cl50w9G7HHlwMTCI4YhE8Aetl2b3jZFM8CA3TJSUOA6gUYDHFfKt5at0X6hE1ub803yRA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=woKvuVV5FpApAiRDnIsBgT03Gg648F96OZN0ax3C0K8=; b=FXNAGWjb2qPkVR3DtP6v3fJCesv1QO+EwU3FOgFslyBSWGQkEhS3Y6mZt8/tyCkokJAQjY/Q5aMEdwK+oOl5vxYJLsqCg8iskA7vov1emcMjCgP9sEVw2S9UfmCffjg4HPobzXgmK37/EU9vc8kuQHdYFxBkL5D0kl1A0u4EWsGUhSKLJ4HqnvxffUS44gdiFqb546S7/Drse9UvfE9pkUASdf9IU38D1xPN3MrWL5uH6fmLhJ+O6K77INbfX7zyshR/3amnnUl9LsjQ1WUCF9UXQlqByEUZvdcN5MZimBjSY6r7OT2/sUj2fCbZ8u3n+C2FKTs6V5pLpw3BOj+/7Q== Received: from HK2APC01FT023.eop-APC01.prod.protection.outlook.com (10.152.248.51) by HK2APC01HT011.eop-APC01.prod.protection.outlook.com (10.152.248.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2644.19; Thu, 16 Jan 2020 03:47:55 +0000 Received: from PS2PR02MB3527.apcprd02.prod.outlook.com (10.152.248.55) by HK2APC01FT023.mail.protection.outlook.com (10.152.248.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2644.19 via Frontend Transport; Thu, 16 Jan 2020 03:47:55 +0000 Received: from PS2PR02MB3527.apcprd02.prod.outlook.com ([fe80::c196:9204:7c6a:167c]) by PS2PR02MB3527.apcprd02.prod.outlook.com ([fe80::c196:9204:7c6a:167c%7]) with mapi id 15.20.2623.018; Thu, 16 Jan 2020 03:47:55 +0000 From: Pendekar Dikala Senja To: Mahendra Singh Thalor CC: Michael Paquier , "pgsql-bugs@lists.postgresql.org" Subject: Re: BUG #16205: background worker "logical replication worker" (PID 25218) was terminated by signal 11: Segmentation Thread-Topic: BUG #16205: background worker "logical replication worker" (PID 25218) was terminated by signal 11: Segmentation Thread-Index: AQHVy1dFF9A7alZr40idXKj8F9veHafrfz2AgAAAiPKAAR2g/4AABmaAgAADfj+AAAFkaA== Date: Thu, 16 Jan 2020 03:47:55 +0000 Message-ID: References: ,, In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:0F0EBA1602FDFC9F514EB2FC84E6144052AA419A07FC1ED042BEA9AA82A6AA2F;UpperCasedChecksum:89C056189D766B9FFB82F979388BF10963FE8359CA242514A71E537C1AF10262;SizeAsReceived:7603;Count:45 x-tmn: [PxA5utIp/5nJUZrTphR9/U9XIHoJOroR] x-ms-publictraffictype: Email x-incomingheadercount: 45 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: c04bf941-c192-47f7-7f5f-08d79a36deec x-ms-traffictypediagnostic: HK2APC01HT011: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: jj0LBIxQP4vb7FUUOn1yM24G2SHk7+tZ75jkBxIGHOGY3hDZKm2oYIg11WM3wN0/rlO2txxxTLp+uElL0Bn4Dy6t4m/VfLbmkkL6o9c3MkIp/ReO6oIxdicKEM+MWtdImHL3Rcd7MMlYsMJ2NNeQ+X88dJQYuzp3BjNrRgOCM5KrwuQU1/9VWbUFK1TEfd8wAIEfJvx+8GL03s8Pn03qRE0rthGd4kiOsFYlqWtzSQ4= x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_PS2PR02MB352702EFAA2FE007096FA47683360PS2PR02MB3527apcp_" MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: c04bf941-c192-47f7-7f5f-08d79a36deec X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jan 2020 03:47:55.4307 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2APC01HT011 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_PS2PR02MB352702EFAA2FE007096FA47683360PS2PR02MB3527apcp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable please find below : sudo gdb -p 15803 GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 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-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". Attaching to process 15803 Reading symbols from /usr/lib/postgresql/12/bin/postgres...(no debugging sy= mbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libpthread.so.0...Reading symbol= s from /usr/lib/debug/.build-id/b1/7c21299099640a6d863e423d99265824e7bb16.d= ebug...done. done. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Reading symbols from /usr/lib/x86_64-linux-gnu/libxml2.so.2...(no debugging= symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libpam.so.0...(no debugging symb= ols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libssl.so.1.0.0...(no debugging = symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libcrypto.so.1.0.0...(no debuggi= ng symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2...(no de= bugging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/librt.so.1...Reading symbols fro= m /usr/lib/debug//lib/x86_64-linux-gnu/librt-2.23.so...done. done. Reading symbols from /lib/x86_64-linux-gnu/libdl.so.2...Reading symbols fro= m /usr/lib/debug//lib/x86_64-linux-gnu/libdl-2.23.so...done. done. Reading symbols from /lib/x86_64-linux-gnu/libm.so.6...Reading symbols from= /usr/lib/debug//lib/x86_64-linux-gnu/libm-2.23.so...done. done. Reading symbols from /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2...(no deb= ugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libicui18n.so.55...(no debug= ging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libicuuc.so.55...(no debuggi= ng symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libsystemd.so.0...(no debugging = symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libc.so.6...Reading symbols from= /usr/lib/debug//lib/x86_64-linux-gnu/libc-2.23.so...done. done. Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /us= r/lib/debug//lib/x86_64-linux-gnu/ld-2.23.so...done. done. Reading symbols from /lib/x86_64-linux-gnu/libz.so.1...(no debugging symbol= s found)...done. Reading symbols from /lib/x86_64-linux-gnu/liblzma.so.5...(no debugging sym= bols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libaudit.so.1...(no debugging sy= mbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libkrb5.so.3...(no debugging= symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libk5crypto.so.3...(no debug= ging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libcom_err.so.2...(no debugging = symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libkrb5support.so.0...(no de= bugging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2...(no debug= ging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libresolv.so.2...Reading symbols= from /usr/lib/debug//lib/x86_64-linux-gnu/libresolv-2.23.so...done. done. Reading symbols from /usr/lib/x86_64-linux-gnu/libsasl2.so.2...(no debuggin= g symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libgssapi.so.3...(no debuggi= ng symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libgnutls.so.30...(no debugg= ing symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libstdc++.so.6...(no debuggi= ng symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libgcc_s.so.1...(no debugging sy= mbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libicudata.so.55...(no debug= ging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libselinux.so.1...(no debugging = symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libgcrypt.so.20...(no debugging = symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libkeyutils.so.1...(no debugging= symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libheimntlm.so.0...(no debug= ging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libkrb5.so.26...(no debuggin= g symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libasn1.so.8...(no debugging= symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libhcrypto.so.4...(no debugg= ing symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libroken.so.18...(no debuggi= ng symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libp11-kit.so.0...(no debugg= ing symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libidn.so.11...(no debugging= symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libtasn1.so.6...(no debuggin= g symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libnettle.so.6...(no debuggi= ng symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libhogweed.so.4...(no debugg= ing symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libgmp.so.10...(no debugging= symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libpcre.so.3...(no debugging sym= bols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libgpg-error.so.0...(no debuggin= g symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libwind.so.0...(no debugging= symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libheimbase.so.1...(no debug= ging symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libhx509.so.5...(no debuggin= g symbols found)...done. Reading symbols from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0...(no debugg= ing symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libcrypt.so.1...Reading symbols = from /usr/lib/debug//lib/x86_64-linux-gnu/libcrypt-2.23.so...done. done. Reading symbols from /usr/lib/x86_64-linux-gnu/libffi.so.6...(no debugging = symbols found)...done. Reading symbols from /usr/lib/postgresql/12/lib/pg_stat_statements.so...(no= debugging symbols found)...done. Reading symbols from /usr/lib/postgresql/12/lib/pg_partman_bgw.so...(no deb= ugging symbols found)...done. Reading symbols from /lib/x86_64-linux-gnu/libnss_files.so.2...Reading symb= ols from /usr/lib/debug//lib/x86_64-linux-gnu/libnss_files-2.23.so...done. done. 0x00007f5ce4bf85b3 in __select_nocancel () at ../sysdeps/unix/syscall-templ= ate.S:84 84 ../sysdeps/unix/syscall-template.S: No such file or directory. ________________________________ From: Pendekar Dikala Senja Sent: Wednesday, January 15, 2020 7:44 PM To: Mahendra Singh Thalor Cc: Michael Paquier ; pgsql-bugs@lists.postgresql.org = Subject: Re: BUG #16205: background worker "logical replication worker" (PI= D 25218) was terminated by signal 11: Segmentation I didn't see where the path pg_ctl $./pg_ctl -D /data/postgres/data -l logfile -c start -su: ./pg_ctl: No such file or directory $ pg_ctl -D /data/postgres/data -l logfile -c start pg_ctl: command not found on datadir I did not see core.PID, let me know where the dir. $ ls -lrth total 144K drwx------ 2 postgres postgres 4.0K Jan 2 16:34 pg_twophase drwx------ 2 postgres postgres 4.0K Jan 2 16:34 pg_tblspc drwx------ 2 postgres postgres 4.0K Jan 2 16:34 pg_snapshots drwx------ 2 postgres postgres 4.0K Jan 2 16:34 pg_serial drwx------ 4 postgres postgres 4.0K Jan 2 16:34 pg_multixact drwx------ 2 postgres postgres 4.0K Jan 2 16:34 pg_dynshmem drwx------ 2 postgres postgres 4.0K Jan 2 16:34 pg_commit_ts -rw------- 1 postgres postgres 3 Jan 2 16:34 PG_VERSION -rw------- 1 postgres postgres 88 Jan 2 16:34 postgresql.auto.conf drwx------ 2 postgres postgres 4.0K Jan 2 16:34 pg_xact drwx------ 2 postgres postgres 4.0K Jan 2 16:34 pg_subtrans drwx------ 6 postgres postgres 4.0K Jan 2 16:44 base drwx------ 5 postgres postgres 4.0K Jan 3 18:29 pg_replslot -rw------- 1 postgres postgres 127 Jan 15 12:38 postmaster.opts drwx------ 2 postgres postgres 4.0K Jan 16 01:00 pg_log -rw------- 1 postgres postgres 47 Jan 16 01:00 current_logfiles drwx------ 3 postgres postgres 52K Jan 16 11:00 pg_wal drwx------ 4 postgres postgres 4.0K Jan 16 11:40 pg_logical -rw------- 1 postgres postgres 93 Jan 16 11:40 postmaster.pid drwx------ 2 postgres postgres 4.0K Jan 16 11:40 pg_stat_tmp drwx------ 2 postgres postgres 4.0K Jan 16 11:40 pg_notify drwx------ 2 postgres postgres 4.0K Jan 16 11:40 global drwx------ 2 postgres postgres 4.0K Jan 16 11:40 pg_stat $ cd postmaster.pid -su: cd: postmaster.pid: Not a directory $ more postmaster.pid 15803 /data/postgres/data 1579063112 5432 /var/run/postgresql * 5432001 169312256 ready ________________________________ From: Mahendra Singh Thalor Sent: Wednesday, January 15, 2020 7:30 PM To: Pendekar Dikala Senja Cc: Michael Paquier ; pgsql-bugs@lists.postgresql.org = Subject: Re: BUG #16205: background worker "logical replication worker" (PI= D 25218) was terminated by signal 11: Segmentation On Thu, Jan 16, 2020, 08:50 Pendekar Dikala Senja > wrote: following your intruction. please find the information from my server below= after running stact trace. I can't capture the PID because PID is always c= hanging and not always the same. sudo gdb -p 28164 GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 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-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". Attaching to process 28164 ptrace: No such process. Yes, every time pid will change. You have to give '-c" option while stating= the server to get call stack. You have to give "gdb postgres data/core.pid". This command should be fired from your bin(binray) folder. Only running process can be attached like "gdb -p pid'. Thanks and Regards Mahendra Singh Thalor EnterpriseDB: http://www.enterprisedb.com (gdb) set pagination off (gdb) set logging file debuglog.txt (gdb) set logging on Copying output to debuglog.txt. (gdb) cont The program is not being run. (gdb) detach The program is not being run. (gdb) b errfinish No symbol table is loaded. Use the "file" command. Make breakpoint pending on future shared library load? (y or [n]) n (gdb) thanks ________________________________ From: Pendekar Dikala Senja > Sent: Wednesday, January 15, 2020 2:08 AM To: Mahendra Singh Thalor > Cc: Michael Paquier >; pgsq= l-bugs@lists.postgresql.org > Subject: Re: BUG #16205: background worker "logical replication worker" (PI= D 25218) was terminated by signal 11: Segmentation Hi, right now we're still trying to setup again, and will provide log later. Kind Regards your good friend ________________________________ From: Mahendra Singh Thalor > Sent: Wednesday, January 15, 2020 5:02:57 PM To: Pendekar Dikala Senja > Cc: Michael Paquier >; pgsq= l-bugs@lists.postgresql.org > Subject: Re: BUG #16205: background worker "logical replication worker" (PI= D 25218) was terminated by signal 11: Segmentation On Wed, 15 Jan 2020 at 09:32, Pendekar Dikala Senja > wrote: > > > Here are the logs and our configuration. > Actually we are facing problem when replicating partition table from 11.6= to 12.1, but if there is no partition table the replication works so well. > As FYI, our server spec is 16 core and 64GB. And we are using this ubuntu > > LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noar= ch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch > Distributor ID: Ubuntu > Description: Ubuntu 16.04.6 LTS > Release: 16.04 > Codename: xenial > > Can you help us to find out the solution and configuration? > Thanks for your help > > ________________________________ From: Michael Paquier > Sent: Tuesday, January 14, 2020 6:58 PM > To: pendekar.senja@outlook.com; pgsql-= bugs@lists.postgresql.org > Subject: Re: BUG #16205: background worker "logical replication worker" (= PID 25218) was terminated by signal 11: Segmentation > > On Wed, Jan 15, 2020 at 02:00:48AM +0000, PG Bug reporting form wrote: > > I got error when replicate with native logical method from PostgreSQL 1= 1.6 > > to PostgreSQL 12.1, I will connecting table partition to table partitio= n > > from Version 11.6 to Version 12.1, but after all tables already replica= ted > > around more than 2 hours, server can't access and recovery mode. please= help > > to advice, below log. > > Could you provide a backtrace? Looking at the recent commit history, > we had one fix which could be relevant to you after 12.1 was released: > https://www.postgresql.org/message-id//16129-a0c0f48e71741e5f@postgresql.= org > > And here is the commit: > https://git.postgresql.org/gitweb/?p=3Dpostgresql.git;a=3Dcommit;h=3Da2aa= 224e > > The problem may be different though, so a backtrace would be good to > check anyway. > -- > Michael Hi, It looks like that server is crashed due to segmentation fault. Can you provide call stack(stack trace) of Pid 25218. To get call stack, you should start server with "-c" option. Ex: ./pg_ctl -D data -l logfile -c start How to get stack trace: After crash, you can see core.PID file in your data directory. Attach core = file to gdb and fire "bt" command. Ex: gdb postgres data/core.25218 bt -- --_000_PS2PR02MB352702EFAA2FE007096FA47683360PS2PR02MB3527apcp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
please find below :

sudo gdb -p 15803
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/lice= nses/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-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".
Attaching to process 15803
Reading symbols from /usr/lib/postgresql/12/bin/postgres...(no debuggi= ng symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libpthread.so.0...Reading s= ymbols from /usr/lib/debug/.build-id/b1/7c21299099640a6d863e423d99265824e7b= b16.debug...done.
done.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_= db.so.1".
Reading symbols from /usr/lib/x86_64-linux-gnu/libxml2.so.2...(no debu= gging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libpam.so.0...(no debugging= symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libssl.so.1.0.0...(no debug= ging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libcrypto.so.1.0.0...(no de= bugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2...(= no debugging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/librt.so.1...Reading symbol= s from /usr/lib/debug//lib/x86_64-linux-gnu/librt-2.23.so...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libdl.so.2...Reading symbol= s from /usr/lib/debug//lib/x86_64-linux-gnu/libdl-2.23.so...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libm.so.6...Reading symbols= from /usr/lib/debug//lib/x86_64-linux-gnu/libm-2.23.so...done.
done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2...(n= o debugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libicui18n.so.55...(no = debugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libicuuc.so.55...(no de= bugging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libsystemd.so.0...(no debug= ging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libc.so.6...Reading symbols= from /usr/lib/debug//lib/x86_64-linux-gnu/libc-2.23.so...done.
done.
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols fro= m /usr/lib/debug//lib/x86_64-linux-gnu/ld-2.23.so...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libz.so.1...(no debugging s= ymbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/liblzma.so.5...(no debuggin= g symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libaudit.so.1...(no debuggi= ng symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libkrb5.so.3...(no debu= gging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libk5crypto.so.3...(no = debugging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libcom_err.so.2...(no debug= ging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libkrb5support.so.0...(= no debugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2...(no = debugging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libresolv.so.2...Reading sy= mbols from /usr/lib/debug//lib/x86_64-linux-gnu/libresolv-2.23.so...done.
done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libsasl2.so.2...(no deb= ugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libgssapi.so.3...(no de= bugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libgnutls.so.30...(no d= ebugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libstdc++.so.6.= ..(no debugging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libgcc_s.so.1...(no debuggi= ng symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libicudata.so.55...(no = debugging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libselinux.so.1...(no debug= ging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libgcrypt.so.20...(no debug= ging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libkeyutils.so.1...(no debu= gging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libheimntlm.so.0...(no = debugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libkrb5.so.26...(no deb= ugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libasn1.so.8...(no debu= gging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libhcrypto.so.4...(no d= ebugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libroken.so.18...(no de= bugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libp11-kit.so.0...(no d= ebugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libidn.so.11...(no debu= gging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libtasn1.so.6...(no deb= ugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libnettle.so.6...(no de= bugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libhogweed.so.4...(no d= ebugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libgmp.so.10...(no debu= gging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libpcre.so.3...(no debuggin= g symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libgpg-error.so.0...(no deb= ugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libwind.so.0...(no debu= gging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libheimbase.so.1...(no = debugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libhx509.so.5...(no deb= ugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libsqlite3.so.0...(no d= ebugging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libcrypt.so.1...Reading sym= bols from /usr/lib/debug//lib/x86_64-linux-gnu/libcrypt-2.23.so...done.
done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libffi.so.6...(no debug= ging symbols found)...done.
Reading symbols from /usr/lib/postgresql/12/lib/pg_stat_statements.so.= ..(no debugging symbols found)...done.
Reading symbols from /usr/lib/postgresql/12/lib/pg_partman_bgw.so...(n= o debugging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libnss_files.so.2...Reading= symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libnss_files-2.23.so...d= one.
done.
0x00007f5ce4bf85b3 in __select_nocancel () at ../sysdeps/unix/syscall-= template.S:84
84 ../sysdeps/unix/syscall-template.S: No such file or directory.


From: Pendekar Dikala Senja= <pendekar.senja@outlook.com>
Sent: Wednesday, January 15, 2020 7:44 PM
To: Mahendra Singh Thalor <mahi6run@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>; pgsql-bugs@lists.po= stgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #16205: background worker "logical replication= worker" (PID 25218) was terminated by signal 11: Segmentation
 
I didn't see where the path pg_ctl

$./pg_ctl -D /data/postgres/data -l logfile -c start
-su: ./pg_ctl: No such file or directory
$ pg_ctl -D /data/postgres/data -l logfile -c start
pg_ctl: command not found

on datadir I did not see core.PID, let me know where the dir.
$ ls -lrth
total 144K
drwx------ 2 postgres postgres 4.0K Jan  2 16:34 pg_twophase
drwx------ 2 postgres postgres 4.0K Jan  2 16:34 pg_tblspc
drwx------ 2 postgres postgres 4.0K Jan  2 16:34 pg_snapshots
drwx------ 2 postgres postgres 4.0K Jan  2 16:34 pg_serial
drwx------ 4 postgres postgres 4.0K Jan  2 16:34 pg_multixact
drwx------ 2 postgres postgres 4.0K Jan  2 16:34 pg_dynshmem
drwx------ 2 postgres postgres 4.0K Jan  2 16:34 pg_commit_ts
-rw------- 1 postgres postgres    3 Jan  2 16:34 PG_VER= SION
-rw------- 1 postgres postgres   88 Jan  2 16:34 postgresql.= auto.conf
drwx------ 2 postgres postgres 4.0K Jan  2 16:34 pg_xact
drwx------ 2 postgres postgres 4.0K Jan  2 16:34 pg_subtrans
drwx------ 6 postgres postgres 4.0K Jan  2 16:44 base
drwx------ 5 postgres postgres 4.0K Jan  3 18:29 pg_replslot
-rw------- 1 postgres postgres  127 Jan 15 12:38 postmaster.opts<= br>
drwx------ 2 postgres postgres 4.0K Jan 16 01:00 pg_log
-rw------- 1 postgres postgres   47 Jan 16 01:00 current_logfiles=
drwx------ 3 postgres postgres  52K Jan 16 11:00 pg_wal
drwx------ 4 postgres postgres 4.0K Jan 16 11:40 pg_logical
-rw------- 1 postgres postgres   93 Jan 16 11:40 postmaster.pid
drwx------ 2 postgres postgres 4.0K Jan 16 11:40 pg_stat_tmp
drwx------ 2 postgres postgres 4.0K Jan 16 11:40 pg_notify
drwx------ 2 postgres postgres 4.0K Jan 16 11:40 global
drwx------ 2 postgres postgres 4.0K Jan 16 11:40 pg_stat
$ cd postmaster.pid
-su: cd: postmaster.pid: Not a directory
$ more postmaster.pid
15803
/data/postgres/data
1579063112
5432
/var/run/postgresql
*
  5432001 169312256
ready  


From: Mahendra Singh Thal= or <mahi6run@gmail.com>
Sent: Wednesday, January 15, 2020 7:30 PM
To: Pendekar Dikala Senja <pendekar.senja@outlook.com>
Cc: Michael Paquier <michael@paquier.xyz>; pgsql-bugs@lists.po= stgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #16205: background worker "logical replication= worker" (PID 25218) was terminated by signal 11: Segmentation
 
On Thu, Jan 16, 2020, 08:50 Pende= kar Dikala Senja <pendekar= .senja@outlook.com> wrote:
following your intruction. please find the information from my server below= after running stact trace. I can't capture the PID because PID is always c= hanging and not always the same.


sudo gdb -p 28164
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.o= rg/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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "= word".
Attaching to process 28164
ptrace: No such process.

Yes, every time pid will change. You have to give '-c&quo= t; option while stating the server to get call stack.
You have to give "gdb postgres data/core.pid".<= /div>
This command should be fired from your bin(binray) folder= .
Only running process can be attached like "gdb -p pi= d'.

Thanks and Regards=
Mahendra Singh Thalor
EnterpriseDB: http://www.= enterprisedb.com


(gdb) set pagination off
(gdb) set logging file debuglog.txt
(gdb) set logging on
Copying output to debuglog.txt.
(gdb) cont
The program is not being run.
(gdb) detach
The program is not being run.
(gdb) b errfinish
No symbol table is loaded.  Use the "file" command.
Make breakpoint pending on future shared library load? (y or [n]) n
(gdb)


thanks



From: Pendekar Dikala Senja <pendekar.senja@outlook.com>
Sent: Wednesday, January 15, 2020 2:08 AM
To: Mahendra Singh Thalor <mahi6run@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>; pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postg= resql.org>
Subject: Re: BUG #16205: background worker "logical replication= worker" (PID 25218) was terminated by signal 11: Segmentation
 
Hi,
right now we're still trying to setup again, and will provide log later.


Kind Regards

your good friend

From= : Mahendra Singh Thalor <mahi6run@gmail.com>
Sent: Wednesday, January 15, 2020 5:02:57 PM
To: Pendekar Dikala Senja <pendekar.senja@outlook.com= >
Cc: Michael Paquier <michael@paquier.xyz>; pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postg= resql.org>
Subject: Re: BUG #16205: background worker "logical replication= worker" (PID 25218) was terminated by signal 11: Segmentation
 
On Wed, 15 Jan 2020 at 09:32, Pendekar Dikala Senja <pendekar.senja@outlook.com> wrote:
>
>
> Here are the logs and our configuration.
> Actually we are facing problem when replicating partition table from 1= 1.6 to 12.1, but if there is no partition table the replication works so we= ll.
> As FYI, our server spec is 16 core and 64GB. And we are using this ubu= ntu
>
> LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-n= oarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarc= h
> Distributor ID: Ubuntu
> Description: Ubuntu 16.04.6 LTS
> Release: 16.04
> Codename: xenial
>
> Can you help us to find out the solution and configuration?
> Thanks for your help
>
> ________________________________ From: Michael Paquier
> Sent: Tuesday, January 14, 2020 6:58 PM
> To: pendekar.senja@outlook.com; pgsql-bugs@lists.postgresql.org
> Subject: Re: BUG #16205: background worker "logical replication w= orker" (PID 25218) was terminated by signal 11: Segmentation
>
> On Wed, Jan 15, 2020 at 02:00:48AM +0000, PG Bug reporting form wr= ote:
> > I got error when replicate with native logical method from Postgr= eSQL 11.6
> > to PostgreSQL 12.1, I will connecting table partition to table pa= rtition
> > from Version 11.6 to Version 12.1, but after all tables already r= eplicated
> > around more than 2 hours, server can't access and recovery mode. = please help
> > to advice, below log.
>
> Could you provide a backtrace?  Looking at the recent commit hist= ory,
> we had one fix which could be relevant to you after 12.1 was released:=
> https://www.postgresql.org/message-id//16129-a0c0f48e71741e5f@postgresql.or= g
>
> And here is the commit:
> https://git.postgresql.org/gitweb/?p=3Dpostgresql.git;a=3Dcommit;h=3Da2aa22= 4e
>
> The problem may be different though, so a backtrace would be good to > check anyway.
> --
> Michael

Hi,
It looks like that server is crashed due to segmentation fault.
Can you provide call stack(stack trace) of Pid 25218.
To get call stack, you should start server with "-c" option.
Ex: ./pg_ctl -D data -l logfile -c start

How to get stack trace:
After crash, you can see core.PID file in your data directory. Attach core = file to gdb and fire "bt" command.
Ex: gdb postgres data/core.25218
bt

--

--_000_PS2PR02MB352702EFAA2FE007096FA47683360PS2PR02MB3527apcp_--