From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#43716: 28.0.50; Error with emacsclient : Date: Wed, 30 Sep 2020 16:50:05 +0200 Message-ID: <87zh5748v6.fsf@gnus.org> References: <874knfeofw.fsf@gnu.org> <87o8ln76y0.fsf@gnus.org> <87r1qjv01q.fsf@gnu.org> <87h7rf5pf9.fsf@gnus.org> <87r1qje3rf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3807"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 43716@debbugs.gnu.org To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 30 16:56:19 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 1kNdWk-0000qp-Oo for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Sep 2020 16:56:18 +0200 Original-Received: from localhost ([::1]:57982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNdWj-0004Rg-92 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Sep 2020 10:56:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNdRe-0007lN-9z for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2020 10:51:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49201) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNdRe-0003w3-18 for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2020 10:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kNdRd-0006bV-VE for bug-gnu-emacs@gnu.org; Wed, 30 Sep 2020 10:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Sep 2020 14:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43716 X-GNU-PR-Package: emacs Original-Received: via spool by 43716-submit@debbugs.gnu.org id=B43716.160147742125322 (code B ref 43716); Wed, 30 Sep 2020 14:51:01 +0000 Original-Received: (at 43716) by debbugs.gnu.org; 30 Sep 2020 14:50:21 +0000 Original-Received: from localhost ([127.0.0.1]:60739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNdQz-0006aM-AW for submit@debbugs.gnu.org; Wed, 30 Sep 2020 10:50:21 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:46076) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNdQx-0006a7-2p for 43716@debbugs.gnu.org; Wed, 30 Sep 2020 10:50:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=v/MY84vY1KrjmkIs35DsYrQruUs8igNHJG2jTrHSor0=; b=R2X1DEyw9NIrZ1kiUFE3bqcySi 1oBA6fT1kTtk6u5E6qKYKkbE5dmCJrfZgNHAMs05Mi9515hetjeGez2g9Skmy97Uv7wuf3QNE2ozf KPwSo/oIeadSedwF7BBECxnlPr38AjXem7U9ZUp/3B4eu6b1DnDT0troVXZ+H2ucD9nE=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNdQk-0002ZJ-II; Wed, 30 Sep 2020 16:50:12 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEVKUFNnaWqbnJx9 gIBCPjwUDwstKCTX19f////taW20AAAAAWJLR0QIht6VegAAAAd0SU1FB+QJHg4XI1GtaQcAAAF+ SURBVDjLjZI9b4MwEIZt4tL1DqR0rQ+pzEGVuhIJMZOq9pxI4L1Z/Pd7OGmCgag9IXP2o/e+bCEW huKBXYHkP0j+JALyDkagGWwICso27wlVRIXWxIDPRrCjnDaaQaar6g4EohSSd4hhGdeQRgJiyDFP nuhCQ4Kvyb/LXZjC+tIHPFDgAxPmYvbDn1szsQCsc8fKk2hdDGzfcC7PydoZqHl4GQEINUyBdXyc V8SDbSLQ1zmNplFFwPYyK0eQxaFcL5C890S7WOFqmZd+JEUMeokVBUCgpuXWXFJ5Zg1pUNMGG5lR uXUvC1AzOJvj/lwgRCOpuahv+8mCJcj04blkINphptCH0nMboKaAB5tvuzARiBSNcs3Qoa4w6o+B c7xN+TJV8O4gbNQewU1qugF74u6GFWA6lUYCc7vmOBCDX70dZmByEDFhMb26HabTcjm4urgnFSnM YLqLGycJD86sGD+fRUF/gUX0G8jhaT2UJxjWQPdmvrZr4MCBXpfgB4HqAmJTHKNUAAAAJXRFWHRk YXRlOmNyZWF0ZQAyMDIwLTA5LTMwVDE0OjIzOjM0KzAwOjAwFWgKeQAAACV0RVh0ZGF0ZTptb2Rp ZnkAMjAyMC0wOS0zMFQxNDoyMzozNCswMDowMGQ1ssUAAAAASUVORK5CYII= X-Now-Playing: Blaine L. Reininger's _Night Air 2_: "Pere Lachaase" In-Reply-To: <87r1qje3rf.fsf@gnu.org> (Tassilo Horn's message of "Wed, 30 Sep 2020 16:30:12 +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:189355 Archived-At: Tassilo Horn writes: > I found it. :-) > > lib-src/emacsclient.c > 2095 fprintf (stderr, "*ERROR*: %s", str); Ah! So the Emacs server reports it back to the client as an error. No wonder there's no backtrace here. :-/ What about the following patch -- if that's the correct condition-case that's catching all this, then it should give you a backtrace in the server Emacs after reloading server.el. diff --git a/lisp/server.el b/lisp/server.el index a660deab8e..bdeed6bb00 100644 --- a/lisp/server.el +++ b/lisp/server.el @@ -1069,7 +1069,7 @@ server-process-filter (when prev (setq string (concat prev string)) (process-put proc 'previous-string nil))) - (condition-case err + (condition-case-unless-debug err (progn (server-add-client proc) ;; Send our pid This is like the gazillionth time I've wanted a way to say (just when debugging stuff like this) "there should be a way to disable all condition case constructs"... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no