From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.devel Subject: Re: emacsclient not working on RHEL 6.8 (non-sudo) [master branch] Date: Wed, 5 Dec 2018 12:36:04 -0500 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d46691057c49d10c" X-Trace: blaine.gmane.org 1544031267 7058 195.159.176.226 (5 Dec 2018 17:34:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2018 17:34:27 +0000 (UTC) To: Emacs developers , Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 05 18:34:22 2018 Return-path: Envelope-to: ged-emacs-devel@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 1gUb42-0001je-Lq for ged-emacs-devel@m.gmane.org; Wed, 05 Dec 2018 18:34:22 +0100 Original-Received: from localhost ([::1]:35929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUb69-0002bC-5t for ged-emacs-devel@m.gmane.org; Wed, 05 Dec 2018 12:36:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUb5y-0002aS-Ck for emacs-devel@gnu.org; Wed, 05 Dec 2018 12:36:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gUb5x-0006uU-0G for emacs-devel@gnu.org; Wed, 05 Dec 2018 12:36:22 -0500 Original-Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]:43494) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gUb5w-0006tA-Ad for emacs-devel@gnu.org; Wed, 05 Dec 2018 12:36:20 -0500 Original-Received: by mail-lj1-x236.google.com with SMTP id 83-v6so19102641ljf.10 for ; Wed, 05 Dec 2018 09:36:20 -0800 (PST) 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; bh=EexgnQqQAer4aqtZzvxU3DCzTznjlrauwuQJRBNh8NQ=; b=dJh9IZbGNwRXQPxS8WRqsoAyhSh65a4I/cbnDm3klLZt78agITObK1snfcFYFAz2X2 iDud6oBp9KTR6ed78bLu0V3NKK+laHx547n0abvUDCv+lJj7Nrr+u9HTKyR5astWOo2+ HQYIK04PGQq6OyM1YioB2zcmBy2PBUPK/easXp733wDcMvngLT2UyLZBpHfdtcHHoRAV KlERcZkt+gp6oLwCe6MEzyBg9wl9lfU/4LHcmewz98ikZWMkDKsZtSmVVrOfkLnJURfc vBkT/g1WcCTXdEZRzk7JZdPhXWsRNo/i6AxWYpEFzQfUIXVuhhF8U71dZp8Pp+Vzvcp4 s6Dw== 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; bh=EexgnQqQAer4aqtZzvxU3DCzTznjlrauwuQJRBNh8NQ=; b=qqaOBUwEoLJC6gBHVheUubl4rMZ95n1n43eFvuaAFIYn0Z2h3wjLZXRxWU8a7iWIO1 NiMIOveUQ7Z+U2giYETKbQ3ThMdi/i2yEQ7CvkEHhb8vHMh17o6IpP7+hCPyydxmqxZv cfRpyGU+mC7WRF2OQTkVDlfIthdr6CVblyI1SGLVqp1OErBxRNDmseT30VgjOmUwtqMs cxKYYlqqHH8ea/zfDnnAlJA3Y2tHdYZp+FH0xd/Esoc22hxTOBqvNFYrtE0INRVXwAy2 UDlXqCoDKcDNjoNkDWuloW0lqL9GU6ibYlYuUaAUMODz11pgyQ5LT2DTDxW5CfP+2sVg +H8w== X-Gm-Message-State: AA+aEWYbMytDgFI3r1sKARJsv1paGKcbVXDbyDPkqGtcXhlAJP3aF/K2 PSxRxMqvrGnqbcc2+bg5W1b/k4mNeruBlWpY/oHrCg== X-Google-Smtp-Source: AFSGD/XwuSynZ1Nfd30C/IZ1YIaJrYLW5FTZoA+WeXY02edUZcpEOyGBF3gvL75PCb9yCC8ta/h+GJIojddHzmJ+Ns0= X-Received: by 2002:a2e:5d12:: with SMTP id r18-v6mr17900495ljb.89.1544031378366; Wed, 05 Dec 2018 09:36:18 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::236 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:231634 Archived-At: --000000000000d46691057c49d10c Content-Type: text/plain; charset="UTF-8" Some more information .. Earlier "emacsclient -c&" used to work. Now doing that auto-suspends that process and on doing fg, I get "broken pipe". But "emacsclient -c" seems to be working (without that &). But then I need to block a new terminal for each new emacsclient invocation (with or without -c) .. Also, I fixed a regression in one of the 3rd party Elisp packages that got updated in last month. After that, instead of "broken pipe" error, I now see "*ERROR*: Assertion failed: (eq (match-end 0) (length string))" That error is originating from servel.el: ===== (condition-case err (progn (server-add-client proc) ;; Send our pid (server-send-string proc (concat "-emacs-pid " (number-to-string (emacs-pid)) "\n")) (if (not (string-match "\n" string)) ;; Save for later any partial line that remains. (when (> (length string) 0) (process-put proc 'previous-string string)) ;; In earlier versions of server.el (where we used an `emacsserver' ;; process), there could be multiple lines. Nowadays this is not ;; supported any more. (cl-assert (eq (match-end 0) (length string))) ===== I get that assertion error if I do "emacsclient -c&". But if I do just "emacsclient -c", a new Emacsclient frame launches fine. --000000000000d46691057c49d10c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Some more information ..

Earlier "emacsclient -c&" used to work. Now doing that auto-s= uspends that process and on doing fg, I get "broken pipe".

But "emacsclient -c" seems to be working (without that &). Bu= t then I need to block a new terminal for each new emacsclient invocation (= with or without -c) ..

Also, I fixed a regression in one of the 3rd party Elisp packages that got = updated in last month.

After that, instead of "broken pipe" error, I now see "*ERRO= R*: Assertion failed: (eq (match-end 0) (length string))"

That error is originating from servel.el:

=3D=3D=3D=3D=3D
=C2=A0 (condition-case err
=C2=A0 =C2=A0 =C2=A0 (progn
(server-add-client proc)
;; Send our pid
(server-send-string proc (concat "-emacs-pid "
(number-to-string (emacs-pid)) "\n"))
(if (not (string-match "\n" string))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; Save for later any partial lin= e that remains.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (when (> (length string) 0) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (process-put proc 'pre= vious-string string))

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; In earlier versions of server.el (whe= re we used an `emacsserver'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; process), there could be multiple lin= es.=C2=A0 Nowadays this is not
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; supported any more.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (cl-assert (eq (match-end 0) (length str= ing)))
=3D=3D=3D=3D=3D

I get that assertion error if I do "emacsclient -c&". But if = I do just "emacsclient -c", a new Emacsclient frame launches fine= .
--000000000000d46691057c49d10c--