From nobody Fri Oct 22 08:08:39 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 65B9B17F6584 for ; Fri, 22 Oct 2021 08:08:53 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-23.consmr.mail.gq1.yahoo.com (sonic304-23.consmr.mail.gq1.yahoo.com [98.137.68.204]) (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 4HbH6q6g3Yz3nFv for ; Fri, 22 Oct 2021 08:08:51 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1634890123; bh=4gBrNtcGm/a+qwL6eRmo1HFigQGipJgJZWtZWpYlSHQ=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=pXer9XyrVI9sjeES35OTW/24XX+8CtuXT05S0MKAL1ujC6oTqrIkeNUUdLYjdDksn4Svfzn51zpPf+Xt2+mE1KR2uu9e6iNbsc7sBlZOaQox7Fbq7QHZUCgbDDweaVRhC0HD4f7wDfl5nX10jdxwWfB4R+O1zu1E7AFe0L7FVjtGWV/3qF6vnRnzFl3GHEB4NVEt6Aa3PUGzZwAfe0zKofu5FZEInaLjFAkmFeAuMOZ0CT98n6SE2NSl0rXvpLNxe0EZ8/x/Tost9W/k/HTfcsa/JMI1t5ClUs/DoDuTyj+jHf/2amFmzXInw+J5zGT+JZwGW8TDx47GUiWVWk/c+w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1634890123; bh=Qb2uhowzU9MRb02/a0mPfPOLedwmWKHVghK4aBIxDjr=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=KODISR1k2hoEpoF8dZO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XwHpfUa5JsX.Le1qkdsQ_cC0Eb5oB s7YUPUgwIGG6FJLNCiH9Ix774M1BOG4ePTl6GNQJ_US9d6xZ.I7u2l.ofaHWoYgK1JEqyavAE0qV qgU_4uu.HCNnHRztV3fViwbmbsoSLU2YyVq8xiKQIQsNSZAaGhtELyh6oMjnxW1PXBdNWCCOy_oJ 81nfrrUTeraGcyQ9ZgHK8ErUO95GhWuREfe6c65QpzY9LvyW2KCd13Am5OOj8k4lKTQ9B76wtv0x oj_oUAtuOLOL9UZl8uvjQco.r96CfwoMXkmjLf5WkDhWhHmh34bLW6OZDM26Bo012FJA9FrtOrdE L.0g8Z528gg6UuAlx.lkQvJPzUJ1yyyk5bTm7l9wB9eaZrSxLkdQHNzQf_O2BEy.ZzBffRh1YZ6q SiEtPOmzqcDVXTM7ULVpgKPoiiPx6nqk6OBOqdVvfQKMtPhiWyVo.vU6eAUupnFmB1uMlk45I6Qj 72cRFU7xoFw6EhEjA1iXa8RJ37jIkq.NSvj7FAVtMtHlW8dLupd3OyK54bfTNrO1_90RYFBSyn8d 1m4ipgyYQo34wX9gMUSnxMqIqsaFr8j6FArEnq.A- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Fri, 22 Oct 2021 08:08:43 +0000 Received: by kubenode548.mail-prod1.omega.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 97947c2ee4c815a1163787ba4af3f844; Fri, 22 Oct 2021 08:08:40 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: main changed DIALOG_STATE, DIALOG_VARS, and DIALOG_COLORS but /usr/lib/libdialog.so.? naming was not adjusted? (crashes in releng/13 programs on main [so: 14] can result) Message-Id: <5270B5FE-6C3B-4172-A310-AE9A5A1B853A@yahoo.com> Date: Fri, 22 Oct 2021 01:08:39 -0700 To: "bapt@freebsd.org" , freebsd-current X-Mailer: Apple Mail (2.3654.120.0.1.13) References: <5270B5FE-6C3B-4172-A310-AE9A5A1B853A.ref@yahoo.com> X-Rspamd-Queue-Id: 4HbH6q6g3Yz3nFv X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=pXer9Xyr; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.204 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-1.51 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MID_RHS_MATCH_FROM(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; NEURAL_SPAM_SHORT(0.99)[0.993]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.204:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.204:from]; RCVD_COUNT_TWO(0.00)[2] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-current X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N main [soi: 14] commit a96ef450 (2021-02-26 09:16:49 +0000) changed DIALOG_STATE, DIALOG_VARS, and DIALOG_COLORS . These are publicly exposed in (ones that I noticed): /usr/include/dialog.h:extern DIALOG_STATE dialog_state; /usr/include/dialog.h:extern DIALOG_VARS dialog_vars; /usr/include/dialog.h:extern DIALOG_COLORS dlg_color_table[]; and ends up with the storage being form the .bss of the likes of dialog4ports (the example I ran into). But the .9 in /usr/lib/libdialog.so.9 's .text that references the storage where not increased compared to releng/13.0 and stable/13 that predate the changes, there by not matching old programs built under releng/13.0 or stable/13 . Turns out that this explains the crashes I get when I attempt to use a releng/13 based dialog4ports under main [so: 14]. For a particular example, see: https://lists.freebsd.org/archives/freebsd-current/2021-October/000860.html It shows /usr/main-src/contrib/dialog/dlg_keys.c in /usr/lib/libdialog.so.9 updating a new field: 286 } else { 287 dialog_state.had_resize = FALSE; 0x00000008002d298e <+62>: movb $0x0,0x84(%rax) such that the following happens: Hardware watchpoint 1: -location __stderrp Old value = (FILE *) 0x8004d4940 New value = (FILE *) 0x4d4940 where: (gdb) print &__stderrp $4 = (FILE **) 0x208568 <__stderrp> which has that storage in the dialog4ports area: 0x0000000000208360 - 0x0000000000208c50 is .bss with the older set of fields and size for: extern DIALOG_STATE dialog_state; That in turn later leads to a SIGSEGV from the point of view of a releng/13 based dialog4ports build. Should main [14] instead have: /usr/lib/libdialog.so.10 in order to avoid some releng/13.0 and stable/13 programs trashing their memory? I'm guessing there is no reasonble way to "compat" this. But preventing programs from trashing there own memory and running in a corrupted state seems achievable if the /usr/lib/libdialog.so.? name changes. This might be something for a freebsd-arch discussion for relevant folks. === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)