Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwcmv-0000mD-8T for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Apr 2017 22:55:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cwcmu-0005Ln-Rw for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Apr 2017 22:55:28 +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 1cwcmu-0005Lb-0r for pgsql-hackers@postgresql.org; Fri, 07 Apr 2017 22:55:28 +0000 Received: from mail-qk0-x235.google.com ([2607:f8b0:400d:c09::235]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cwcmq-00049E-Sa for pgsql-hackers@postgresql.org; Fri, 07 Apr 2017 22:55:26 +0000 Received: by mail-qk0-x235.google.com with SMTP id p68so49317991qke.1 for ; Fri, 07 Apr 2017 15:55:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=r3t+84AaQC9780CHGo2C+413C+HWCVgbpmLdXFpy5Vw=; b=pQOhVoHVNAC2zPmmDDF4zo2MpjBhZIQHcR6bffLXAb1brTaKAtnsdPr9LKtO5IZFuG HJdnu+VCpuzw2dUiFtdPcPNTugNjjeLqLTTU4phJgYVSylWNjUW5c2/TZQd7h67/Us1d h5oogddFZBYckBSZ52I9hXAfHBYFHNaROIIuAtc1paRsA07aWbnEe5huZE2F3Y8scZ/g joDwJWchKxArw1uSNi8vIlYryKBasjDmJ7tYoLwJl41A0FR0xoMUZioBJpi+O1ndyqzz sq+JFD2V1G60AuYH+AqOioipCkv9UPj9IdSwwfu3CLLOEDCInVHi4YpivgqZLiL5CJX2 XUBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=r3t+84AaQC9780CHGo2C+413C+HWCVgbpmLdXFpy5Vw=; b=SUXFXjtMYyWAKNfH+zh/PFyys0kdZfAlqodpZ6vsF9i6noatKJF3ulUHhUrdXHgbxB Y4Pc5xxb3Jtt/eSHQn75kCKcqiBvNt/L3+H+zbc4/4efRF6fKzCAn973jikSgLZS2wQp 8VgEM1LdngM0KW9h7sjMkiRNf1DrlZbnmgJ7O7+aXP/2SNbJNfInRyjTE/ShT6+zwkOP MFo9QpigpaBHK6J4lov5oCvxK5DDA1i0GDQ+5hwjAVGyIHWZb0KuBLPMq5WNa974yzld pgOH6maYSyjNtnyDhJLkz8kYWJJNNfLhJJliHjGYZcrjYeZmVaaWYxIOnSOKUllrXV5A G2Rw== X-Gm-Message-State: AFeK/H0q5oAeJj/ruE24lQkcyiyfpi1ZurP+n4RjZ7YQPAuw0f1kXZYJ2RhC/8284Sxbrg1l X-Received: by 10.55.207.208 with SMTP id v77mr36859521qkl.189.1491605723734; Fri, 07 Apr 2017 15:55:23 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([179.57.115.10]) by smtp.gmail.com with ESMTPSA id v4sm3966938qtg.0.2017.04.07.15.55.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Apr 2017 15:55:23 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id BC378377; Fri, 7 Apr 2017 19:55:21 -0300 (-03) Date: Fri, 7 Apr 2017 19:55:21 -0300 From: Alvaro Herrera To: Andres Freund Cc: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Improve 64bit atomics support. Message-ID: <20170407225521.dyfyj4hqdqbz4klz@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170206-195-7adf12 (1.7.2) 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 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 #5 test_atomic_uint64 () at regress.c:1007 #6 0x00e1905d in test_atomic_ops (fcinfo=0x9362584) at regress.c:1097 #7 0x08273ab2 in ExecInterpExpr (state=0x9362510, econtext=0x93622e0, isnull=0xbfbc1a4b "") at execExprInterp.c:650 #8 0x082990a7 in ExecEvalExprSwitchContext (node=0x9362294) at ../../../src/include/executor/executor.h:289 #9 ExecProject (node=0x9362294) at ../../../src/include/executor/executor.h:323 #10 ExecResult (node=0x9362294) at nodeResult.c:132 #11 0x0827c6d5 in ExecProcNode (node=0x9362294) at execProcnode.c:416 #12 0x0827a08d in ExecutePlan (queryDesc=0x92daf38, direction=ForwardScanDirection, count=0, execute_once=1 '\001') at execMain.c:1651 #13 standard_ExecutorRun (queryDesc=0x92daf38, direction=ForwardScanDirection, count=0, execute_once=1 '\001') at execMain.c:360 #14 0x083cd8bb in PortalRunSelect (portal=0x92d78a8, forward=, count=0, dest=0x9337728) at pquery.c:933 #15 0x083cef1e in PortalRun (portal=0x92d78a8, count=2147483647, isTopLevel=1 '\001', run_once=1 '\001', dest=0x9337728, altdest=0x9337728, completionTag=0xbfbc1c6a "") at pquery.c:774 #16 0x083cb38f in exec_simple_query ( query_string=0x93360b0 "SELECT test_atomic_ops();") at postgres.c:1105 #17 0x083cc640 in PostgresMain (argc=1, argv=0x92e4160, dbname=0x92e3fe0 "regression", username=0x92e3fc4 "postgres") at postgres.c:4075 #18 0x08349eaf in BackendStartup () at postmaster.c:4317 #19 ServerLoop () at postmaster.c:1729 #20 0x0834db50 in PostmasterMain (argc=8, argv=0x92b9968) at postmaster.c:1337 #21 0x082c01e2 in main (argc=8, argv=Cannot access memory at address 0x5aa5 ) at main.c:228 -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers