GNU bug report logs - #17014
24.3; Emacsclient freezes if mutt attaches a signature

Previous Next

Package: emacs;

Reported by: walter.garcia <at> upf.edu

Date: Fri, 14 Mar 2014 17:22:01 UTC

Severity: normal

Tags: moreinfo

Found in version 24.3

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

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 17014 in the body.
You can then email your comments to 17014 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#17014; Package emacs. (Fri, 14 Mar 2014 17:22:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to walter.garcia <at> upf.edu:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 14 Mar 2014 17:22:02 GMT) Full text and rfc822 format available.

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

From: Walter Garcia-Fontes <walter.garcia <at> upf.edu>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3; Emacsclient freezes if mutt attaches a signature
Date: Fri, 14 Mar 2014 18:20:45 +0100
[Message part 1 (text/plain, inline)]
I use emacs in mutt. For some of my mails I have a hook in mutt that
attaches a signature to the mail:

send-hook bulmages-main <at> lists.berlios.de "set signature=/home/wgarcia/.signature.bulma"

I call emacs from mutt with the following command:

set editor="emacsclient -a \"\" -t"

If I have an emacs daemon running and I have an attached emacsclient
running, the emacsclient opened by mutt freezes, and it also makes 
all other emacsclient opened freeze too. If I open emacsclient but mutt
does not try to attach a signature it does not freeze. 

I attach a stacktrace that I produced the following way:

1) I opened the daemon and attached an emacsclient.
2) I opened mutt, and produced the freeze
3) I opened gdb and "add-inferior" emacsclient
4) I runned emacsclient in gdb and produced the trace.

In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7)
 of 2014-03-07 on lamiak, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11500000
System Description:	Ubuntu Trusty Tahr (development branch)

Configured using:
 `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu'
 '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib'
 '--localstatedir=/var/lib' '--infodir=/usr/share/info'
 '--mandir=/usr/share/man' '--with-pop=yes'
 '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp'
 '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes'
 '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars'
 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector
 --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall'
 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'
 'CPPFLAGS=-D_FORTIFY_SOURCE=2''

Important settings:
  value of $LC_COLLATE: en_US.UTF-8
  value of $LC_CTYPE: en_US.UTF-8
  value of $LC_MESSAGES: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Text

Minor modes in effect:
  show-paren-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-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
  line-number-mode: t
  auto-fill-function: do-auto-fill
  transient-mark-mode: t

Recent input:
<down-mouse-1> <mouse-1> <escape> x r e p o r t - e 
m <tab> <return>

Recent messages:
Warning: adict-mode defined alguns twice
Warning: adict-mode defined com twice
Warning: adict-mode defined sempre twice
Loading /home/wgarcia/.mutt.post.el (source)...
`flet' is an obsolete macro (as of 24.3); use either `cl-flet' or `cl-letf'.
Loading /home/wgarcia/.mutt.post.el (source)...done
Loading `/home/wgarcia/.mutt.post': old-style backquotes detected!
Loading iso-transl...done
Starting Emacs daemon.
When done with a buffer, type C-x #

Load-path shadows:
/usr/share/emacs/24.3/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup
/usr/share/emacs24/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode
/usr/share/emacs24/site-lisp/flim/hex-util hides /usr/share/emacs/24.3/lisp/hex-util
/usr/share/emacs24/site-lisp/flim/md4 hides /usr/share/emacs/24.3/lisp/md4
/usr/share/emacs24/site-lisp/flim/sasl hides /usr/share/emacs/24.3/lisp/net/sasl
/usr/share/emacs24/site-lisp/flim/hmac-md5 hides /usr/share/emacs/24.3/lisp/net/hmac-md5
/usr/share/emacs24/site-lisp/flim/hmac-def hides /usr/share/emacs/24.3/lisp/net/hmac-def
/usr/share/emacs24/site-lisp/flim/ntlm hides /usr/share/emacs/24.3/lisp/net/ntlm
/usr/share/emacs24/site-lisp/flim/sasl-digest hides /usr/share/emacs/24.3/lisp/net/sasl-digest
/usr/share/emacs24/site-lisp/flim/sasl-cram hides /usr/share/emacs/24.3/lisp/net/sasl-cram
/usr/share/emacs24/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/24.3/lisp/net/sasl-ntlm
/usr/share/emacs24/site-lisp/latex-cjk-thai/thai-word hides /usr/share/emacs/24.3/lisp/language/thai-word
/usr/share/emacs24/site-lisp/auctex/prv-emacs hides /usr/share/emacs/site-lisp/auctex/prv-emacs
/usr/share/emacs24/site-lisp/auctex/tex hides /usr/share/emacs/site-lisp/auctex/tex
/usr/share/emacs24/site-lisp/auctex/font-latex hides /usr/share/emacs/site-lisp/auctex/font-latex
/usr/share/emacs24/site-lisp/auctex/tex-info hides /usr/share/emacs/site-lisp/auctex/tex-info
/usr/share/emacs24/site-lisp/auctex/tex-buf hides /usr/share/emacs/site-lisp/auctex/tex-buf
/usr/share/emacs24/site-lisp/auctex/context-nl hides /usr/share/emacs/site-lisp/auctex/context-nl
/usr/share/emacs24/site-lisp/auctex/multi-prompt hides /usr/share/emacs/site-lisp/auctex/multi-prompt
/usr/share/emacs24/site-lisp/auctex/preview hides /usr/share/emacs/site-lisp/auctex/preview
/usr/share/emacs24/site-lisp/auctex/bib-cite hides /usr/share/emacs/site-lisp/auctex/bib-cite
/usr/share/emacs24/site-lisp/auctex/latex hides /usr/share/emacs/site-lisp/auctex/latex
/usr/share/emacs24/site-lisp/auctex/tex-font hides /usr/share/emacs/site-lisp/auctex/tex-font
/usr/share/emacs24/site-lisp/auctex/toolbar-x hides /usr/share/emacs/site-lisp/auctex/toolbar-x
/usr/share/emacs24/site-lisp/auctex/context hides /usr/share/emacs/site-lisp/auctex/context
/usr/share/emacs24/site-lisp/auctex/tex-style hides /usr/share/emacs/site-lisp/auctex/tex-style
/usr/share/emacs24/site-lisp/auctex/plain-tex hides /usr/share/emacs/site-lisp/auctex/plain-tex
/usr/share/emacs24/site-lisp/auctex/tex-fold hides /usr/share/emacs/site-lisp/auctex/tex-fold
/usr/share/emacs24/site-lisp/auctex/tex-jp hides /usr/share/emacs/site-lisp/auctex/tex-jp
/usr/share/emacs24/site-lisp/auctex/tex-bar hides /usr/share/emacs/site-lisp/auctex/tex-bar
/usr/share/emacs24/site-lisp/auctex/tex-mik hides /usr/share/emacs/site-lisp/auctex/tex-mik
/usr/share/emacs24/site-lisp/auctex/context-en hides /usr/share/emacs/site-lisp/auctex/context-en
/usr/share/emacs24/site-lisp/auctex/texmathp hides /usr/share/emacs/site-lisp/auctex/texmathp

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils server iso-transl jka-compr time-date paren post
cl-macs gv easymenu derived cl advice help-fns cl-lib advice-preload
auto-dictionary flyspell ispell devhelp preview-latex tex-site
auto-loads tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win
x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list
newcomment lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)

