Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwe6u-0000rO-PW for pgsql-hackers@arkaria.postgresql.org; Sat, 08 Apr 2017 00:20:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cwe6u-0004Xm-Cm for pgsql-hackers@arkaria.postgresql.org; Sat, 08 Apr 2017 00:20:12 +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 1cwe5P-0001T1-Vt for pgsql-hackers@postgresql.org; Sat, 08 Apr 2017 00:18:40 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cwe5N-0005hC-Fh for pgsql-hackers@postgresql.org; Sat, 08 Apr 2017 00:18:38 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 9E4D720961; Fri, 7 Apr 2017 20:18:36 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Fri, 07 Apr 2017 20:18:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=MzFzo61Jm05PFx/B/q wx3lHRJYsM/QvTe/eRREepqtY=; b=SSUTw/ybWaiLEA0WB6u3xj4Wy3TInPjO2A QgaF8zqjf9CM3PzANvwJkwl0qYy3Ofr9VGmez7/hhj5kTekDxbbT8U3/UwIky2kQ N48vA8CyFcGw9d1NomTAG11h2Im/iL/9E1Ktw+W5v4jhMqgpNPN3P9QfoC5wpEAD W6eteEaLBfANJiy4V4rSn62ykBD0ATufKV5sDE4BhEL4kRRW/BoHV9MuM1G5nGRC NWTc4Q8mEQ8O0avzHzey0PNfGjC2CMXODPsiugSxwWlu7mp5se7v4vu9xIZsegAC 5XWutO+KR6GTwVKG3/4AqX48adkC+E5SwDrjELdOUnXBwjGE7RMw== X-ME-Sender: X-Sasl-enc: Dn6KgxM8AEPrXlb5vnCGyNzcg4LEkCNNNSg3YIJTFVip 1491610716 Received: from intern.anarazel.de (unknown [208.72.138.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 5818124519; Fri, 7 Apr 2017 20:18:36 -0400 (EDT) Date: Fri, 7 Apr 2017 17:18:35 -0700 From: Andres Freund To: Alvaro Herrera Cc: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Improve 64bit atomics support. Message-ID: <20170408001835.o5yg3t62zewcxhv6@alap3.anarazel.de> References: <20170407225521.dyfyj4hqdqbz4klz@alvherre.pgsql> <20170407233609.7kjj2g5uqrdssiw4@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170407233609.7kjj2g5uqrdssiw4@alap3.anarazel.de> X-Pg-Spam-Score: -2.6 (--) 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 On 2017-04-07 16:36:09 -0700, Andres Freund wrote: > On 2017-04-07 19:55:21 -0300, Alvaro Herrera wrote: > > Andres Freund wrote: > > > Improve 64bit atomics support. > > > > > > When adding atomics back in b64d92f1a, I added 64bit support as > > > optional; there wasn't yet a direct user in sight. That turned out to > > > be a bit short-sighted, it'd already have been useful a number of times. > > > > Seems like this killed an arapaima: > > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=arapaima&dt=2017-04-07%2022%3A06%3A59 > > > > Program terminated with signal 6, Aborted. > > #0 0x00c6a402 in __kernel_vsyscall () > > #0 0x00c6a402 in __kernel_vsyscall () > > #1 0x00284b10 in raise () from /lib/libc.so.6 > > #2 0x00286421 in abort () from /lib/libc.so.6 > > #3 0x084d967e in ExceptionalCondition ( > > conditionName=0xe19dac "(((uintptr_t) ((uintptr_t)(ptr)) + ((8) - 1)) & ~((uintptr_t) ((8) - 1))) != (uintptr_t)(ptr)", > > errorType=0xe19831 "UnalignedPointer", > > fileName=0xe19d88 "../../../src/include/port/atomics.h", lineNumber=428) > > at assert.c:54 > > #4 0x00e189b0 in pg_atomic_init_u64 () > > at ../../../src/include/port/atomics.h:428 > > Gah, that's fairly annoying :(. We can't trivially force alignment in > the generic fallback case, because not all compilers support that. We > don't really need it the fallback case, because things are protected by > a lock - but that means we'll have to make a bunch of locks conditional > :/ Pushed an attempt at fixing this along those lines, let's hope that works. - Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers