GNU bug report logs - #26241
25.1; Re: emacsclient in 25 branch: error opening any file

Previous Next

Package: emacs;

Reported by: frederik <at> ofb.net

Date: Fri, 24 Mar 2017 17:49:01 UTC

Severity: normal

Tags: fixed, moreinfo

Merged with 26310

Found in version 25.1

Fixed in version 25.2

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26241 in the body.
You can then email your comments to 26241 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#26241; Package emacs. (Fri, 24 Mar 2017 17:49:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to frederik <at> ofb.net:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 24 Mar 2017 17:49:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: frederik <at> ofb.net
To: bug-gnu-emacs <at> gnu.org
Cc: jrm <at> ftfl.ca
Subject: 25.1; Re: emacsclient in 25 branch: error opening any file
Date: Fri, 24 Mar 2017 10:48:05 -0700
Hi,

I'm writing to know about the status of this bug:

https://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00036.html

which is affecting me as well. I get the same "Waiting for Emacs...
*ERROR*: Wrong type argument: stringp, nil" after emacs has been running
for a while.

I don't have time to fix it, but it would be nice to be notified when
I can safely install the latest version of Emacs (and if there is some
workaround). And I hope that whatever information is provided in this
report may be of help...

Thanks!



In GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.7)
 of 2017-02-07 built on arojas
Configured using:
 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
 --localstatedir=/var --with-x-toolkit=gtk3 --with-xft
 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe
 -fstack-protector-strong' CPPFLAGS=-D_FORTIFY_SOURCE=2
 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11

Important settings:
  value of $LANG: 
  locale-coding-system: utf-8-unix

Major mode: Text

Minor modes in effect:
  global-auto-revert-mode: t
  shell-dirtrack-mode: t
  savehist-mode: t
  override-global-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t

Recent messages:
Loading ess-site...done
Loading /usr/share/emacs/25.1/lisp/progmodes/cc-mode.el.gz...
uncompressing cc-mode.el.gz...done
Loading /usr/share/emacs/25.1/lisp/progmodes/cc-mode.el.gz...done
Loading /home/frederik/.emacs.d/my-compile-next-makefile.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
When done with a buffer, type C-x # [2 times]
Making completion list...
command-execute: Cannot open load file: No such file or directory, emacsbug
When done with a buffer, type C-x #

Load-path shadows:
/home/frederik/.emacs.d/elpa/ggtags-20161022.251/ggtags hides /usr/share/emacs/site-lisp/ggtags

Features:
(shadow sort mail-extr emacsbug message idna dired rfc822 mml mml-sec
epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils
term/xterm xterm ggtags etags xref project ewoc cc-mode derived cc-fonts
cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-langs
cc-bytecomp jka-compr rx edmacro kmacro autorevert filenotify ido
ess-toolbar ess-mouse mouseme thingatpt+ thingatpt browse-url ess-menu
ess-swv ess-noweb ess-noweb-font-lock-mode ess-bugs-l essd-els ess-sas-d
ess-sas-l ess-sas-a ess-sta-d ess-sta-l cc-vars cc-defs make-regexp
ess-sp6-d ess-dde ess-sp3-d ess-julia julia-mode ess-r-d ess-r-syntax
ess-r-completion ess-roxy essddr noutline outline hideshow ess-help
ess-r-package ess-s-l ess ess-inf ess-tracebug tramp tramp-compat
auth-source cl-seq gnus-util mm-util mail-prsvr password-cache
tramp-loaddefs trampver ucs-normalize shell pcomplete format-spec advice
ess-mode ess-noweb-mode ess-utils time-date ess-generics ess-custom
executable ess-compat ess-site savehist iflipb bind-key compile
easy-mmode comint ansi-color ring cl help-fns+ wid-edit help-fns server
finder-inf eieio eieio-core cl-macs info package epg-config seq byte-opt
gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs
pcase cl-lib mule-util tooltip eldoc electric uniquify ediff-hook
vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-list newcomment elisp-mode
lisp-mode prog-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame
cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian
slovak czech european ethiopic indian cyrillic chinese charscript
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote dbusbind inotify
dynamic-setting system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 314741 13644)
 (symbols 48 32291 0)
 (miscs 40 105 193)
 (strings 32 56044 12435)
 (string-bytes 1 1604987)
 (vectors 16 45714)
 (vector-slots 8 786482 3733)
 (floats 8 352 370)
 (intervals 56 305 0)
 (buffers 976 23))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26241; Package emacs. (Fri, 24 Mar 2017 18:58:01 GMT) Full text and rfc822 format available.

