From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#39164: 27.0.60; Intermittent crash on MacOS 10.14 in setup_process_coding_systems Date: Wed, 29 Jan 2020 14:38:32 +0200 Message-ID: <0A439FD3-D066-4D6B-B73D-CFCF78DB18FD@gnu.org> References: <83y2u523xl.fsf@gnu.org> <83y2u2vwha.fsf@gnu.org> <642b78068a31ff898c349357263460a8.squirrel@weber.math.s.chiba-u.ac.jp> <83mua8oj8k.fsf@gnu.org> <1827C99D-AFC1-494C-B004-0D569B9D481D@gnu.org> <88A26EA5-725A-43D4-9A13-065703B9F9A4@gnu.org> <83a767o52x.fsf@gnu.org> <2B631786-500C-4FAE-9880-A96F0FEBE0E1@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="18796"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: K-9 Mail for Android Cc: tomekowal@gmail.com, rpluim@gmail.com, jguenther@gmail.com To: 39164@debbugs.gnu.org, mituharu@math.s.chiba-u.ac.jp Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 29 13:39:14 2020 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 1iwmck-0004qx-Al for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Jan 2020 13:39:14 +0100 Original-Received: from localhost ([::1]:45820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwmcj-00064P-CF for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Jan 2020 07:39:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35444) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwmca-00063Z-MT for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2020 07:39:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iwmcY-0005zY-FL for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2020 07:39:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55582) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iwmcY-0005zM-4X for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2020 07:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iwmcY-0006dJ-28 for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2020 07:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Jan 2020 12:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39164 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org, YAMAMOTO Mitsuharu X-Debbugs-Original-Cc: tomekowal@gmail.com, rpluim@gmail.com, 39164@debbugs.gnu.org, jguenther@gmail.com Original-Received: via spool by submit@debbugs.gnu.org id=B.158030152125452 (code B ref -1); Wed, 29 Jan 2020 12:39:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Jan 2020 12:38:41 +0000 Original-Received: from localhost ([127.0.0.1]:33319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwmcD-0006cR-0A for submit@debbugs.gnu.org; Wed, 29 Jan 2020 07:38:41 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:51292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iwmcB-0006cJ-Tm for submit@debbugs.gnu.org; Wed, 29 Jan 2020 07:38:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35352) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwmcA-0005l5-Mh for bug-gnu-emacs@gnu.org; Wed, 29 Jan 2020 07:38:39 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45437) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iwmc9-0005pb-NW; Wed, 29 Jan 2020 07:38:37 -0500 Original-Received: from [176.12.206.94] (port=54668 helo=[10.161.193.161]) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1iwmc9-000156-0G; Wed, 29 Jan 2020 07:38:37 -0500 In-Reply-To: <2B631786-500C-4FAE-9880-A96F0FEBE0E1@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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:175385 Archived-At: On January 29, 2020 1:09:16 PM GMT+02:00, Eli Zaretskii wr= ote: > On January 29, 2020 12:26:23 PM GMT+02:00, YAMAMOTO Mitsuharu > wrote: > > On Wed, 29 Jan 2020 02:37:10 +0900, > > Eli Zaretskii wrote: > > >=20 > > > > The increase happens only once per function in question=2E So we > > make a > > > > dummy call in advance so later calls may not cause the increase > in > > > > unpredicable timings=2E > > >=20 > > > Can these dummy calls be made just before we call setrlimit in > > > init_process_emacs, as opposed to in a macOS-specific source file? > >=20 > > The functions in question are used together with Mac-specific GUI > > event handing=2E I placed the dummy calls inside macOS-specific code > so > > the -nw case may not change the behavior from the original one=2E >=20 > We could condition the code in process=2Ec by the aporopriate NS > preprocessor condition to make it take effect only in GUI sessions=2E Sorry, preprocessor condition is not TRT, we should have a runtime test th= at limits these dummy calls to GUI sessions=2E My point is that having this code in the same place for all platforms is b= etter for long-range maintenance=2E