Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g366e-0008Pz-5X for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Sep 2018 21:03:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g366c-0007Lb-Kb for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Sep 2018 21:03:22 +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.89) (envelope-from ) id 1g366c-0007KN-9M for pgsql-hackers@lists.postgresql.org; Thu, 20 Sep 2018 21:03:22 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g366Y-0002gy-9A for pgsql-hackers@postgresql.org; Thu, 20 Sep 2018 21:03:20 +0000 Received: from msg.df7cb.de (unknown [IPv6:2a02:908:1470:e5c0:76e5:bff:fef3:7e00]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 42GThz5KjLz3Dww; Thu, 20 Sep 2018 23:03:15 +0200 (CEST) Date: Thu, 20 Sep 2018 23:03:15 +0200 From: Christoph Berg To: Andres Freund Cc: PostgreSQL Hackers Subject: Re: [patch] Support LLVM 7 Message-ID: <20180920210315.GB21756@msg.df7cb.de> Mail-Followup-To: Christoph Berg , Andres Freund , PostgreSQL Hackers References: <20180912124517.GD24584@msg.df7cb.de> <20180912210338.h3vsss5lkuu26ua2@alap3.anarazel.de> <20180912210734.GB5666@msg.df7cb.de> <20180916074833.GB4707@msg.df7cb.de> <20180919222600.myk5nec6unhrj45k@alap3.anarazel.de> <20180920081044.GA16897@msg.df7cb.de> <20180920173238.f5idtzdlpkjsufv5@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180920173238.f5idtzdlpkjsufv5@alap3.anarazel.de> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Re: Andres Freund 2018-09-20 <20180920173238.f5idtzdlpkjsufv5@alap3.anarazel.de> > That's pretty clearly an LLVM bug. Could you enable jit_dump_bitcode and > send the bitcode files (I assume there should be something like > ..bc and the same with .optimized.bc) from the > data directory? > > Not that I think x32 is a particularly popular database platform, but > LLVM clearly needs to be fixed independent of PG... $ PGOPTIONS="-c jit_debugging_support=on" psql psql (11beta4 (Debian 11~beta4-2)) postgres=# set jit=on; postgres=# set jit_dump_bitcode = on; postgres=# \i /home/cbe/postgresql/debian/11/src/test/regress/sql/boolean.sql FATAL: fatal llvm error: Cannot select: 0x580bfdf0: ch,glue = X86ISD::CALL 0x580bfd60, 0x580bfec8, Register:i32 $edi, RegisterMask:Untyped, 0x580bfd60:1 0x580bfec8: i32 = X86ISD::Wrapper TargetGlobalAddress:i32 0 0x580bfe80: i32 = TargetGlobalAddress 0 0x580bfd18: i32 = Register $edi 0x580bfda8: Untyped = RegisterMask 0x580bfd60: ch,glue = CopyToReg 0x580bfcd0, Register:i32 $edi, 0x580bfc40 0x580bfd18: i32 = Register $edi 0x580bfc40: i32,ch = CopyFromReg 0x5807eeec, Register:i32 %27 0x580bfbf8: i32 = Register %27 In function: evalexpr_0_0 Server beendete die Verbindung unerwartet gdb reports "exited with code 01" at that point. Christoph