From owner-freebsd-current@freebsd.org Tue Mar 30 06:37:36 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 42E495BC65F for ; Tue, 30 Mar 2021 06:37:36 +0000 (UTC) (envelope-from SRS0=WLQe=I4=FreeBSD.org=otis@ns2.wilbury.net) Received: from ns2.wilbury.net (ns2.wilbury.net [IPv6:2a01:b200:0:1:f816:3eff:fecd:13e6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "svc.wilbury.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F8frZ64QPz3qWX for ; Tue, 30 Mar 2021 06:37:34 +0000 (UTC) (envelope-from SRS0=WLQe=I4=FreeBSD.org=otis@ns2.wilbury.net) Received: from chemex.owhome.lan (gw-upc.owhome.net [188.167.168.254]) (Authenticated sender: juraj@lutter.sk) by svc.wilbury.net (Postfix) with ESMTPSA id 8BC8C45CFD9; Tue, 30 Mar 2021 08:37:24 +0200 (CEST) From: Juraj Lutter Message-Id: <33EE2402-4447-4168-AB5B-D98009CD03AA@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_965B93DE-F4EF-4C45-B585-2DA404E68F6F"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: 13.0-RC3 bison causes tputs SIGSEGV Date: Tue, 30 Mar 2021 08:37:22 +0200 In-Reply-To: <20210329233138.GA4334@prl-debianold-64.jexium-island.net> Cc: Henric Jungheim , FreeBSD-current@freebsd.org To: dickey@his.com References: <20210329233138.GA4334@prl-debianold-64.jexium-island.net> X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Rspamd-Queue-Id: 4F8frZ64QPz3qWX X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of SRS0=WLQe=I4=FreeBSD.org=otis@ns2.wilbury.net has no SPF policy when checking 2a01:b200:0:1:f816:3eff:fecd:13e6) smtp.mailfrom=SRS0=WLQe=I4=FreeBSD.org=otis@ns2.wilbury.net X-Spamd-Result: default: False [-3.40 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ATTACHMENT(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; SIGNED_PGP(-2.00)[]; FORGED_SENDER(0.30)[otis@FreeBSD.org,SRS0=WLQe=I4=FreeBSD.org=otis@ns2.wilbury.net]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a01:b200:0:1:f816:3eff:fecd:13e6:from]; ASN(0.00)[asn:44185, ipnet:2a01:b200::/32, country:SK]; MID_RHS_MATCH_FROM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[otis@FreeBSD.org,SRS0=WLQe=I4=FreeBSD.org=otis@ns2.wilbury.net]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; RCPT_COUNT_THREE(0.00)[3]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[FreeBSD.org]; AUTH_NA(1.00)[]; SPAMHAUS_ZRD(0.00)[2a01:b200:0:1:f816:3eff:fecd:13e6:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_DKIM_NA(0.00)[]; R_SPF_NA(0.00)[no SPF record]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[FreeBSD-current] 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: Tue, 30 Mar 2021 06:37:36 -0000 --Apple-Mail=_965B93DE-F4EF-4C45-B585-2DA404E68F6F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, very similar behavior is observed in editors/poke, on recent 13.0-STABLE = (stable/13-85ad493677a2): (lldb) bt * thread #1, name =3D 'poke', stop reason =3D signal SIGSEGV: invalid = address (fault address: 0x0) * frame #0: 0x0000000000000000 frame #1: 0x00000008009ed30a = libncursesw.so.9`delay_output_sp(sp=3D0x0000000000000000, = ms=3D) at lib_tputs.c:104:6 frame #2: 0x00000008009edb81 libncursesw.so.9`tputs_sp [inlined] = delay_output(ms=3D) at lib_tputs.c:116:12 frame #3: 0x00000008009edb72 = libncursesw.so.9`tputs_sp(sp=3D, string=3D"", affcnt=3D1, = outc=3D) at lib_tputs.c:422 frame #4: 0x00000008009edcfb = libncursesw.so.9`tputs(string=3D"4f0fdc740005bebaf92e5a2e00000000", = affcnt=3D1, outc=3D(libtextstyle.so.0`out_char at = term-ostream.oo.c:1198)) at lib_tputs.c:444:12 frame #5: 0x0000000800424bb0 = libtextstyle.so.0`out_hyperlink_change(stream=3D0x0000000800e3d000, = new_hyperlink=3D0x00000008018bd600, async_safe=3Dfalse) at = term-ostream.oo.c:1586:7 frame #6: 0x000000080042579c = libtextstyle.so.0`out_attr_change(stream=3D0x0000000800e3d000, = new_attr=3Dattributes_t @ 0x00007fffffffe608) at = term-ostream.oo.c:1737:11 frame #7: 0x0000000800424f3b = libtextstyle.so.0`output_buffer(stream=3D0x0000000800e3d000, = goal_attr=3Dattributes_t @ 0x00007fffffffe690) at = term-ostream.oo.c:1906:11 frame #8: 0x00000008004223b2 = libtextstyle.so.0`term_ostream__write_mem(stream=3D0x0000000800e3d000, = data=3D0x0000000000207a94, len=3D123) at term-ostream.oo.c:2037:11 frame #9: 0x0000000800422ed5 = libtextstyle.so.0`term_ostream_write_mem(first_arg=3D0x0000000800e3d000, = data=3D0x0000000000207a94, len=3D123) at term-ostream.c:2721:3 frame #10: 0x0000000800427e3f = libtextstyle.so.0`term_styled_ostream__write_mem(stream=3D0x0000000800e3a0= 00, data=3D0x0000000000207a94, len=3D123) at = term-styled-ostream.oo.c:95:3 frame #11: 0x0000000800420535 = libtextstyle.so.0`ostream_write_mem(first_arg=3D0x0000000800e3a000, = data=3D0x0000000000207a94, len=3D123) at ostream.c:138:3 frame #12: 0x00000008004204ec = libtextstyle.so.0`ostream_write_str(stream=3D0x0000000800e3a000, = string=3D".\nThis is free software: you are free to change and = redistribute it.\nThere is NO WARRANTY, to the extent permitted by = law.\n") at ostream.oo.c:35:3 frame #13: 0x0000000000210add poke`pk_puts(str=3D".\nThis is free = software: you are free to change and redistribute it.\nThere is NO = WARRANTY, to the extent permitted by law.\n") at pk-term.c:257:3 Iny my case, there is a NULL pointer dereference in delay_output_ch(), = where my_outch is NULL: frame #0: 0x00000008009ed2da = libncursesw.so.9`delay_output_sp(sp=3D0x0000000000000000, ms=3D4) at = lib_tputs.c:103:22 100 register int nullcount; 101 102 nullcount =3D (ms * _nc_baudrate(ospeed)) / (BAUDBYTE * = 1000); -> 103 for (_nc_nulls_sent +=3D nullcount; nullcount > 0; = nullcount--) 104 my_outch(NCURSES_SP_ARGx PC); 105 if (my_outch =3D=3D NCURSES_SP_NAME(_nc_outch)) 106 NCURSES_SP_NAME(_nc_flush) (NCURSES_SP_ARG); Application is using term_styled_ostream_create() that does not = initialize default_attr. > On 30 Mar 2021, at 01:31, Thomas Dickey wrote: >=20 > On Mon, Mar 29, 2021 at 12:12:55PM -0700, Henric Jungheim wrote: >>=20 >> 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?). >=20 > It might be a problem with the application's initialization of = ncurses. --Apple-Mail=_965B93DE-F4EF-4C45-B585-2DA404E68F6F Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQR9WLqI3W4V0bRHtaAtyIKFszIZVAUCYGLHIwAKCRAtyIKFszIZ VL3+AP4rAq9KTFWfaI30RMu48FsujB4yJ8dKSyG202c4MM63mgD+PvLd4ks+EhGh FzhCbQSVCae/yn4DydCBTOqlHAsobAE= =azX9 -----END PGP SIGNATURE----- --Apple-Mail=_965B93DE-F4EF-4C45-B585-2DA404E68F6F--