From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Baylis Shanks Newsgroups: gmane.emacs.bugs Subject: bug#28542: Temporary failure in name resolution while quitting emacs Date: Thu, 21 Sep 2017 17:13:59 +0000 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_BN6PR10MB17006C4999F9A9170DE674F992660BN6PR10MB1700namp_" X-Trace: blaine.gmane.org 1506014531 11323 195.159.176.226 (21 Sep 2017 17:22:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 21 Sep 2017 17:22:11 +0000 (UTC) To: 28542@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 21 19:22:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dv5As-0002eW-DZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Sep 2017 19:22:06 +0200 Original-Received: from localhost ([::1]:54838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dv5Az-0008OE-NT for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Sep 2017 13:22:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dv5As-0008Nt-Im for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2017 13:22:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dv5Ap-0001PP-22 for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2017 13:22:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43151) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dv5Ao-0001OM-Pg for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2017 13:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dv5Ao-0003Bf-Hs for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2017 13:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Baylis Shanks Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Sep 2017 17:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28542 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.150601448112190 (code B ref -1); Thu, 21 Sep 2017 17:22:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Sep 2017 17:21:21 +0000 Original-Received: from localhost ([127.0.0.1]:51830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dv5A9-0003AY-2v for submit@debbugs.gnu.org; Thu, 21 Sep 2017 13:21:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dv53J-0002xt-5K for submit@debbugs.gnu.org; Thu, 21 Sep 2017 13:14:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dv53C-0001th-A0 for submit@debbugs.gnu.org; Thu, 21 Sep 2017 13:14:11 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57478) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dv53C-0001ta-5v for submit@debbugs.gnu.org; Thu, 21 Sep 2017 13:14:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dv53A-0004ft-Vc for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2017 13:14:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dv536-0001rv-KK for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2017 13:14:08 -0400 Original-Received: from mail-oln040092009058.outbound.protection.outlook.com ([40.92.9.58]:45157 helo=NAM04-BN3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dv536-0001pG-8h for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2017 13:14:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=W91EQONFemjyGw+dx28tbR3FpM136f56AMIE9XrP1Wk=; b=uTpinUwUJp+uMBhGGe88D6b5Mge3P5QlxHQrNIxFPgy3XIP6g3qc98yzlxcEsB7CM/eqIXbXIjV7PX/Ek7HGXBqIF9x3MOKIv7Y5682z7yIjYpl+LYyCjNvu+2bIq64sinEPSFeHfPPSVlDjhP53DRR5tsfaTLIdJScBOuenqUHrdFHKVuHnmDZan6uwUrL8p2tYv6gTehkNmqPg9xEHvP4TJHVfyeflhQbcOH88CWknTgPVS6x8grM+5fDbst3aUSHOuuHYgNnNoY2JoUpTP4ePAmRDeSdTPHOpAnPFUhOwfDK+vzcc2xY0O3XlFf767/8sDAY/A1xLEvtowZJhkg== Original-Received: from SN1NAM04FT027.eop-NAM04.prod.protection.outlook.com (10.152.88.57) by SN1NAM04HT125.eop-NAM04.prod.protection.outlook.com (10.152.89.194) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.35.14; Thu, 21 Sep 2017 17:14:00 +0000 Original-Received: from BN6PR10MB1700.namprd10.prod.outlook.com (10.152.88.60) by SN1NAM04FT027.mail.protection.outlook.com (10.152.88.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.35.14 via Frontend Transport; Thu, 21 Sep 2017 17:14:00 +0000 Original-Received: from BN6PR10MB1700.namprd10.prod.outlook.com ([10.172.20.18]) by BN6PR10MB1700.namprd10.prod.outlook.com ([10.172.20.18]) with mapi id 15.20.0077.011; Thu, 21 Sep 2017 17:14:00 +0000 Thread-Topic: Temporary failure in name resolution while quitting emacs Thread-Index: AQHTMvzO8L4pZHBVFE6FqXSDGBUJjQ== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gnu.org; dkim=none (message not signed) header.d=none; gnu.org; dmarc=none action=none header.from=hotmail.com; x-incomingtopheadermarker: OriginalChecksum:5B6E2C10DB86385CEC2F2095B15FF690373CA5047EA7DD34F0F38963EDB1F735; UpperCasedChecksum:16DA1772A2FD20373A0BE52A09CEAA11D59D396D6A2D6B84832FAF91636BAD33; SizeAsReceived:6870; Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [QKDIVMwRSztFIrrDO2Xn5RHAwjJA4vd3] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; SN1NAM04HT125; 6:HlJcunP7Bmg0iKsq1yQeQhx50mAvAl9S2kLba8thnO9TSTWqPB0QdGeuLQPOqYei3e2EQEJurXB3fzCw3Y8xXUsSFVx60MUw1RuH8BpbfR6P+eMLwwoXhcTNBF+6pF/evA7OKmNvnzP+XurF1HY++JmkCHSzZjK2w/MFtHCKjfuEZNpwcpUagLYvSICzfvJhpWsxehXxYDVTwMDOr4coq9HQXlCu0dRMoFPt9LiPYVRWQqd5Y8Sv1fO9sADaY4sd9z1BtpxzfDQZ2yz+NXYFkK7q2LYQ97GUUXBOcVRa6Fs1feLff4ZXKzf4Zujvl9ifM2SqtdzMafmuawThcY9pSA==; 5:7pDtnOoIYnT90SfWVQQZqNRbV5v2cqf/P2YMslYb9rknFDwj7G+pDb0mmKAeB3stsZHmj+ttSjJr2oiqX5/p87OoMUdbLdrGQfeGsnV9hzphpZk5UoCMQSh+CwxAcHmAYjrc1VnfqS2CcS8K3kL+4A==; 24:AIZa9l7tRIKaH4C+Nb0+eXtbf8SwW+oMYb0GmmVueSuHccW1ngWXMHsfqqDetGgUkYu2UczHHCVtg8VJe22EH5PUq6y8EbthS1Oq0Ztuj98=; 7:FF+hA3nUtRWoc0SrFc4q9uRVfxW3oolLtuyN+QF6K47E8dZXP9smm+hX2a6tYfUx1hbyadWM6XdmTnlHX2pjsR56nMxiPFZI387frUuaD+oubNYMUSbVpT4451xjnB41bPZDtRqwdnsgvUYvUl8QQU0CO3ry8ZvP8nZ0hJ6Q5Qz1k0uSHIFHvM3bNx2S5SdKyETcKUhaBcb9Omof3LhTYaDs6l4Dpi9F8 x-incomingheadercount: 44 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 2d15b7ff-c0d4-4705-5f15-08d50114269d x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1601125374)(1603101448)(1701031045)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:SN1NAM04HT125; x-ms-traffictypediagnostic: SN1NAM04HT125: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(444000031); SRVR:SN1NAM04HT125; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN1NAM04HT125; x-forefront-prvs: 04371797A5 x-forefront-antispam-report: SFV:NSPM; SFS:(7070007)(98901004); DIR:OUT; SFP:1901; SCL:1; SRVR:SN1NAM04HT125; H:BN6PR10MB1700.namprd10.prod.outlook.com; FPR:; SPF:None; LANG:; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Sep 2017 17:13:59.7552 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1NAM04HT125 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Thu, 21 Sep 2017 13:21:19 -0400 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: 208.118.235.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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:137215 Archived-At: --_000_BN6PR10MB17006C4999F9A9170DE674F992660BN6PR10MB1700namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I had an http address open in a buffer (i think i closed that buffer), and = then i disconnected from the internet and then attempted to quit emacs. Ema= cs would not quit; when i attempted to quit it, a message involving 'open-n= etwork-stream' and 'temporary failure in name resolution' would be displaye= d in *messages* and then nothing would happen. Manually opening an elisp buffer and using setq to remove save-place-kill-e= macs-hook from kill-emacs-hook solved the problem. I think there are really two bugs here; 1) whatever save-place-kill-emacs-hook is doing should be robust to 'tempor= ary failure in name resolution' errors 2) more importantly, if there is an error in something called from kill-ema= cs-hook, emacs should not just return to normal functioning (without quitti= ng), but rather should give the user a choice of whether to continue to qui= t or not (if continue to quit is chosen, the remaining items in kill-emacs-= hook should be called). It's really frustrating to a user when the user can= not figure out how to quit a program. --_000_BN6PR10MB17006C4999F9A9170DE674F992660BN6PR10MB1700namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

I had an http address open in a buffer (i think i closed that buffer), a= nd then i disconnected from the internet and then attempted to quit emacs. = Emacs would not quit; when i attempted to quit it, a message involving 'ope= n-network-stream' and 'temporary failure in name resolution' would be displayed in *messages* and then= nothing would happen.


Manually opening an elisp buffer and using setq to remove save-place-kill-emacs-hook from kill-emacs-hook solved the problem= .


I think there are really two bugs here;


1) whatever save-place-kill-emacs-hook is doing should be r= obust to 'temporary failure in name resolution' errors


2) more importantly, if there is an error in something called from kill-emacs-hook, emacs should not just return to normal functioning= (without quitting), but rather should give the user a choice of whether to= continue to quit or not (if continue to quit is chosen, the remaining items in kill-emacs-hook sho= uld be called). It's really frustrating to a user when the user cannot figu= re out how to quit a program.


--_000_BN6PR10MB17006C4999F9A9170DE674F992660BN6PR10MB1700namp_--