Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m6VO2-0008Kc-1s for pgsql-general@arkaria.postgresql.org; Thu, 22 Jul 2021 09:53:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m6VO1-0003Fh-20 for pgsql-general@arkaria.postgresql.org; Thu, 22 Jul 2021 09:53:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m6VO0-0003E9-NU for pgsql-general@lists.postgresql.org; Thu, 22 Jul 2021 09:53:00 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m6VNx-0008WF-UD for pgsql-general@lists.postgresql.org; Thu, 22 Jul 2021 09:52:59 +0000 Received: by mail-wm1-x32f.google.com with SMTP id 14-20020a05600c028eb0290228f19cb433so1213592wmk.0 for ; Thu, 22 Jul 2021 02:52:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:references:to:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=kodsc43GpU8+CF4eKAuVv9zPNj6joXd5pOx385sa7Jk=; b=WdV3/Ru/Z2nApPwifnCC1jpDefyMLTqe1jnkGZI/JXOF+Ol8E4f/rw/ACRMn4fduOE 3FmGOVd6p49eMdfzZirATNFzQB37xr2gLuAzJZfS2FCSg/IcmNE92Kzmdvx3fvAY8rcn Ph66VDqfj36LElu6co4b2DUDjwZn+dgeEEMYeC7HQCwdM/mRlWdR/c/hGnN4Q6Q3Fd4n MH2NB0Jk4IX7YixPx56nzEL6WM2tIuAW1zxZjneoZvapyE5LWBajEIrzidzyfJLM//En YIB/j6aI/GCtO92WDhrzpje54BX3KT9Az+GhZ1u1I+zwa6vtkgykzD64NXvZ8Y6uAXXT +hNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:references:to:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=kodsc43GpU8+CF4eKAuVv9zPNj6joXd5pOx385sa7Jk=; b=qSyPqVxTC4GWKiaKZxka7/OKZJ+vFq7/9w4GXZ/rIaUugg9Kcjpf+HAlTENuKSRnMj +enjU8rANuEAKYzSj2TKKFWFhAQMQYVd3Qp5/uhcFwk+z9jqqcw3KnEK+rVqDTBPddxH WtYUe83JUflKZV7r1A50bqDwPCyVbV0TTHxOJfnjeQWM17rb+UGl8VBV3s+v/IonMelf u/jXvjyROI0WgRIeikVPSG9MHosHyp5RIwsLEKWCxYlzG4ZknUzoGI9ocK5FbNQ9UoKS yzY3EV2GUd3l0jcvEGonTGm9fpqdbGhDEl9uwUK0W+76M/cZSU3sBX/DlqJRiJNZdqO3 LPnA== X-Gm-Message-State: AOAM531Lrx0cUVoCB4pJKpvL7SUtgIw+ajAEDoqXphoQ/IZstsz3eO8c LIs1b93Xj+kgJ+8MhT5jQ6nV5m3vmO8= X-Google-Smtp-Source: ABdhPJwyuJ6rrfgiBxZyyAtZxpA2EQxV23MUeikw8SnqJuGbRwJdOMMZMl7+AwVzlGiGozxUK4O76g== X-Received: by 2002:a7b:cb53:: with SMTP id v19mr40380709wmj.127.1626947576469; Thu, 22 Jul 2021 02:52:56 -0700 (PDT) Received: from ?IPv6:2001:171b:226d:9090:69d6:73d3:bbd0:ccf8? ([2001:171b:226d:9090:1c9e:dac7:b1b7:a9fb]) by smtp.gmail.com with ESMTPSA id y66sm24768414wmy.39.2021.07.22.02.52.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Jul 2021 02:52:56 -0700 (PDT) Subject: Fwd: Postgres.exe crashes and tears down all apps, recovers and is running again References: <2db3bba8-5ace-3799-e55a-c90836a14e6b@gmail.com> To: pgsql-general@lists.postgresql.org Cc: beat.hoedl@gmail.com From: Beat Hoedl X-Forwarded-Message-Id: <2db3bba8-5ace-3799-e55a-c90836a14e6b@gmail.com> Message-ID: <8db8ae8f-52b5-a716-1800-9a84bca6354e@gmail.com> Date: Thu, 22 Jul 2021 11:52:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <2db3bba8-5ace-3799-e55a-c90836a14e6b@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: de-CH-frami List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Have a bunch of processes connected to Postgres (10.0) on windows server 2016. The software was running without problems for at least a year. Each process is doing different actions. Every about 5-10 days a postgres.exe running for one of the application processes crashes, tears down everything. Database recorves and then it works again as normal. The wierd thing is it's not always the same application process which starts the whole sequence. One success situation is as follows 2021-07-12 07:33:52.701 CEST [5744] LOG:  duration: 0.020 ms statement: COMMIT 2021-07-12 07:33:52.707 CEST [5744] LOG:  duration: 0.023 ms statement: DISCARD ALL 2021-07-12 07:33:52.707 CEST [5744] LOG:  duration: 0.005 ms statement: BEGIN 2021-07-12 07:33:52.707 CEST [5744] LOG:  duration: 0.011 ms statement: SET TRANSACTION ISOLATION LEVEL READ COMMITTED ..... The same potgres.exe crashes afterwards 2021-07-12 07:33:55.321 CEST [5744] LOG:  duration: 0.032 ms statement: COMMIT 2021-07-12 07:34:32.660 CEST [3972] LOG:  server process (PID 5744) was terminated by exception 0xFFFFFFFF The COMMIT was the last successfull action in the database.  I verified the existence of the data in the database. The new job at 07:34 caused the crash immediately. Since I dont see DISCARD ALL/BEGIN/SET TRANSACTION my interpretation is  this: The possible (if any) corrupted shared memory is caused by an other postgres.exe process. Therfore checked all actions before these crashes. But also her it's always a different one. BTW: There is no virus scanner on the postgres folder and it's a productive system, I cant just update. So the problem leaves me puzzled. Would be great if somebody has some ideas how to continue investigation. Thanks Beat