Message #8 received at 26241 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: frederik <at> ofb.net
Cc: 26241 <at> debbugs.gnu.org, jrm <at> ftfl.ca
Subject: Re: bug#26241: 25.1;
 Re: emacsclient in 25 branch: error opening any file
Date: Fri, 24 Mar 2017 21:56:58 +0300
> Date: Fri, 24 Mar 2017 10:48:05 -0700
> From: frederik <at> ofb.net
> Cc: jrm <at> ftfl.ca
> 
> I'm writing to know about the status of this bug:
> 
> https://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00036.html
> 
> which is affecting me as well. I get the same "Waiting for Emacs...
> *ERROR*: Wrong type argument: stringp, nil" after emacs has been running
> for a while.

Since this doesn't happen right away, there's something that gets
broken in the Emacs session.  We need to know the details: which
function signals this error, and preferably also why.  Since this
doesn't happen to others, I don't see how we can make progress without
more details about the problem, sorry.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26241; Package emacs. (Fri, 24 Mar 2017 19:25:02 GMT) Full text and rfc822 format available.

Message #11 received at 26241 <at> debbugs.gnu.org (full text, mbox):

From: frederik <at> ofb.net
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 26241 <at> debbugs.gnu.org, jrm <at> ftfl.ca
Subject: Re: bug#26241: 25.1; Re: emacsclient in 25 branch: error opening any
 file
Date: Fri, 24 Mar 2017 12:24:28 -0700
On Fri, Mar 24, 2017 at 09:56:58PM +0300, Eli Zaretskii wrote:
> > Date: Fri, 24 Mar 2017 10:48:05 -0700
> > From: frederik <at> ofb.net
> > Cc: jrm <at> ftfl.ca
> > 
> > I'm writing to know about the status of this bug:
> > 
> > https://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00036.html
> > 
> > which is affecting me as well. I get the same "Waiting for Emacs...
> > *ERROR*: Wrong type argument: stringp, nil" after emacs has been running
> > for a while.
> 
> Since this doesn't happen right away, there's something that gets
> broken in the Emacs session.  We need to know the details: which
> function signals this error, and preferably also why.  Since this
> doesn't happen to others, I don't see how we can make progress without
> more details about the problem, sorry.

You could instrument 'emacsclient' to produce a stack trace, with an
option analogous to --debug-init. It would be useful for future bugs
as well. "Wrong type argument" is better than nothing, but we agree
that it's not very useful.

Both myself and the other reporter seem to have noticed the problem
appearing in Emacs 25. Actually for me, an Arch Linux user, looking at
the dates in /var/cache/pacman/pkg I think the problem may have
occurred after emacs-25.1-4-x86_64.pkg.tar.xz (installed Feb 7) since
the previous patch level 25.1-3 was installed Dec 24 2016 and I don't
remember any crashes so long ago. But Joseph's original report is 9
months old. I have of course made changes to ~/.emacs in this time but
I have very little idea what of that code is run by emacsclient. It
seems likely that the problem stems from a change that was made to
Emacs, and we have a record of such changes, so it may be useful to
check that record.

Thanks for your reply.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26241; Package emacs. (Sat, 25 Mar 2017 00:04:02 GMT) Full text and rfc822 format available.

Message #14 received at 26241 <at> debbugs.gnu.org (full text, mbox):

From: npostavs <at> users.sourceforge.net
To: frederik <at> ofb.net
Cc: 26241 <at> debbugs.gnu.org, jrm <at> ftfl.ca, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#26241: 25.1;
 Re: emacsclient in 25 branch: error opening any file
Date: Fri, 24 Mar 2017 20:04:33 -0400
frederik <at> ofb.net writes:

> You could instrument 'emacsclient' to produce a stack trace, with an
> option analogous to --debug-init. It would be useful for future bugs
> as well. "Wrong type argument" is better than nothing, but we agree
> that it's not very useful.

Could you try setting debug-on-signal to t after you get Emacs into this
state?  You should then get a backtrace in the running Emacs.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26241; Package emacs. (Sat, 25 Mar 2017 00:27:01 GMT) Full text and rfc822 format available.

Message #17 received at 26241 <at> debbugs.gnu.org (full text, mbox):

From: frederik <at> ofb.net
To: npostavs <at> users.sourceforge.net
Cc: 26241 <at> debbugs.gnu.org, jrm <at> ftfl.ca, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#26241: 25.1; Re: emacsclient in 25 branch: error opening any
 file
