From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Henrik Grimler via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#47596: File descriptor error when exiting emacs on android 11 Date: Wed, 29 Jun 2022 15:25:58 +0200 Message-ID: References: <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> <83r1ic2gqn.fsf@gnu.org> <87a69vkaps.fsf@gnus.org> Reply-To: Henrik Grimler Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19334"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 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 Jun 29 15:46:25 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 1o6Y1R-0004oP-IO for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Jun 2022 15:46:25 +0200 Original-Received: from localhost ([::1]:48692 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6Y1Q-0006D0-Fp for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Jun 2022 09:46:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6Xig-0002RB-P1 for bug-gnu-emacs@gnu.org; Wed, 29 Jun 2022 09:27:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35983) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6Xig-0005rl-3b for bug-gnu-emacs@gnu.org; Wed, 29 Jun 2022 09:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6Xif-0006tY-Qz for bug-gnu-emacs@gnu.org; Wed, 29 Jun 2022 09:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Henrik Grimler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Jun 2022 13:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47596 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 47596-submit@debbugs.gnu.org id=B47596.165650917126436 (code B ref 47596); Wed, 29 Jun 2022 13:27:01 +0000 Original-Received: (at 47596) by debbugs.gnu.org; 29 Jun 2022 13:26:11 +0000 Original-Received: from localhost ([127.0.0.1]:58111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6Xhn-0006sG-Sl for submit@debbugs.gnu.org; Wed, 29 Jun 2022 09:26:11 -0400 Original-Received: from out0.migadu.com ([94.23.1.103]:31520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6Xhi-0006s2-IM for 47596@debbugs.gnu.org; Wed, 29 Jun 2022 09:26:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=grimler.se; s=key1; t=1656509161; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ORZ/HMauh4/5UAcbD3o5KCReeOOQmjpjo8J8zIDQH6A=; b=AWT/De4bI4o87zFYTvVKKHvGyZD0i/2JNPU+v3YtuzOIqX0G7AcBbUpd4EyLd6s4Tk/e+k iavvOYD7S94X21yiRghKYpVSemIzOqIGo1Q7GpO2cx9y2ydds0OCpdFt9JhjH84ID+gJmn XcFr5I8E2igOjc2SNxn4YK9G+cE3xO0= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. Content-Disposition: inline In-Reply-To: <87a69vkaps.fsf@gnus.org> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: grimler.se 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:235634 Archived-At: Hi Lars, On Wed, Jun 29, 2022 at 12:47:27PM +0200, Lars Ingebrigtsen wrote: > Eli Zaretskii writes: > > > 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... > > Henrik, is this still a problem with current versions of Emacs/Android? The sanitizer still complains about it (just checked a new emacs build from master branch), but we have at least figured out a way to disable the sanitizer [1], so IMO the bug can be closed. For the record ~10 different packages out of around 2000 has triggered this file descriptor sanitizer (that I've seen so far), and in most cases it has been as unclear as for emacs what the issue is/if there actually is an issue. > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no [1] https://github.com/termux/termux-packages/blob/master/packages/emacs/disable-fdsan.patch Best regards, Henrik Grimler