From nobody Thu Oct 21 13:14:38 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 0F92A17F5CF5 for ; Thu, 21 Oct 2021 13:14:47 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HZnyG6myCz3R8D for ; Thu, 21 Oct 2021 13:14:46 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-ed1-x52f.google.com with SMTP id z20so982756edc.13 for ; Thu, 21 Oct 2021 06:14:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=bnPerz528GwVaMP46nQqEtr0E55IZrZBUGuievBQ9W4=; b=P+al3r70BTJsEUd5WaqtE483xQ7GwZ47Ppj6n4TS3Ff8ej1WJQieMMJYctDw0yUnpW /BMyEeDolwVZxEU7CCYFT6AZJCZbuXbZwO/G27CRC+gEk4t+Sa2Me+o2OFRdF9fy/UZt 7e+h9mVbGgsfxZqL0frnN2xEZAU6PA9nj9ZDnwr5LteLn2cLzwuZXVa2flMsb5DBkpfb +GaUOeJ9QQ8cUvt/fSoH+xz6q6zCKqhsdTW+iQi7axIspSveJ1oNvai7yea5lfwlOf/d KbjDouYs9GjU3yY7gMAEhAz+Lspb2I1EG+TYCa9qXOhJvww7RITFDV/31wNmujU7nzIG X9Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=bnPerz528GwVaMP46nQqEtr0E55IZrZBUGuievBQ9W4=; b=rEjDAN0RZwG+xlfHFnYZBlqj3y1DsXsMov5wWLZWoe21XpFUc2TzpS7yAak9YqsAmq Q/ViU7d+7h7F8b26z9C/ZgWf6ssuf+QJ4YvVOoMvA/8jrH0e9k7AmPF+kosgXMDDouFA 2ygepPJZWQ1UeytxK1WRwk1G42EnyW/plYVR9P/ATSHUDpFG5AHVKIjv267KKsLmvWrv OiAzu9Z/O5Si/VDLYM4DJnkFmehJTzxPg7P+vKLGUbroVVFb3SunymfCBjq+RFj6ZEFX B/mRsY5i/Enq1dD6oyQ4SE6HbKvbWi3etWArIOtSDN4ziwZ0ZIdVONVVRTmWj0aWhA9v 551w== X-Gm-Message-State: AOAM530rcaHdry1mF3jdK2Fdx2lRE2sZ33Wdesh3PJb173GoOsRbxfnI raCD4X6NtCEnlI+w+gpq++Sruu1ZyzU= X-Google-Smtp-Source: ABdhPJz5cI1wVCtmtWCrfxp1EpYWEaD3ppbR1XQv5YcjwM63RrEgKTdN181qxwJ9cXy8GxsjqLytqw== X-Received: by 2002:a05:6402:3488:: with SMTP id v8mr7542703edc.106.1634822085829; Thu, 21 Oct 2021 06:14:45 -0700 (PDT) Received: from ernst.home (p5b3becad.dip0.t-ipconnect.de. [91.59.236.173]) by smtp.gmail.com with ESMTPSA id r26sm2592707ejd.85.2021.10.21.06.14.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Oct 2021 06:14:45 -0700 (PDT) Date: Thu, 21 Oct 2021 15:14:38 +0200 From: Gary Jennejohn To: Mark Millard via freebsd-current Cc: marklmi@yahoo.com Subject: Re: Is dialog4ports built in/for releng/13.0 also supposed to work under main [so: 14]? It gets SIGSEGV in my context. Message-ID: <20211021151438.7496a0d0@ernst.home> In-Reply-To: <0465422C-DA30-4421-85E7-17CACBF0356D@yahoo.com> References: <0465422C-DA30-4421-85E7-17CACBF0356D.ref@yahoo.com> <0465422C-DA30-4421-85E7-17CACBF0356D@yahoo.com> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4HZnyG6myCz3R8D X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Thu, 21 Oct 2021 01:34:47 -0700 Mark Millard via freebsd-current wrote: > I get the following crash (amd64 example shown), as reported > via gdb afterwards. (devel/llvm13 is just an example context.) > > 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=0x4d4940, locale=0x8004d4128 <__xlocale_global_locale>, fmt0=0x201f64 "\"%s\"", ap=ap@entry=0x7fffffffcf00) at /usr/main-src/lib/libc/stdio/vfprintf.c:281 > 281 if ((fp->_flags & (__SNBF|__SWR|__SRW)) == (__SNBF|__SWR) && > (gdb) bt > #0 vfprintf_l (fp=0x4d4940, locale=0x8004d4128 <__xlocale_global_locale>, fmt0=0x201f64 "\"%s\"", ap=ap@entry=0x7fffffffcf00) at /usr/main-src/lib/libc/stdio/vfprintf.c:281 > #1 0x0000000800409283 in fprintf (fp=0x800411660 <__stdio_cancel_cleanup>, fmt=0x7fffffffcdd0 "0\317\377\377\377\177") at /usr/main-src/lib/libc/stdio/fprintf.c:57 > #2 0x000000000020399d in main (argc=, argv=) at dialog4ports.c:332 > (gdb) quit > > 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. > 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. IIRC there were updates to ncurses in FBSD-14 fairly recently which would explain the problem with old versions of dialog4ports. > 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.) > > For reference . . . > > # 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.amd64/sys/GENERIC-NODBG amd64 amd64 1400036 1400036 > > (Not a debug build but has debug symbols enabled.) > > # pwd > /usr/ports > # ~/fbsd-based-on-what-commit.sh > 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) > > # 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 > > # ldd `which dialog4ports` > /usr/local/bin/dialog4ports: > libncursesw.so.9 => /lib/libncursesw.so.9 (0x800248000) > libm.so.5 => /lib/libm.so.5 (0x800281000) > libdialog.so.9 => /usr/lib/libdialog.so.9 (0x8002b8000) > libc.so.7 => /lib/libc.so.7 (0x8002f6000) > libtinfow.so.9 => /lib/libtinfow.so.9 (0x800703000) > > Note: The dialog4ports is a non-debug build but with debug symbols, > as is normal for my port builds via poudriere-devel . > > As for the poudriere-devel build context for the ports: > > # 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.amd64/sys/GENERIC-NODBG amd64 amd64 1400036 1300139 > > # cd /usr/13_0R-src/ > # ~/fbsd-based-on-what-commit.sh > 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) > > > > === > Mark Millard > marklmi at yahoo.com > ( dsl-only.net went > away in early 2018-Mar) > > -- Gary Jennejohn