From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#47596: File descriptor error when exiting emacs on android 11 Date: Wed, 12 May 2021 17:01:36 +0300 Message-ID: <83r1ic2gqn.fsf@gnu.org> References: <83im51deye.fsf@gnu.org> <730dad3a54f0f53b22e9603879e949b60f5b2c00.camel@grimler.se> <191e2295b88384adf0e7cc1e3dc84cf8f37eb973.camel@grimler.se> <838s5wdhef.fsf@gnu.org> <2215b2299da65d790a705d9b83051028a1a2b693.camel@grimler.se> <87k0ocw37m.fsf@gnus.org> <8a9fbefead009fce76aa5a28315c0fedf3ce7bec.camel@grimler.se> <3eca4ad4c693735b4c9d76b3d3301287086fed4b.camel@grimler.se> <87mtt0jbyj.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26011"; mail-complaints-to="usenet@ciao.gmane.io" Cc: henrik@grimler.se, 47596@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 12 16:03:41 2021 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 1lgpSf-0006dR-D7 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 May 2021 16:03:41 +0200 Original-Received: from localhost ([::1]:58538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgpSe-0005LO-82 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 May 2021 10:03:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgpR4-0002wi-Mq for bug-gnu-emacs@gnu.org; Wed, 12 May 2021 10:02:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56648) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgpR4-0004O6-56 for bug-gnu-emacs@gnu.org; Wed, 12 May 2021 10:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lgpR4-0000uX-32 for bug-gnu-emacs@gnu.org; Wed, 12 May 2021 10:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 May 2021 14:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47596 X-GNU-PR-Package: emacs Original-Received: via spool by 47596-submit@debbugs.gnu.org id=B47596.16208281003468 (code B ref 47596); Wed, 12 May 2021 14:02:02 +0000 Original-Received: (at 47596) by debbugs.gnu.org; 12 May 2021 14:01:40 +0000 Original-Received: from localhost ([127.0.0.1]:39961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgpQi-0000tr-By for submit@debbugs.gnu.org; Wed, 12 May 2021 10:01:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgpQe-0000tZ-5q for 47596@debbugs.gnu.org; Wed, 12 May 2021 10:01:38 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58950) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgpQY-00046B-56; Wed, 12 May 2021 10:01:30 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2599 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgpQX-0001GI-JO; Wed, 12 May 2021 10:01:29 -0400 In-Reply-To: <87mtt0jbyj.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 12 May 2021 15:52:52 +0200) 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:206325 Archived-At: > From: Lars Ingebrigtsen > Cc: eliz@gnu.org, 47596@debbugs.gnu.org > Date: Wed, 12 May 2021 15:52:52 +0200 > > Henrik Grimler writes: > > > Could this work or do we need to have both buferr and stderr? > > Makes sense to me, but I seem to vaguely recall there being a lot of > discussion about the buffered stderr when it was introduced... but none > of the details. Eli? We need them both, yes. The second one was introduced for a reason, so removing it would give us back the problems it solved. setlinebuf is not portable enough, and line buffering isn't supported on MS-Windows anyway. Maybe we could make some archlinux specific change, although that's ugly. And I'm worried that we don't actually understand the nature of the problem well enough: our code doesn't close both FILE streams, it closes at most only one. So this sounds to me like a false positive of the sanitizer, not a real problem with our code...