--
Walter Garcia-Fontes
[gdb-emacs.txt (text/plain, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17014; Package emacs. (Sun, 16 Mar 2014 01:18:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: walter.garcia <at> upf.edu
Cc: 17014 <at> debbugs.gnu.org
Subject: Re: bug#17014: 24.3; Emacsclient freezes if mutt attaches a signature
Date: Sat, 15 Mar 2014 21:17:00 -0400
Thanks, but I don't think there's any useful information in that backtrace.

Can you take emacsclient out of the equation?
Ie, just have mutt spawn a stand-alone, isolated Emacs instance.
Does that still hang?
Is it interruptible with ctrl-g?
If so, set debug-on-quit.
Or try and get a gdb backtrace from emacs.

What does the signature attachment hook actually do?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17014; Package emacs. (Mon, 17 Mar 2014 09:08:02 GMT) Full text and rfc822 format available.

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

From: Walter Garcia-Fontes <walter.garcia <at> upf.edu>
To: 17014 <at> debbugs.gnu.org
Subject: Re: bug#17014: 24.3; Emacsclient freezes if mutt attaches a signature
Date: Mon, 17 Mar 2014 10:07:16 +0100
Thanks for your attention:

* Glenn Morris, rgm <at> gnu.org [16/03/14 02:17]:
> Thanks, but I don't think there's any useful information in that
> backtrace.

Yes, I don't know how to produce the backtrace. If I start the emacs
daemon directly with emacsclient I can't reproduce the freeze, instead
if a deamon is already running, and I attach a client with emacsclient
I can produce the freeze 100% of the times.

> Can you take emacsclient out of the equation?
> Ie, just have mutt spawn a stand-alone, isolated Emacs instance.

As I said in this case i cannot produce the freeze.

> Does that still hang?
> Is it interruptible with ctrl-g?

Yes, it is interruptible via ctrl-g, but I have to press it twice I
don't know why

> If so, set debug-on-quit.

I've set it putting this in my emacs startup commands:

     (defun triangle-bugged (number)
       "Return sum of numbers 1 through NUMBER inclusive."
       (let ((total 0))
         (while (> number 0)
           (setq total (+ total number))
           (debug)                         ; Start debugger.
           (setq number (1= number)))      ; Error here.
         total))

But when I interrupt the frozen session nothing happens.

> Or try and get a gdb backtrace from emacs.

As I said the problem is that I don't know how to produce this
trace. I start gdb and I start there the emacs daemon, with "run
--daemon". Then I open mutt outside gdb, I produce the freeze, but
then I can't get anything from the emacs daemon being debugged in gdb.


> What does the signature attachment hook actually do?

It's just a text file, with the following two lines:

Walter Garcia-Fontes               
L'Hospitalet de Llobregat

-- 
Walter Garcia-Fontes






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17014; Package emacs. (Wed, 14 Jul 2021 15:31:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Walter Garcia-Fontes <walter.garcia <at> upf.edu>
Cc: 17014 <at> debbugs.gnu.org
Subject: Re: bug#17014: 24.3; Emacsclient freezes if mutt attaches a signature
Date: Wed, 14 Jul 2021 17:29:59 +0200
Walter Garcia-Fontes <walter.garcia <at> upf.edu> writes:

> I attach a stacktrace that I produced the following way:
>
> 1) I opened the daemon and attached an emacsclient.
> 2) I opened mutt, and produced the freeze
> 3) I opened gdb and "add-inferior" emacsclient
> 4) I runned emacsclient in gdb and produced the trace.

(I'm going through old bug reports that unfortunately got little
response at the time.)

Are you still seeing this issue in more recent versions of Emacs?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 14 Jul 2021 15:31:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17014; Package emacs. (Wed, 14 Jul 2021 16:02:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Walter Garcia-Fontes <walter.garcia <at> upf.edu>
Cc: 17014 <at> debbugs.gnu.org
Subject: Re: bug#17014: 24.3; Emacsclient freezes if mutt attaches a signature
Date: Wed, 14 Jul 2021 18:01:03 +0200
Walter Garcia-Fontes <walter.garcia <at> upf.edu> writes:

> No, I don't see this bug with current versions of emacs and mutt,

Thanks; closing this bug report, then.






bug closed, send any further explanations to 17014 <at> debbugs.gnu.org and walter.garcia <at> upf.edu Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 14 Jul 2021 16:02:02 GMT) Full text and rfc822 format available.

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

This bug report was last modified 3 years and 312 days ago.

Previous Next


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