From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.bugs Subject: bug#23769: 25.0.95; Mode Line breakage in vc-git Date: Tue, 14 Jun 2016 12:16:19 +0100 Message-ID: <87a8ioyq9o.fsf@russet.org.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1465903342 8252 80.91.229.3 (14 Jun 2016 11:22:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jun 2016 11:22:22 +0000 (UTC) To: 23769@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 14 13:22:10 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bCmPi-0007Sa-CC for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Jun 2016 13:21:46 +0200 Original-Received: from localhost ([::1]:34284 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCmPh-0008KH-8b for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Jun 2016 07:21:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCmLC-0004FW-DE for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2016 07:17:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCmL8-0006ng-5Z for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2016 07:17:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55537) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCmL8-0006nc-22 for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2016 07:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bCmL7-00028F-VI for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2016 07:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: phillip.lord@russet.org.uk (Phillip Lord) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Jun 2016 11:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23769 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.14659029978157 (code B ref -1); Tue, 14 Jun 2016 11:17:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Jun 2016 11:16:37 +0000 Original-Received: from localhost ([127.0.0.1]:39641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCmKi-00027V-PN for submit@debbugs.gnu.org; Tue, 14 Jun 2016 07:16:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58375) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bCmKg-00027J-Nk for submit@debbugs.gnu.org; Tue, 14 Jun 2016 07:16:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCmKa-0006kB-Ff for submit@debbugs.gnu.org; Tue, 14 Jun 2016 07:16:29 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51494) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCmKa-0006k7-CQ for submit@debbugs.gnu.org; Tue, 14 Jun 2016 07:16:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCmKZ-0003nb-50 for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2016 07:16:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCmKU-0006jt-3t for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2016 07:16:27 -0400 Original-Received: from cloud103.planethippo.com ([31.216.48.48]:57622) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCmKT-0006jm-PN for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2016 07:16:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=russet.org.uk; s=default; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From; bh=scZvdAQw1Ary1qaCQOm1yr4PPkFGN8nkXENy9D9TxaQ=; b=KailEcCD7 X84TyFsm4VGvfoHO50kqu3X6l0F7smv0FJ1zPLbJzEakZcYw74WLA7e7tmtWYTn8p0JXZsTpLln/d EGs3rxYvr86vSndclB1x9yvO05whJt9gUC6RNDzqTIebljYtuVU/JUAcxc5dWzWZkSGJ5azu7fh1Q EpWjjVtZYDDhn3Gm65nCUU9hQMCkbQXddD93Xy4togpO6RNl0wFlhBavvFqklT4i5UdFeSy7KcKZP MJHXwbnhwToG/EMhsc+IpQmu91967w2BaqTdJ30RUUbq948sKlGEXryL9tIeWIAtLvvNvVEcOXiHf NdlXS9RTR5hZ0sGoczBdRGpSA==; Original-Received: from janus-nat-128-240-225-60.ncl.ac.uk ([128.240.225.60]:33357 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.86_1) (envelope-from ) id 1bCmKR-004NZZ-N2 for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2016 12:16:19 +0100 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud103.planethippo.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - russet.org.uk X-Get-Message-Sender-Via: cloud103.planethippo.com: authenticated_id: phillip.lord@russet.org.uk X-Authenticated-Sender: cloud103.planethippo.com: phillip.lord@russet.org.uk X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:119537 Archived-At: I am seeing a recurrent problem with vc, on Emacs-25. I am running emacs via cask, which is running a test set. The error looks like this: vc-call-backend(Git mode-line-string "/home/phillord/emacs/lentic/de vc-mode-line("/home/phillord/emacs/lentic/dev-resources/chunk-commen vc-refresh-state() run-hooks(find-file-hook) after-find-file(nil t) find-file-noselect-1(# "~/emacs/lentic/dev find-file-noselect("/home/phillord/emacs/lentic/dev-resources/chunk- (setq this (find-file-noselect filename)) (set-buffer (setq this (find-file-noselect filename))) (save-current-buffer (set-buffer (setq this (find-file-noselect file Initially, I only saw it when using Emacs in my git commit-hook -- the same "make" command in the shell caused no problems. However, it is freely reproducible by launching with "GIT_DIR=.git make -k" which suggests this is why it is failing during the git commit. I've tried "instrumenting" (i.e. putting lots of logging) into vc. The immediate cause of the error appears to be in vc-git--call when it runs the git command "symbolic-ref". vc-git--call: about to apply: (git nil (t nil) nil symbolic-ref (HEAD)) vc-git--call: return 128 If GIT_DIR is not set this has a zero return value. I haven't worked out yet, how to find what the error is (128 is "any other error").