Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEWyh-0000IG-Lj for pgsql-committers@arkaria.postgresql.org; Wed, 07 Dec 2016 07:49:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cEWyh-0004dE-8X for pgsql-committers@arkaria.postgresql.org; Wed, 07 Dec 2016 07:49:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cEWyT-0004OZ-Mb for pgsql-committers@postgresql.org; Wed, 07 Dec 2016 07:49:09 +0000 Received: from mail-wj0-x243.google.com ([2a00:1450:400c:c01::243]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cEWyR-0000ia-3g for pgsql-committers@postgresql.org; Wed, 07 Dec 2016 07:49:08 +0000 Received: by mail-wj0-x243.google.com with SMTP id j10so20871203wjb.3 for ; Tue, 06 Dec 2016 23:49:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=/eMX/b0umtWfgcT+nurlJxIONQZr9vBjB7dvvwIHRrA=; b=Be7WjwMGJa0LCwZuuPmKNIle9svPTkip8vj6MeQj7vy/AaJPH2SQjbOsMM0GI1M/C6 G8vTsnF/v6VFEu9if1hkISKkRP0lw8O4sEByAWb3J1tVe/W8UkYUOYjnGaJdsMM69hsh F1OnLCWyS4dBQUfbkj3AhhLVIEZrAPqC6PWYNficqof7O02NeFGCGYelpK3Ecpz6uWqc 60xR8TQ0Z7DYf6+7I0/8dG7ap0RyJeuFZ+xd6LxmXWLRHBFUhMIvfx22oVKhrMYwCkKP Jxbvv1X9QRNlAvg1+/3kSD/Mtwj3wxQucVMRHu0pjNff6+h/Ihs/PTE6z0UUTzXwC9KM P4sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=/eMX/b0umtWfgcT+nurlJxIONQZr9vBjB7dvvwIHRrA=; b=iEUeJmP/I0k+m4KoIliDn0a0oIfejjGk7R2XOb9x3m1cuIcWsrFXZZMYNYgPJF8URi GBM6YXzDHB/tgE3qHgBqZQhL3BpSIQeTJkMrH7WGmBoguNZf4kWw7hS2Q2JoU0AVb5Yr GE6ylR/LD6R4dftEeh9hPElxtfSLw8PF0JmxsvafEAAS/DSwddqaDetDVbzoeRN80X53 ANZYWYfnmdpPbteYqdtgLF9GMCxd65KSRxplo9GZsD860rlay7eqazOtWqIU485OKMPO a3ZCyYUBohOQ6LyKuhv+jUC0YV83WgZiy5X2X6a5YAqPJsj1nak6l/7ZHDlYSEBOVmmS b5wg== X-Gm-Message-State: AKaTC03wUWsC1Sx9zy/kz+kwD/Jj497cK3eMd/i/9Sc02W3cdz/ac/b8lY+cw9Znt4qCjg== X-Received: by 10.25.19.70 with SMTP id j67mr7346022lfi.77.1481096945127; Tue, 06 Dec 2016 23:49:05 -0800 (PST) Received: from [192.168.1.111] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by smtp.gmail.com with ESMTPSA id v9sm4515634lja.0.2016.12.06.23.49.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Dec 2016 23:49:04 -0800 (PST) Subject: Re: pgsql: Replace PostmasterRandom() with a stronger source, second attemp To: Michael Paquier , Andres Freund References: <20161206224607.64x6vn2kgb76y4ng@alap3.anarazel.de> Cc: pgsql-committers@postgresql.org From: Heikki Linnakangas Message-ID: Date: Wed, 7 Dec 2016 09:49:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 12/07/2016 02:30 AM, Michael Paquier wrote: > With the logs complaining as well: > [1-1] db=[unknown],user=[unknown],app=[unknown],client=[local] LOG: > wrong key in cancel request for process 57361 > > As far as I can see processCancelRequest uses a long variable, and it > gets compared with an int32. MyCancelKey has been changed to an int32 > in globals.c with the above commit. So on 64b machines the current > code is aimed to fail. Attached is a patch to fix the issue. Pushed, thanks! - Heikki -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers