From owner-freebsd-current@freebsd.org Mon Mar 29 19:13:07 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 614F25A8348 for ; Mon, 29 Mar 2021 19:13:07 +0000 (UTC) (envelope-from henric@henric.org) Received: from mail.henric.info (mail.henric.info [199.48.129.194]) (using TLSv1.3 with cipher TLS_CHACHA20_POLY1305_SHA256 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F8Mfp4fVJz4Xr4 for ; Mon, 29 Mar 2021 19:13:03 +0000 (UTC) (envelope-from henric@henric.org) Received: by mail.henric.info (Postfix, from userid 1001) id BB969233816; Mon, 29 Mar 2021 12:12:55 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=henric.org; s=20180330; t=1617045175; bh=FGcEjOXGrf1fDwsHmOQLbzIzUEpPW6/hOez9MqKK+zY=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; b=Nlm8TqhZ8On4j4hmCZ0wLXvKXLuQPaZW1cATnIwCGsQx6AzLX2CwYrieGXoGHOU3m 3QszZxIntqCxdWg64as2i+CzBFQKDhjK3fFOTFz6xmHTxFmXPFi70tBXFYlwkuCxxB exhGAKwlk41xJ1fGY+9LKL9Vm/7cc5/hap/EpeR2Mw1ET7y2Rf90r/v1dfHuooWKN2 uMg+fqFGDi7+OKJ8BV/sqUm0ZLz4iIcS/OmrlCj3JhjWs42JkNAUCp71ed1JOnRIC0 qe7e0b+5dK9CmjodtQAc+mMaYqZ06U8Oh1jK8oJuhu2v2zzQO/uoEUb0COoLic4XlE zp2YztREyzkzw== Date: Mon, 29 Mar 2021 12:12:55 -0700 From: Henric Jungheim To: FreeBSD-current@freebsd.org Subject: 13.0-RC3 bison causes tputs SIGSEGV Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 4F8Mfp4fVJz4Xr4 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=henric.org header.s=20180330 header.b=Nlm8TqhZ; dmarc=pass (policy=none) header.from=henric.org; spf=pass (mx1.freebsd.org: domain of henric@henric.org designates 199.48.129.194 as permitted sender) smtp.mailfrom=henric@henric.org X-Spamd-Result: default: False [-3.70 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[henric.org:s=20180330]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+a:wtcm.x.rootbsd.net]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[199.48.129.194:from:127.0.2.255]; DKIM_TRACE(0.00)[henric.org:+]; DMARC_POLICY_ALLOW(-0.50)[henric.org,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[software@henric.org,henric@henric.org]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[199.48.129.194:from]; ASN(0.00)[asn:36236, ipnet:199.48.128.0/22, country:US]; FROM_NEQ_ENVFROM(0.00)[software@henric.org,henric@henric.org]; MAILMAN_DEST(0.00)[FreeBSD-current]; RCVD_COUNT_TWO(0.00)[2] X-Mailman-Approved-At: Mon, 29 Mar 2021 19:19:20 +0000 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Mar 2021 19:13:07 -0000 I ran into a bit of an odd problem when building the sysutils/grub2-bhyve port on 13.0-RC3 (on x64). The bison command dumps core when the output is going to a console. Redirecting the build output to a file avoids the problem. I'm not sure if this is an ncurses issue, a port issue (and which port?), my box, or something else (clang?). This is what the tail end of the port build looks like: ... grub-mkfont: No (explicitly disabled) grub-mount: No (explicitly disabled) starfield theme: No (No grub-mkfont) With libzfs support: Yes ******************************************************* ===> Building for grub2-bhyve-0.40_8 gmake[1]: Entering directory '/usr/ports/sysutils/grub2-bhyve/work/grub2-bhyve-0.40' bison -d -p grub_script_yy -b grub_script ./grub-core/script/parser.y ./grub-core/script/parser.y:94.1-12: warning: deprecated directive: '%pure-parser', use '%define api.pure' [ And here's what lldb has to say: sysutils/grub2-bhyve/work/grub2-bhyve-0.40>lldb -- /usr/local/bin/bison -d -p grub_script_yy -b grub_script ./grub-core/script/parser.y (lldb) target create "/usr/local/bin/bison" Current executable set to '/usr/local/bin/bison' (x86_64). (lldb) settings set -- target.run-args "-d" "-p" "grub_script_yy" "-b" "grub_script" "./grub-core/script/parser.y" (lldb) run Process 50108 launching Process 50108 launched: '/usr/local/bin/bison' (x86_64) ./grub-core/script/parser.y:94.1-12: warning: deprecated directive: %pure-parser, use %define api.pure [signal SIGSEGV: invalid address (fault address: 0x0) frame #0: 0x0000000000000000 error: Bad address (lldb) bt * thread #1, name = 'bison', stop reason = signal SIGSEGV: invalid address (fault address: 0x0) * frame #0: 0x0000000000000000 frame #1: 0x0000000800c1930a libncursesw.so.9`delay_output_sp + 234 frame #2: 0x0000000800c19b81 libncursesw.so.9`tputs_sp + 1377 frame #3: 0x0000000800c19cfb libncursesw.so.9`tputs + 123 frame #4: 0x0000000800702dbc libtextstyle.so.0`___lldb_unnamed_symbol149$$libtextstyle.so.0 + 92 frame #5: 0x00000008007037ff libtextstyle.so.0`___lldb_unnamed_symbol152$$libtextstyle.so.0 + 943 frame #6: 0x00000008007030cf libtextstyle.so.0`___lldb_unnamed_symbol151$$libtextstyle.so.0 + 543 frame #7: 0x0000000800700d00 libtextstyle.so.0`___lldb_unnamed_symbol125$$libtextstyle.so.0 + 32 frame #8: 0x0000000000407295 bison`___lldb_unnamed_symbol160$$bison + 1669 frame #9: 0x0000000000407d75 bison`___lldb_unnamed_symbol177$$bison + 149 frame #10: 0x000000000040805d bison`___lldb_unnamed_symbol181$$bison + 109 frame #11: 0x000000000042803f bison`___lldb_unnamed_symbol403$$bison + 7679 frame #12: 0x000000000042e9c8 bison`___lldb_unnamed_symbol459$$bison + 56 frame #13: 0x0000000000403743 bison`___lldb_unnamed_symbol130$$bison + 291 frame #14: 0x0000000000403be0 bison`___lldb_unnamed_symbol130$$bison + 1472 (lldb)