Date: Mon, 30 Sep 2013 12:31:42 -0700 From: Xin Li <delphij@delphij.net> To: Jeremy Chadwick <jdc@koitsu.org>, delphij@FreeBSD.org Cc: freebsd-bugs@FreeBSD.org Subject: Re: bin/182360: nslookup emits SIGSEGV when Ctrl-D (EOF) pressed Message-ID: <5249D19E.6000303@delphij.net> In-Reply-To: <20130930014445.GA88757@icarus.home.lan> References: <201309252042.r8PKgPQ5011485@freefall.freebsd.org> <20130930014445.GA88757@icarus.home.lan>
index | next in thread | previous in thread | raw e-mail
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 09/29/13 18:44, Jeremy Chadwick wrote: > On Wed, Sep 25, 2013 at 08:42:25PM +0000, delphij@FreeBSD.org > wrote: >> Synopsis: nslookup emits SIGSEGV when Ctrl-D (EOF) pressed >> >> State-Changed-From-To: open->patched State-Changed-By: delphij >> State-Changed-When: Wed Sep 25 20:41:38 UTC 2013 >> State-Changed-Why: Fixed in -HEAD, MFC reminder. >> >> (Note that it's too late to fix this for 9.2-RELEASE). >> >> >> Responsible-Changed-From-To: freebsd-bugs->delphij >> Responsible-Changed-By: delphij Responsible-Changed-When: Wed Sep >> 25 20:41:38 UTC 2013 Responsible-Changed-Why: Take. >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=182360 > > Should HEAD r255873 be reverted as a result of HEAD r255891? I don't think so (note that BIND is now removed from HEAD so there is nothing to revert anyways). See below. > I see HEAD r255891 got MFC'd (as r255924) -- thank you. I had a > feeling the issue was in libedit but wasn't entirely certain which > was the proper place to fix it. > No. The libedit change was a bug for bandaid one so using libedit in place of readline won't crash. The original GNU readline example [1] reads: /* If the line has any text in it, save it on the history. */ if (line_read && *line_read) add_history (line_read); Normally the documented example is the recommended practice of how to use the library API. Note that neither libedit or readline handles the case where add_history("") is called specially. The BIND code was changed to match this but since the change is no longer a critical one with the libedit change, I will leave the stable branch as-is for now and see how far my bug report to ISC would go. [1] http://cnswww.cns.cwru.edu/php/chet/readline/readline.html#SEC24 Cheers, - -- Xin LI <delphij@delphij.net> https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (FreeBSD) iQEcBAEBCgAGBQJSSdGeAAoJEG80Jeu8UPuzr+cH/34VyMylduiyWTJXrfYgqxfM ZxskvLVQKIZF47+Ie9HmfBUXLFG/UiJut1xsHf6mhMFhSLK7TVV+vWlkuJSMohI+ dQd+/fPOvk1tVuiY4LBNruPAoXDDNEV/KuhcdIs+GEOYH6yfNhDSzcxkLOoNmBRD UcnrMDFELzTD7bn9qWj3WuWOocDvvGu+Vbbjjne6g1nFw1mw2G5hBf+09dd4hfxF K2Alno/GfZGK3mMSOyIl8lzVHQ5jiCmbzMoJ4EXry45AsLswL4g1KffQ6Ii9CtUk tzhFmK0Jeu+kplk6gr9bUMiukO1MDBsTHZTfIQBSxdiMziC3l4GPYRP3gLV4e8E= =C2Cm -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5249D19E.6000303>
