Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZKEd-0006Wm-RK for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Feb 2017 16:27:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cZKEd-0003Dv-9U for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Feb 2017 16:27:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cZKEc-0003Dp-Qc for pgsql-hackers@postgresql.org; Thu, 02 Feb 2017 16:27:46 +0000 Received: from mail.postgrespro.ru ([93.174.131.138]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZKEZ-0008EW-CC for pgsql-hackers@postgresql.org; Thu, 02 Feb 2017 16:27:46 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id CB3C621C2AA3; Thu, 2 Feb 2017 19:27:42 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru Subject: Re: Deadlock in XLogInsert at AIX DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1486052862; bh=+xlqPFm3Es3LemRruJ16bcN6RLDodPRxXRv3Zi9+pgs=; h=To:References:Cc:From:Date:In-Reply-To; b=ZalGDYCXHI7mFj8R88wfOowMj3uOZOHGRHnqotVg4OB6nVEF8nwJVLm7KWop6Dk7B DwWhpq7Hl9IjZLJkyBu/XvlX8yNbPfkJQcadMa6xkl1+l+oX0nwctbc62ulB7WDLeZ SCMiJG7LGQtTXGmCCRSmONMEgZTpUbP823EmtP1c= To: "REIX, Tony" , PostgreSQL Hackers References: <0184657d-cf64-10f6-9706-7329f23f5f89@iki.fi> <85a1966c-aeee-fb38-77bd-6cad9a90b35f@postgrespro.ru> <2c4037f1-b35d-4d71-0d32-40a97523b31c@postgrespro.ru> <5de6b64a-f842-9166-e41a-ed7b87a2729b@iki.fi> <7609057e-b021-56d8-afb6-27acc1dfdeea@postgrespro.ru> <2fc764c7-2222-83e3-45c2-33c17853e13f@atos.net> <3f5948ed-b2a9-0920-98ac-47b347ad03a3@postgrespro.ru> <7ae6bad4-007a-ef56-ea0e-263c0ca48eae@atos.net> <74cec376-4191-a1da-d82c-08c7f92fc724@postgrespro.ru> <0de95f3d-f280-b6b9-c821-870ab2cccca6@atos.net> <58924463.8020505@postgrespro.ru> Cc: Heikki Linnakangas , Bernd Helmle From: Konstantin Knizhnik Message-ID: <7f66841e-5c8d-fb77-0492-94e3a0bfb47d@postgrespro.ru> Date: Thu, 2 Feb 2017 19:27:53 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------599909D94787452D57172284" X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org This is a multi-part message in MIME format. --------------599909D94787452D57172284 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi Tony, On 02.02.2017 17:10, REIX, Tony wrote: > > Hi Konstantin > > I've discussed the "zombie/exit" issue with our expert here. > > - He does not think that AIX has anything special here > > - If the process is marked in ps, this is because the flag > SEXIT is set, thus the process is blocked somewhere in the kexitx() > syscall, waiting for something. > > - In order to know what it is waiting for, the best would be to have a > look with *kdb*. > kdb shows the following stack: pvthread+073000 STACK: [005E1958]slock+000578 (00000000005E1958, 8000000000001032 [??]) [00009558].simple_lock+000058 () [00651DBC]vm_relalias+00019C (??, ??, ??, ??, ??) [006544AC]vm_map_entry_delete+00074C (??, ??, ??) [00659C30]vm_map_delete+000150 (??, ??, ??, ??) [00659D88]vm_map_deallocate+000048 (??, ??) [0011C588]kexitx+001408 (??) [000BB08C]kexit+00008C () ___ Recovery (FFFFFFFFFFF9290) ___ WARNING: Eyecatcher/version mismatch in RWA -- Konstantin Knizhnik Postgres Professional: http://www.postgrespro.com The Russian Postgres Company --------------599909D94787452D57172284 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Hi Tony,

On 02.02.2017 17:10, REIX, Tony wrote:

Hi Konstantin

I've discussed the "zombie/exit" issue with our expert here.

- He does not think that AIX has anything special here

- If the process is marked <exiting> in ps, this is because the flag SEXIT is set, thus the process is blocked somewhere in the kexitx() syscall, waiting for something.

- In order to know what it is waiting for, the best would be to have a look with kdb.


kdb shows the following stack:

pvthread+073000 STACK:
[005E1958]slock+000578 (00000000005E1958, 8000000000001032 [??])
[00009558].simple_lock+000058 ()
[00651DBC]vm_relalias+00019C (??, ??, ??, ??, ??)
[006544AC]vm_map_entry_delete+00074C (??, ??, ??)
[00659C30]vm_map_delete+000150 (??, ??, ??, ??)
[00659D88]vm_map_deallocate+000048 (??, ??)
[0011C588]kexitx+001408 (??)
[000BB08C]kexit+00008C ()
___ Recovery (FFFFFFFFFFF9290) ___
WARNING: Eyecatcher/version mismatch in RWA


-- 
Konstantin Knizhnik
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company 
--------------599909D94787452D57172284--