From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tim Harper Newsgroups: gmane.emacs.bugs Subject: bug#31848: 26.1; M-x server-start crashes if extraneous server file exists Date: Thu, 21 Jun 2018 16:24:50 -0600 Message-ID: References: <20180617110029.GA45782@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e34747056f2e62c2" X-Trace: blaine.gmane.org 1529619850 6206 195.159.176.226 (21 Jun 2018 22:24:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 21 Jun 2018 22:24:10 +0000 (UTC) Cc: 31848@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 22 00:24:06 2018 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 1fW7zp-0001Qp-LT for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Jun 2018 00:24:05 +0200 Original-Received: from localhost ([::1]:57833 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fW81u-0007Gj-Sp for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Jun 2018 18:26:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fW81m-0007GY-6a for bug-gnu-emacs@gnu.org; Thu, 21 Jun 2018 18:26:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fW81i-0003dg-3b for bug-gnu-emacs@gnu.org; Thu, 21 Jun 2018 18:26:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51581) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fW81h-0003dH-VN for bug-gnu-emacs@gnu.org; Thu, 21 Jun 2018 18:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fW81h-0001r0-Lj for bug-gnu-emacs@gnu.org; Thu, 21 Jun 2018 18:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tim Harper Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Jun 2018 22:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31848 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31848-submit@debbugs.gnu.org id=B31848.15296199107066 (code B ref 31848); Thu, 21 Jun 2018 22:26:01 +0000 Original-Received: (at 31848) by debbugs.gnu.org; 21 Jun 2018 22:25:10 +0000 Original-Received: from localhost ([127.0.0.1]:59478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fW80s-0001pu-8w for submit@debbugs.gnu.org; Thu, 21 Jun 2018 18:25:10 -0400 Original-Received: from mail-wr0-f171.google.com ([209.85.128.171]:43610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fW80p-0001pg-Es for 31848@debbugs.gnu.org; Thu, 21 Jun 2018 18:25:07 -0400 Original-Received: by mail-wr0-f171.google.com with SMTP id d2-v6so4699160wrm.10 for <31848@debbugs.gnu.org>; Thu, 21 Jun 2018 15:25:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bhkXAgBQB4bUs9IMamx8hK6Gan7hZIW9FpmOXmLp7H8=; b=KaojJewnBpJ8KxSLR3dqWHsujQyCEfmdm3DKwVKvaMF7D+YP1xb0LXe4fua2ySeQOo uvDVntW4ekVoqKfCkp9A07gPJLAAQJuN/rD11pmCjRWr/2rM4IRYjAPRsa0P3kdb2vsP a2XweIWw6VAwaLaZWRsNoI79fZGItKdaOKSrnO9CLRH0m9UyywWKFua5G23H6DUrFbzZ siChNh4gd+XZ74h+3Ux1Ae/FmTIkk5tXlO/IAYf8FR58tjHDlzvlN3+1IRYJ789LRZSG CxQ35Vu3g9WO0RkokD2Zx3D2Cey5/TBFBjcfVtskb5fZDSRdxZXUg/CE4PbDpNZ1rqku j3SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bhkXAgBQB4bUs9IMamx8hK6Gan7hZIW9FpmOXmLp7H8=; b=mqOPUfdBRCV0umOoKgajcxOwUNPQV09FsUFCO63RZqI/kzzHFrmXo+ZgnJGnapTP2L w2N3BdIH8XkSG02GiHVZIgSpV3YcG3Mkp45eJOS5Pvge491XgHP6tl4QlmNU4h+A+2le fnzYoPP2W1uZj5oBtKhK/a3SBRlmNNsNBlPZFMQ1BibzfBko9fRnnrA6qFWIoGth6nhK e4QGJWcZo/N3IX8H09P9fkAv/fTgBeTJsMGl8oklY1wmwOq3t8pGhzl+duCGGmdtDzA4 7L8KDwhQdZKL0n3eNKnQoj3W9B9hReHP3wi8agYCBPqth/OTcyWmZGIojcDXBbtwlfW1 VYRw== X-Gm-Message-State: APt69E24fVXXf5bp8m4a7Pxqus3B3azliRb+T/MslIcsnccIy6G40ntc 2lEq1xqSvV99phqHkdZhAtTi5a+HImz+2m46guw= X-Google-Smtp-Source: ADUXVKK7mgbLtj55GnDy+x7w3e/x1H5iQK1bmfO8FLAkL+iLVkoE+L2mz6ZUU3Wm9vhSR8eSg4BtOczpvUsTxV/GKVo= X-Received: by 2002:adf:96c4:: with SMTP id u62-v6mr23901223wrb.204.1529619901792; Thu, 21 Jun 2018 15:25:01 -0700 (PDT) In-Reply-To: <20180617110029.GA45782@breton.holly.idiocy.org> 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:147715 Archived-At: --000000000000e34747056f2e62c2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It is probably an OS X only crash. Emacs won't write the file unless if server-use-tcp is enabled. Customize it, enable server-use-tcp (set to true), save for future sessions. Restart emacs. Launch server. If the folder doesn't exist, Emacs will create it and assign 700 perms. I've reproduced with a vanilla configuration of Emacs to rule out the possibility it is a conflict with some other extension I've installed. Tim On Sun, Jun 17, 2018 at 5:00 AM Alan Third wrote: > On Fri, Jun 15, 2018 at 11:15:05AM -0600, Tim Harper wrote: > > Emacs on OS X crashes when stale server auth file is present. To > reproduce: > > > > 1) Start Emacs 26.1 > > 2) Run server-start > > 3) Copy the file `server` in the {server-auth-dir} folder to `server-2` > > 4) Quit Emacs > > 5) Rename `server-2` file to `server` > > 6) Relaunch Emacs > > 7) Run server-start > > 8) Observe crash > > I=E2=80=99m probably being daft, but I can=E2=80=99t find any =E2=80=98se= rver=E2=80=99 file when I=E2=80=99m > running the emacs server. > > The directory listed in server-auth-dir doesn=E2=80=99t even exist. > -- > Alan Third > --000000000000e34747056f2e62c2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It is probably an OS X only crash.

Emacs won't write the file unless if server-use-tcp is enabled. = Customize it, enable server-use-tcp (set to true), save for future sessions= . Restart emacs. Launch server. If the folder doesn't exist, Emacs will= create it and assign 700 perms.

I've reproduced wi= th a vanilla configuration of Emacs to rule out the possibility it is a con= flict with some other extension I've installed.

Tim<= /div>

On Sun, Jun 17, 2= 018 at 5:00 AM Alan Third <alan@idiocy.org> wrote:
On Fri, Jun 15, 2018 at 11:15:05AM -0600, Tim Harper wrote:
> Emacs on OS X crashes when stale server auth file is present. To repro= duce:
>
> 1) Start Emacs 26.1
> 2) Run server-start
> 3) Copy the file `server` in the {server-auth-dir} folder to `server-2= `
> 4) Quit Emacs
> 5) Rename `server-2` file to `server`
> 6) Relaunch Emacs
> 7) Run server-start
> 8) Observe crash

I=E2=80=99m probably being daft, but I can=E2=80=99t find any =E2=80=98serv= er=E2=80=99 file when I=E2=80=99m
running the emacs server.

The directory listed in server-auth-dir doesn=E2=80=99t even exist.
--
Alan Third
--000000000000e34747056f2e62c2--