Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dO3JX-0006lZ-J5 for pgsql-bugs@arkaria.postgresql.org; Thu, 22 Jun 2017 14:42:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dO3JX-0004Co-03 for pgsql-bugs@arkaria.postgresql.org; Thu, 22 Jun 2017 14:42:31 +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 1dO2UN-0006m3-Ix for pgsql-bugs@postgresql.org; Thu, 22 Jun 2017 13:49:39 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dO2UK-0003jY-FM for pgsql-bugs@postgresql.org; Thu, 22 Jun 2017 13:49:38 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 6819420A32; Thu, 22 Jun 2017 09:49:35 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Thu, 22 Jun 2017 09:49:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=turelinckx.be; h=cc:content-transfer-encoding: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=mesmtp; bh=sGj 4jmBcjpyKPg7PZW13fBeHcBWF2FLqcqEkzpLB8+w=; b=asGyBKsHflBG//iqD7+ 4jH2Z39Z4UxNh+G7VO8qUHdVlXuC55dVAxbjIuaVqA7PXBTEYwK15qQ37xQkPzHr oDsgNjZWh8I5Z8tpGIZ/Oh+48vx4n9P88G084tDHxac42DUh2ChmYQOP+EClNfZo yUyI9VG6YOtH6NSNH0irmXmg= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=sGj4jmBcjpyKPg7PZW13fBeHcBWF2FLqcqEkzpLB8+w=; b=d5CNwy9g 8G2THRYIE4H2tiQLl+bfub1FvOpmBmJvaZz937QlrGrTdk4M19kmT3v9lAzv2xGX cQHuCm7dudKrDav4VbysrZdgx3TpAeMqDZiGMaL5LTy397uWmOf03t6ClpCrh+56 sNJ5vvqIMXUntlDfBmyA8J4CTvLGgKvwTul2fRiZ0qXgZ4Ty9VcEpBXybCeipla8 Z7CC/3XWqAu0gcgN7S+llpQDWQr7He+Djhf/znq+yoJcr5Jl/UF/eCQ0kxZK4Pv2 nDyTRKGHerZoE8d0FsdJJQwb9/L31mPRw4apVoyglooULB57cNUP/dJ6nyCHkLAA XgwuSy8rGztPjw== X-ME-Sender: X-Sasl-enc: B78vEfS0h07nAkTTVG6NJAt8NHalQPSDjnRakesK3diS 1498139374 Received: from tureltolaptop (213.219.188.53.adsl.dyn.edpnet.net [213.219.188.53]) by mail.messagingengine.com (Postfix) with ESMTPA id B71857E760; Thu, 22 Jun 2017 09:49:34 -0400 (EDT) From: "Tom Turelinckx" To: "'Alvaro Herrera'" Cc: References: <006b01d2eaa2$d4317be0$7c9473a0$@turelinckx.be> <20170621154447.eazyyleirccpofju@alvherre.pgsql> In-Reply-To: <20170621154447.eazyyleirccpofju@alvherre.pgsql> Subject: Re: Bus error in formatting.c NUM_numpart_to_char (9.4.12, 9.6.3, sparc) Date: Thu, 22 Jun 2017 15:49:27 +0200 Message-ID: <000001d2eb5e$5e3f36e0$1abda4a0$@turelinckx.be> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQMLrREv+cfPavGH9aYazmeCJILWmZ+/Vbvg Content-Language: en-us List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Alvaro Herrera wrote: > You're probably misreading the git log, because this code was touched > just before 9.4.9. See commit > https://git.postgresql.org/pg/commitdiff/20f870fd7cab8446c208a4a9cfa5ec2a= 441ef69c Thanks for the pointer! When I reverse patch that commit against 9.4.12 it = builds successfully and passes all tests. Against the original 9.4.12, only the numeric and sanity check tests fail. = Depending on the run, various other tests appear to fail, but those failure= s are caused by the numeric test crashing the backend and the tests being r= un in parallel: WARNING: terminating connection because of crash of another server process DETAIL: The postmaster has commanded this server process to roll back the = current transaction and exit, because another server process exited abnorma= lly and possibly corrupted shared memory. I've verified that 10~beta1 also fails the numeric test: Reading symbols from /home/turelto/src/original/postgresql-10-10~beta1/buil= d/src/backend/postgres...done. [New LWP 20199] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/sparc-linux-gnu/libthread_db.so.1". Core was generated by `postgres: turelto regression [local] SELECT = '. Program terminated with signal 10, Bus error. #0 NUM_numpart_to_char (id=3D3, Np=3D0xffd22aa4) at /home/turelto/src/original/postgresql-10-10~beta1/build/../src/backe= nd/utils/adt/formatting.c:4471 4471 if (Np->Num->lsign =3D=3D NUM_LSIGN_PRE) (gdb) l 4466 (Np->num_curr >=3D Np->out_pre_spaces || (IS_ZERO(N= p->Num) && Np->Num->zero_start =3D=3D Np->num_curr)) && 4467 (IS_PREDEC_SPACE(Np) =3D=3D FALSE || (Np->last_rele= vant && *Np->last_relevant =3D=3D '.'))) 4468 { 4469 if (IS_LSIGN(Np->Num)) 4470 { 4471 if (Np->Num->lsign =3D=3D NUM_LSIGN_PRE) 4472 { 4473 if (Np->sign =3D=3D '-') 4474 strcpy(Np->inout_p, Np->L_n= egative_sign); 4475 else When I reverse patch the above commit against 10~beta1 it also builds succe= ssfully and passes all tests. When I reverse patch the above commit against 9.6.3 it passes the numeric t= est, but (still) fails the object_address test: ******** build/src/test/regress/regression.diffs ******** *** /home/turelto/src/tmp/postgresql-9.6-9.6.3/build/../src/test/regress/ex= pected/object_address.out 2017-05-08 23:15:12.000000000 +0200 --- /home/turelto/src/tmp/postgresql-9.6-9.6.3/build/src/test/regress/resul= ts/object_address.out 2017-06-22 11:11:23.000000000 +0200 *************** *** 263,273 **** WARNING: error for policy,{eins,zwei,drei},{}: schema "eins" does not ex= ist WARNING: error for policy,{eins,zwei,drei},{integer}: schema "eins" does= not exist WARNING: error for user mapping,{eins},{}: argument list length must be = exactly 1 ! WARNING: error for user mapping,{eins},{integer}: user mapping for user = "eins" on server "integer" does not exist WARNING: error for user mapping,{addr_nsp,zwei},{}: argument list length= must be exactly 1 ! WARNING: error for user mapping,{addr_nsp,zwei},{integer}: user mapping = for user "addr_nsp" on server "integer" does not exist WARNING: error for user mapping,{eins,zwei,drei},{}: argument list lengt= h must be exactly 1 ! WARNING: error for user mapping,{eins,zwei,drei},{integer}: user mapping= for user "eins" on server "integer" does not exist WARNING: error for default acl,{eins},{}: argument list length must be e= xactly 1 WARNING: error for default acl,{eins},{integer}: unrecognized default AC= L object type i WARNING: error for default acl,{addr_nsp,zwei},{}: argument list length = must be exactly 1 --- 263,273 ---- WARNING: error for policy,{eins,zwei,drei},{}: schema "eins" does not ex= ist WARNING: error for policy,{eins,zwei,drei},{integer}: schema "eins" does= not exist WARNING: error for user mapping,{eins},{}: argument list length must be = exactly 1 ! WARNING: error for user mapping,{eins},{integer}: user mapping for user = "(null)" on server "integer" does not exist WARNING: error for user mapping,{addr_nsp,zwei},{}: argument list length= must be exactly 1 ! WARNING: error for user mapping,{addr_nsp,zwei},{integer}: user mapping = for user "(null)" on server "integer" does not exist WARNING: error for user mapping,{eins,zwei,drei},{}: argument list lengt= h must be exactly 1 ! WARNING: error for user mapping,{eins,zwei,drei},{integer}: user mapping= for user "(null)" on server "integer" does not exist WARNING: error for default acl,{eins},{}: argument list length must be e= xactly 1 WARNING: error for default acl,{eins},{integer}: unrecognized default AC= L object type i WARNING: error for default acl,{addr_nsp,zwei},{}: argument list length = must be exactly 1 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The failing user mapping-related tests were introduced in commit 890192e (= which is not in 9.4), and may have been resolved by commit 8b6d6cf (which i= s in 10~beta1). Best regards, Tom Turelinckx --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs