From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#56095: 29.0.50; nsterm.m, use after free Date: Tue, 21 Jun 2022 16:25:19 +0200 Message-ID: <64ea0fed-01d8-4888-a445-9868dbcb7bee@Spark> References: <87r13kw2lj.fsf@yahoo.com> <1e49efb3-c70d-4c58-82a3-50cca5298858@Spark> <87bkunocsg.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="62b1d4d4_153ea438_588f" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11597"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56095@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 21 16:46:28 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o3f99-0002q6-9j for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Jun 2022 16:46:27 +0200 Original-Received: from localhost ([::1]:58006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o3f98-0006jk-4k for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Jun 2022 10:46:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3epN-0001X0-TI for bug-gnu-emacs@gnu.org; Tue, 21 Jun 2022 10:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39152) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o3epN-0003HZ-Kk for bug-gnu-emacs@gnu.org; Tue, 21 Jun 2022 10:26:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o3epN-0000jI-Hz for bug-gnu-emacs@gnu.org; Tue, 21 Jun 2022 10:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Jun 2022 14:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56095 X-GNU-PR-Package: emacs Original-Received: via spool by 56095-submit@debbugs.gnu.org id=B56095.16558215342764 (code B ref 56095); Tue, 21 Jun 2022 14:26:01 +0000 Original-Received: (at 56095) by debbugs.gnu.org; 21 Jun 2022 14:25:34 +0000 Original-Received: from localhost ([127.0.0.1]:33049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o3eov-0000iV-U7 for submit@debbugs.gnu.org; Tue, 21 Jun 2022 10:25:34 -0400 Original-Received: from mail-ed1-f41.google.com ([209.85.208.41]:36578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o3eou-0000iI-7I for 56095@debbugs.gnu.org; Tue, 21 Jun 2022 10:25:32 -0400 Original-Received: by mail-ed1-f41.google.com with SMTP id e2so8686585edv.3 for <56095@debbugs.gnu.org>; Tue, 21 Jun 2022 07:25:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version; bh=XkVMs8hMAQUDwIs2x21ev4XK3QkoakEOBRSNZQGt4jQ=; b=YQU+HO2q0JKmj7/1zNzuz8gocCD39vewb+k2L6Lmy+T4hnWTZ0DvtRlrGFUYilOW+P 5hGarn9ljawRPiMSN3EPUCafbl++Lw7wvZdEYXVhGYTPQwGmma7e0fkS7esZFkKYmZrA Of/63nl/vNZF5/r++w1n2UIntlMyYnQ+EsUZ6a1BcU/WaXAIADpaZ19LILZ2XOCeHlJy +m61y77BgdCnepoUiG/0hG5RGgvATdarNzWISpdmx7v/PAn9VYYE4D/+tvU8DMWHIXTo vygmOCbSTW+RaG7R93VyeXRMtvoDgmNGqGqhKV0xhnKNxdxFvCESeUxac3VfrhXmdxXK lqQA== 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:message-id:in-reply-to :references:subject:mime-version; bh=XkVMs8hMAQUDwIs2x21ev4XK3QkoakEOBRSNZQGt4jQ=; b=G7B4lManAwMIJycns8GIKfSP00ToeTjzRufQM+cWG/fW/dP0Lqmebe2EdrRI55A6cF JtJ1gA5kPs6KZhIOMzx2x6/6XmHVpOv5/AEtK0561YoSexb8G/Zbs/RjHieLxbH/KvKg LFinkMsT1F/FA99lufcZZ3iSYkgFItKZbyUqb14PmNXYRjHgRM+7zBJHbcC5VSPsDD58 kUDRU1Y/uRachTfi467we5PlfphrDk6KTJwFBf6d1/0Cju3O3tDz3GjWHotcJ3juUd8H TRrnaF+fse5sRU55L8G3/wixIHO5eLpD6vHc6mHLgwnlDolSIAXGINPbYXeN2RUbkGe1 9/Lw== X-Gm-Message-State: AJIora/2oc2DoQLOUdi1A8xc45auXy13eSRt4zbInj20APvZ3rltSWJQ p9Ke/H/CxR6D4bWjT+YfT5w= X-Google-Smtp-Source: AGRyM1vFYUcTgnHfJu3qEqEH0Z2OD4jlxJ8AMIpTIDq4XfCsUTNf+X3VSzxub4RD7f/PFP/hm89eWg== X-Received: by 2002:a05:6402:35d6:b0:435:9f33:3363 with SMTP id z22-20020a05640235d600b004359f333363mr1587848edc.349.1655821526283; Tue, 21 Jun 2022 07:25:26 -0700 (PDT) Original-Received: from [192.168.178.21] (pd9e36503.dip0.t-ipconnect.de. [217.227.101.3]) by smtp.gmail.com with ESMTPSA id lz6-20020a170906fb0600b00722e5e54fc2sm950638ejb.12.2022.06.21.07.25.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Jun 2022 07:25:25 -0700 (PDT) In-Reply-To: <87bkunocsg.fsf@yahoo.com> X-Readdle-Message-ID: 64ea0fed-01d8-4888-a445-9868dbcb7bee@Spark X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:234966 Archived-At: --62b1d4d4_153ea438_588f Content-Type: multipart/alternative; boundary="62b1d4d4_580bd78f_588f" --62b1d4d4_580bd78f_588f Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 20. Jun 2022, 12:21 +0200, Po Lu , wrote: > But it seems there is no struct scroll=5Fbar at all in the NS port=21 (= Why > does it always have to do things differently=3F) Think Different (tm) :-). > Does anyone want me to > fix that=3F I have no opinion on that. > > In the meantime, a loop through all the scroll bars in a mark=5Fnsterm > function would suffice. Please find a patch for that attached. As an aside, if anyone has heard anything about building GDB on an M1 Mac= , I'd be grateful for a pointer. I'm asking because I'm currently stuck w= ith lldb on my machine.=C2=A0=C2=A0GDB doesn't seem to build - it doesn't= produce an executable, but apparently, if I'm not blind, without saying = what the problem is. --62b1d4d4_580bd78f_588f Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
On 20. Jun 2022, 12:21 +0200, Po Lu <luangruo=40= yahoo.com>, wrote:
But it seems there is no struct scroll=5Fbar at all in the NS port=21 (W= hy
does it always have to do things differently=3F)&=23160;
Think Different (tm) :-).
Does anyone want me to
fix that=3F
I have no opinion on that.

In the meantime, a loop through all the scroll bars in a mark=5Fnsterm function would suffice.
Please find a patch for that attached.

As an aside, if anyone has heard anything about building GDB on an M1 Mac= , I'd be grateful for a pointer. I'm asking because I'm currently stuck w= ith lldb on my machine.&=23160;&=23160;GDB doesn't seem to build - it doe= sn't produce an executable, but apparently, if I'm not blind, without say= ing what the problem is.
--62b1d4d4_580bd78f_588f-- --62b1d4d4_153ea438_588f Content-Type: application/octet-stream Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="0001-Prevent-GC-of-window-referenced-from-EmacsScroller.patch" RnJvbSA4ODQyYTk5NGZhYmY2NTE5N2ZhNDhiZWVkOGJkODgwNjZmMTY1NWUyIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBHZXJkIE1vZWxsbWFubiA8Z2VyZC5tb2VsbG1hbm5AZ21haWwu Y29tPgpEYXRlOiBUdWUsIDIxIEp1biAyMDIyIDE1OjQ5OjQ0ICswMjAwClN1YmplY3Q6IFtQQVRD SF0gUHJldmVudCBHQyBvZiB3aW5kb3cgcmVmZXJlbmNlZCBmcm9tIEVtYWNzU2Nyb2xsZXIKCiog c3JjL25zdGVybS5tIChFbWFjc1Njcm9sbGVyLm1hcmssIG1hcmtfbnN0ZXJtKTogTmV3IGZ1bmN0 aW9ucy4KKiBzcmMvbnN0ZXJtLmggKEVtYWNzU2Nyb2xsZXIubWFyaywgbWFya19uc3Rlcm0pOiBE ZWNsYXJlLgoqIHNyYy9hbGxvYy5jIChnYXJiYWdlX2NvbGxlY3QpIFtNQVZFX05TXTogQ2FsbCBt YXJrX25zdGVybS4KLS0tCiBzcmMvYWxsb2MuYyAgfCAgNCArKysrCiBzcmMvbnN0ZXJtLmggfCAg NCArKysrCiBzcmMvbnN0ZXJtLm0gfCAzMCArKysrKysrKysrKysrKysrKysrKysrKysrKysrKysK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CAoZikpCisJeworCSAgTlNBcnJheSAqc3Vidmll d3MgPSBbW0ZSQU1FX05TX1ZJRVcgKGYpIHN1cGVydmlld10gc3Vidmlld3NdOworCSAgZm9yIChp bnQgaSA9IFtzdWJ2aWV3cyBjb3VudF0gLSAxOyBpID49IDA7IC0taSkKKwkgICAgeworCSAgICAg IGlkIHNjcm9sbGVyID0gW3N1YnZpZXdzIG9iamVjdEF0SW5kZXg6IGldOworCSAgICAgIGlmIChb c2Nyb2xsZXIgaXNLaW5kT2ZDbGFzczogW0VtYWNzU2Nyb2xsZXIgY2xhc3NdXSkKKyAgICAgICAg ICAgICAgICAgIFtzY3JvbGxlciBtYXJrXTsKKwkgICAgfQorCX0KKyAgICB9Cit9CiAKIHZvaWQK IHN5bXNfb2ZfbnN0ZXJtICh2b2lkKQotLSAKMi4zNi4xCgo= --62b1d4d4_153ea438_588f--