Date: Fri, 24 Mar 2017 17:26:10 -0700
On Fri, Mar 24, 2017 at 08:04:33PM -0400, npostavs <at> users.sourceforge.net wrote:
> frederik <at> ofb.net writes:
> 
> > You could instrument 'emacsclient' to produce a stack trace, with an
> > option analogous to --debug-init. It would be useful for future bugs
> > as well. "Wrong type argument" is better than nothing, but we agree
> > that it's not very useful.
> 
> Could you try setting debug-on-signal to t after you get Emacs into this
> state?  You should then get a backtrace in the running Emacs.

I'm not familiar with that variable. Could I also set it in ~/.emacs?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26241; Package emacs. (Sat, 25 Mar 2017 00:51:02 GMT) Full text and rfc822 format available.

Message #20 received at 26241 <at> debbugs.gnu.org (full text, mbox):

From: npostavs <at> users.sourceforge.net
To: frederik <at> ofb.net
Cc: 26241 <at> debbugs.gnu.org, jrm <at> ftfl.ca, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#26241: 25.1;
 Re: emacsclient in 25 branch: error opening any file
Date: Fri, 24 Mar 2017 20:51:40 -0400
frederik <at> ofb.net writes:

> On Fri, Mar 24, 2017 at 08:04:33PM -0400, npostavs <at> users.sourceforge.net wrote:
>> frederik <at> ofb.net writes:
>> 
>> Could you try setting debug-on-signal to t after you get Emacs into this
>> state?  You should then get a backtrace in the running Emacs.
>
> I'm not familiar with that variable. Could I also set it in ~/.emacs?

No.  I mean, you could, but then you would be bombarded with spurious
backtraces.  It's better only to set it once you are about to trigger
the error.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26241; Package emacs. (Sun, 16 Apr 2017 03:08:02 GMT) Full text and rfc822 format available.

Message #23 received at 26241 <at> debbugs.gnu.org (full text, mbox):

From: npostavs <at> users.sourceforge.net
To: frederik <at> ofb.net
Cc: 26241 <at> debbugs.gnu.org, jrm <at> ftfl.ca
Subject: Re: bug#26241: 25.1;
 Re: emacsclient in 25 branch: error opening any file
Date: Sat, 15 Apr 2017 23:08:59 -0400
forcemerge 26310 26241
quit

frederik <at> ofb.net writes:

> Hi,
>
> I'm writing to know about the status of this bug:
>
> https://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00036.html
>
> which is affecting me as well. I get the same "Waiting for Emacs...
> *ERROR*: Wrong type argument: stringp, nil" after emacs has been running
> for a while.
>
> I don't have time to fix it, but it would be nice to be notified when
> I can safely install the latest version of Emacs (and if there is some
> workaround). And I hope that whatever information is provided in this
> report may be of help...

I think this is probably the same as #26310, and is fixed in 25.2 (rc2).
The patch is at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=21091#30.





Forcibly Merged 26241 26310. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Sun, 16 Apr 2017 03:08:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#26241; Package emacs. (Sun, 16 Apr 2017 03:26:02 GMT) Full text and rfc822 format available.

Message #28 received at 26241 <at> debbugs.gnu.org (full text, mbox):

From: frederik <at> ofb.net
To: npostavs <at> users.sourceforge.net
Cc: 26241 <at> debbugs.gnu.org, jrm <at> ftfl.ca
Subject: Re: bug#26241: 25.1; Re: emacsclient in 25 branch: error opening any
 file
Date: Sat, 15 Apr 2017 20:25:32 -0700
Hey it's great if you found the bug ... but if it's as random as a
problem with isearch, then I'd definitely want to reiterate my
suggestion that emacsclient should have a "--debug" option so that
these can be easily investigated in the future.

I'll update to 25.2 when it appears in Arch.

Thanks,

Frederick

On Sat, Apr 15, 2017 at 11:08:59PM -0400, npostavs <at> users.sourceforge.net wrote:
> forcemerge 26310 26241
> quit
> 
> frederik <at> ofb.net writes:
> 
> > Hi,
> >
> > I'm writing to know about the status of this bug:
> >
> > https://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00036.html
> >
> > which is affecting me as well. I get the same "Waiting for Emacs...
> > *ERROR*: Wrong type argument: stringp, nil" after emacs has been running
> > for a while.
> >
> > I don't have time to fix it, but it would be nice to be notified when
> > I can safely install the latest version of Emacs (and if there is some
> > workaround). And I hope that whatever information is provided in this
> > report may be of help...
> 
> I think this is probably the same as #26310, and is fixed in 25.2 (rc2).
> The patch is at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=21091#30.
> 




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 14 May 2017 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 342 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.