From nobody Thu Oct 21 18:53:05 2021 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 62843181E6EE for ; Thu, 21 Oct 2021 18:53:21 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-21.consmr.mail.ne1.yahoo.com (sonic306-21.consmr.mail.ne1.yahoo.com [66.163.189.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HZxSx1Pgsz4ThN for ; Thu, 21 Oct 2021 18:53:21 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1634842394; bh=tB1nzAkS38+yMJ7lpNeq7e9YsDe58kblZKdZjD382tY=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=ZrY2iDo9R9TIChil0Ms2vTiKEpci/mHr1Qj5B6dQC0gtEJw7hOFxS38hgR20Y3ojyyBm4Rfw+0XvPNHWwzf/MynC5pWoPXfHb2+cfHu2HzZwibjwlIpGBRDUxkibslvxKNYhKIkfnrsIuDlk8qw2tPwZnzK4uPlB2ex1d5j+gOW1Yl9uE9LNZb1r/RcZDPZwPHSyn/DUlTNokcej5K3VBjfqhScvSlK5go2CsHvjI9f5Ij8WJy5M+rx7TQZQvaGZ6Ok+ip6gsOUbFqMZxGj//pP6cNQkWx8YUrQ3z/qGwvmwSvo+8B4ciom2+UJNmF5QhjD/JpSiC5xWjAoV6eEruw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1634842394; bh=snYug++j5HVMkqoFjRyl4UNgxUF0If/q+xF+5eRbSR4=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=i8zWG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ZH0GTDZJ1VM0tvMMHXTL7zIJMXYCvxZ0na q4nZmgEsB9VEuUw.i0CvHBUlQcEJwm8FiJSAdK6JEyYkBiwfIwTEKO30.bmQulsJpJ5svCt_4N_s Ap6C80Uj6.Yf6rY0fNmsczrB7oujJ_wgGRX19CVlCMnGXegf8GAipClnKysr56OgQ.OLDLhiudut uEwmBER2fxg_fJQQ8SeQJPPhFGUelYWSt8T.81TZvycsifHo6yNsvjUBTd5Xu8aoXDYZW8KsSQQD 9BwtgNZM4xlyBt7o0h0PM7hYv0mK1kR6ciYZJ1bNGyW8d6sz.j8232lVVznRm6JYvon1XGHanV4f d4M06Iy.NHH2JLymdcsgQYfrjM2IHm6UdcbxFk5yIjw1.HluU0zkQEDq6Ls_lpeG1Bvcsvqfv65J Ysts40GpDZQFAxUPtR240KiTYf2cGvHphVDYYz0QLu6TL4nPSAMW8BRDylf1VuchW2WLg1AuKQhc sSfR5C6QrE2KhamaUbKhLStxjXMIh0gDGwzme9bjj3QuXZ9mciEk- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Thu, 21 Oct 2021 18:53:14 +0000 Received: by kubenode522.mail-prod1.omega.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 7594180fe947d2c6b6cc965c936058d9; Thu, 21 Oct 2021 18:53:08 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Is dialog4ports built in/for releng/13.0 also supposed to work under main [so: 14]? It gets SIGSEGV in my context. In-Reply-To: <20211022002715.5a6ec66c7c27442f483e9347@dec.sakura.ne.jp> Date: Thu, 21 Oct 2021 11:53:05 -0700 Cc: freebsd-current@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <0465422C-DA30-4421-85E7-17CACBF0356D.ref@yahoo.com> <0465422C-DA30-4421-85E7-17CACBF0356D@yahoo.com> <20211021151438.7496a0d0@ernst.home> <20211022002715.5a6ec66c7c27442f483e9347@dec.sakura.ne.jp> To: junchoon@dec.sakura.ne.jp X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4HZxSx1Pgsz4ThN X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-current X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N On 2021-Oct-21, at 08:27, Tomoaki AOKI = wrote: > On Thu, 21 Oct 2021 07:40:36 -0700 > Mark Millard via freebsd-current wrote: >=20 >>=20 >>=20 >> On 2021-Oct-21, at 06:14, Gary Jennejohn = wrote: >>=20 >>> On Thu, 21 Oct 2021 01:34:47 -0700 >>> Mark Millard via freebsd-current = wrote: >>>=20 >>>> I get the following crash (amd64 example shown), as reported >>>> via gdb afterwards. (devel/llvm13 is just an example context.) >>>>=20 >>>> gdb `which dialog4ports` devel/llvm13/dialog4ports.core >>>> . . . >>>> Core was generated by `/usr/local/bin/dialog4ports'. >>>> Program terminated with signal SIGSEGV, Segmentation fault. >>>> Address not mapped to object. >>>> #0 vfprintf_l (fp=3D0x4d4940, locale=3D0x8004d4128 = <__xlocale_global_locale>, fmt0=3D0x201f64 "\"%s\"", = ap=3Dap@entry=3D0x7fffffffcf00) at = /usr/main-src/lib/libc/stdio/vfprintf.c:281 >>>> 281 if ((fp->_flags & (__SNBF|__SWR|__SRW)) =3D=3D = (__SNBF|__SWR) && >>>> (gdb) bt >>>> #0 vfprintf_l (fp=3D0x4d4940, locale=3D0x8004d4128 = <__xlocale_global_locale>, fmt0=3D0x201f64 "\"%s\"", = ap=3Dap@entry=3D0x7fffffffcf00) at = /usr/main-src/lib/libc/stdio/vfprintf.c:281 >>>> #1 0x0000000800409283 in fprintf (fp=3D0x800411660 = <__stdio_cancel_cleanup>, fmt=3D0x7fffffffcdd0 "0\317\377\377\377\177") = at /usr/main-src/lib/libc/stdio/fprintf.c:57 >>>> #2 0x000000000020399d in main (argc=3D, = argv=3D) at dialog4ports.c:332 >>>> (gdb) quit >>>>=20 >>>> The crash happens after selecting OK but not after selecting = Cancel. The >>>> display is also odd before that (no line drawing, just odd text = instead), >>>> but is sufficient to be usable at that stage. >>>>=20 >>>=20 >>> This is an indication that something is missing in dialog4ports = which >>> is required by FBSD-14 but not FBSD-13. I had a similar problem = with >>> dialog4ports under FBSD-14 some weeks ago, because i had a really = old >>> version installed. After upgrading it using the pkg repositories = for >>> FBSD-14 all problems, in particular garbled text, disappeared. >>>=20 >>> IIRC there were updates to ncurses in FBSD-14 fairly recently which >>> would explain the problem with old versions of dialog4ports. >>=20 >> I do (and did) my own port builds with poudriere-devel. See the >> version of ports below. In summary: my dialog4ports is=20 >> based on 4116dc2f of ports (CommitDate: 2021-10-17 21:52:37 +0000). >>=20 >> However it was deliberately built in/for a releng/13.0 based >> context then also used under main [so:14]. >>=20 >> For ports not requiring kernel vintage matching, newer systems >> versions generally allow running software built for older FreeBSD >> systems (going back a fair distance, anyway). dialog4ports does >> not appear to require kernel vintage matching. I do not install >> any ports requiring kernel vintage matching. >=20 > IIRC, dialog4ports case wouldn't be a kernel-related. > For ncurses libraries, main (aka 14-current) fully switched to *w ones > and deleted non-*w ones. And dialog4ports built with 13 and earlier > crashed on 14. So I did a chroot into a bectl mount of my stable/13 13S-amd64-nodbg and looked: # ldd `which dialog4ports` /usr/local/bin/dialog4ports: libncursesw.so.9 =3D> /lib/libncursesw.so.9 (0x800248000) libm.so.5 =3D> /lib/libm.so.5 (0x8002bc000) libdialog.so.9 =3D> /usr/lib/libdialog.so.9 (0x8002f3000) libc.so.7 =3D> /lib/libc.so.7 (0x80032d000) # ldd /usr/lib/libdialog.so.9 /usr/lib/libdialog.so.9: libncursesw.so.9 =3D> /lib/libncursesw.so.9 (0x8006a7000) libm.so.5 =3D> /lib/libm.so.5 (0x80071b000) libc.so.7 =3D> /lib/libc.so.7 (0x800261000) This context worked fine for OK selection but note that there is libncursesw.so.9 use (so: *w in use). The problem is not libncursesw.so vs. libncurses.so use. Instead it seems to be the split between: libncursesw.so.9 and: libtinfow.so.9 in main [so: 14] that looks to be the difference that matters. Somehow the binding to libtinfow.so.9 in main is insufficient to allow full use of the releng/13.0 based dialog4ports build. (For all I know, this might be expected.) For reference for the stable/13 test: # uname -apKU FreeBSD amd64_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT #3 = main-n249978-032448cd2c52-dirty: Fri Oct 8 23:57:23 PDT 2021 = root@amd64_ZFS:/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.a= md64/sys/GENERIC-NODBG amd64 amd64 1400036 1300516 # ~/fbsd-based-on-what-commit.sh=20 branch: stable/13 merge-base: 0e5787b1d089310448fdc7b9855f1f0701965d8d merge-base: CommitDate: 2021-10-09 03:01:17 +0000 0e5787b1d089 (HEAD -> stable/13, freebsd/stable/13) ti(4): Fix a typo in = an error message n247583 (--first-parent --count for merge-base) The chroot had a mount_null of the same /usr/local/ as was used for the main [14] activity. (And a mount_null of the same /usr/ports/ that was in use for the main activity.) >>=20 >>>> I've not had any other of the ports that I built in/for releng/13.0 >>>> (and have used) fail to operate under main [so: under 14]. (But the >>>> variety used is not wide.) >>>>=20 >>>> For reference . . .=20 >>>>=20 >>>> # uname -apKU >>>> FreeBSD amd64_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT #3 = main-n249978-032448cd2c52-dirty: Fri Oct 8 23:57:23 PDT 2021 = root@amd64_ZFS:/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.a= md64/sys/GENERIC-NODBG amd64 amd64 1400036 1400036 >>>>=20 >>>> (Not a debug build but has debug symbols enabled.) >>>>=20 >>>> # pwd >>>> /usr/ports >>>> # ~/fbsd-based-on-what-commit.sh=20 >>>> branch: main >>>> merge-base: 4116dc2f1f6385b42fb668badb6b4c1cbb195f9d >>>> merge-base: CommitDate: 2021-10-17 21:52:37 +0000 >>>> 4116dc2f1f63 (HEAD -> main, freebsd/main, freebsd/HEAD) = ports-mgmt/poudriere-devel: Update to 3.3.0-1022-g964cf327f >>>> n562472 (--first-parent --count for merge-base) >>=20 >> The above indicates the vintage of ports that my dialog4ports >> build is based on (in detail): Not all that old at this point. >>=20 >>>> # file `which dialog4ports` >>>> /usr/local/bin/dialog4ports: ELF 64-bit LSB executable, x86-64, = version 1 (FreeBSD), dynamically linked, interpreter = /libexec/ld-elf.so.1, for FreeBSD 13.0 (1300139), FreeBSD-style, with = debug_info, not stripped >>>>=20 >>>> # ldd `which dialog4ports` >>>> /usr/local/bin/dialog4ports: >>>> libncursesw.so.9 =3D> /lib/libncursesw.so.9 (0x800248000) >>>> libm.so.5 =3D> /lib/libm.so.5 (0x800281000) >>>> libdialog.so.9 =3D> /usr/lib/libdialog.so.9 (0x8002b8000) >>>> libc.so.7 =3D> /lib/libc.so.7 (0x8002f6000) >>>> libtinfow.so.9 =3D> /lib/libtinfow.so.9 (0x800703000) >>>>=20 >>>> Note: The dialog4ports is a non-debug build but with debug symbols, >>>> as is normal for my port builds via poudriere-devel . >>>>=20 >>>> As for the poudriere-devel build context for the ports: >>>>=20 >>>> # chroot /usr/obj/DESTDIRs/13_0R-amd64-poud/ >>>> # uname -apKU >>>> FreeBSD amd64_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT #3 = main-n249978-032448cd2c52-dirty: Fri Oct 8 23:57:23 PDT 2021 = root@amd64_ZFS:/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.a= md64/sys/GENERIC-NODBG amd64 amd64 1400036 1300139 >>>>=20 >>>> # cd /usr/13_0R-src/ >>>> # ~/fbsd-based-on-what-commit.sh=20 >>>> branch: releng/13.0 >>>> merge-base: 940681634ee17d12225ecd722c07fef1a0bde813 >>>> merge-base: CommitDate: 2021-08-24 18:23:29 +0000 >>>> 940681634ee1 (HEAD -> releng/13.0, freebsd/releng/13.0) Add = UPDATING entries and bump version. >>>> n244760 (--first-parent --count for merge-base) >>=20 >>=20 >>=20 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)