GNU bug report logs -
#11403
24.0.96; Emacs crashes when ViewMail downloads IMAP messages
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11403 in the body.
You can then email your comments to 11403 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11403
; Package
emacs
.
(Fri, 04 May 2012 10:47:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Konrad Hinsen <konrad.hinsen <at> fastmail.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 04 May 2012 10:47:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org. Please check that
the From: line contains a valid email address. After a delay of up
to one day, you should receive an acknowledgement at that address.
Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.
Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug. If you can, give a recipe
starting from `emacs -Q':
Sorry, I can't give a recipe, but this happens about twice a day
since I use prerelease 24.0.96. The situation is always the same:
I open a VM folder (VM = ViewMail), or I refresh an already opened
one. VM starts downloading messages from my IMAP server, annoucing
its progress in the minibuffer. And then Emacs crashes before VM
as finished downloading and displaying the new messages.
As an attachment I send the log file produces by Apple's CrashReporter
in MacOS X.
[Emacs_2012-05-04-120851_Konrad-Hinsens-MacBook-Pro.crash (application/octet-stream, attachment)]
[Message part 3 (text/plain, inline)]
If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/Users/hinsen/Applications/Emacs-24.0.96.app/Contents/Resources/etc/DEBUG.
In GNU Emacs 24.0.96.1 (x86_64-apple-darwin10.8.0, NS apple-appkit-1038.36)
of 2012-04-30 on Konrad-Hinsens-MacBook-Pro.local
Windowing system distributor `Apple', version 10.3.1038
Configured using:
`configure '--with-ns''
Important settings:
value of $LC_ALL: en_US.UTF-8
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: nil
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t
Major mode: Org
Minor modes in effect:
global-auto-revert-mode: t
auto-revert-mode: t
org-indent-mode: t
recentf-mode: t
show-paren-mode: t
shell-dirtrack-mode: t
diff-auto-refine-mode: t
global-undo-tree-mode: t
undo-tree-mode: t
yas/global-mode: t
yas/minor-mode: t
whitespace-newline-mode: t
whitespace-mode: t
mouse-wheel-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
visual-line-mode: t
transient-mark-mode: t
Recent input:
<C-268632070> <help-echo> q M-x b u g <tab> <tab> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> r e p o <tab> <down-mouse-2>
<mouse-2>
Recent messages:
Loading /Users/hinsen/.emacs24.d/config/tex.el (source)...done
Loading /Users/hinsen/.emacs24.d/config/user-interface.el (source)...
Loading /Users/hinsen/.recentf...done
Cleaning up the recentf list...done (0 removed)
Loading /Users/hinsen/.emacs24.d/config/user-interface.el (source)...done
Loading /Users/hinsen/.emacs24.d/custom.el (source)...done
Loading vc-hg...done
OVERVIEW [5 times]
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list... [2 times]
Load-path shadows:
~/.emacs24.d/lisp/org-vm hides /Users/hinsen/Applications/Emacs-24.0.96.app/Contents/Resources/lisp/org/org-vm
~/.emacs24.d/lisp/org-eshell hides /Users/hinsen/Applications/Emacs-24.0.96.app/Contents/Resources/lisp/org/org-eshell
Features:
(shadow flyspell ispell vm-rfaddons vm-menu vm-window vm-toolbar
vm-virtual vm-summary-faces vm-mouse vm-page pp vm emacsbug message
mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils org-colview
solar cal-dst holidays hol-loaddefs diary-lib diary-loaddefs cal-iso
vc-hg autorevert disp-table org-indent server recentf tree-widget
paren uniquify ido windmove french-holidays org-crypt org-w3m
org-jsinfo org-infojs org-html org-exp ob-exp org-exp-blocks find-func
org-agenda org-info org-eshell org-docview org-bibtex bibtex ob-ditaa
ob-clojure ob-haskell ob-js ob-python ob-ruby ob-perl ob-R ob-sh shell
ace-jump-mode magithub json url url-proxy url-privacy url-expand
url-methods url-history url-cookie url-util url-parse auth-source
eieio gnus-util password-cache url-vars mm-util mail-prsvr mailcap
magit diff-mode log-edit pcvs-util add-log magit-key-mode monky
help-mode view dired+ dired-x ediff-merg ediff-diff ediff-wind
ediff-mult ediff-help ediff-init ediff-util dired-aux undo-tree
yasnippet assoc julia-mode gnuplot info-look bbdb-vm vm-mime vm-undo
vm-message vm-macro bbdb-snarf mail-extr rfc822 bbdb-com mailabbrev
bbdb-autoloads bbdb org-vm org byte-opt warnings bytecomp byte-compile
cconv macroexp ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table
org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete
pcomplete comint ansi-color org-list org-faces org-compat org-entities
org-macs noutline outline easy-mmode format-spec cal-menu calendar
cal-loaddefs advice advice-preload vm-reply vm-motion vm-summary
vm-folder vm-minibuf vm-misc vm-pcrisis vm-autoloads vm-version
vm-vars paredit edmacro kmacro em-smart ring esh-var esh-io esh-cmd
esh-ext esh-proc esh-arg eldoc help-fns esh-groups eshell esh-module
esh-mode esh-util find-dired dired regexp-opt color-theme wid-edit
w3m-load browse-url auctex-autoloads tex-site
clojure-test-mode-autoloads clojure-mode-autoloads
color-theme-actress-autoloads color-theme-zenburn-autoloads
color-theme-autoloads gnuplot-autoloads ipython-autoloads
magithub-autoloads finder-inf magit-autoloads markdown-mode-autoloads
marmalade-autoloads furl-autoloads monky-autoloads info
oauth2-autoloads paredit-autoloads python-mode-autoloads
python-pep8-autoloads python-pylint-autoloads slime-autoloads
yasnippet-autoloads package tabulated-list timezone whitespace cl
filesets easymenu time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel ns-win tool-bar dnd fontset image fringe
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 files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind ns
multi-tty emacs)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11403
; Package
emacs
.
(Fri, 04 May 2012 16:10:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 11403 <at> debbugs.gnu.org (full text, mbox):
Konrad Hinsen <konrad.hinsen <at> fastmail.net> writes:
> Sorry, I can't give a recipe, but this happens about twice a day
> since I use prerelease 24.0.96. The situation is always the same:
> I open a VM folder (VM = ViewMail), or I refresh an already opened
> one. VM starts downloading messages from my IMAP server, annoucing
> its progress in the minibuffer. And then Emacs crashes before VM
> as finished downloading and displaying the new messages.
I assume, from your description, that these crashes didn't happen on
24.0.95?
Off the top of my head, I don't see anything informative in the
backtrace you sent. But if the bug has something to with process
interaction, there was only one change in process.c between 24.0.95 and
24.0.96 which could have caused this.
Could you try running with the following patch (which basically reverts
said change) and see if it makes any difference?
=== modified file 'src/process.c'
*** src/process.c 2012-04-20 06:39:29 +0000
--- src/process.c 2012-05-04 16:04:10 +0000
***************
*** 4893,4915 ****
It can't hurt. */
else if (nread == -1 && errno == EIO)
{
! struct Lisp_Process *p = XPROCESS (proc);
!
! /* Clear the descriptor now, so we only raise the
! signal once. */
! FD_CLR (channel, &input_wait_mask);
! FD_CLR (channel, &non_keyboard_wait_mask);
!
! if (p->pid == -2)
! {
! /* If the EIO occurs on a pty, sigchld_handler's
! wait3() will not find the process object to
! delete. Do it here. */
! p->tick = ++process_tick;
! p->status = Qfailed;
! }
! else
! kill (getpid (), SIGCHLD);
}
#endif /* HAVE_PTYS */
/* If we can detect process termination, don't consider the
--- 4893,4908 ----
It can't hurt. */
else if (nread == -1 && errno == EIO)
{
! /* Don't do anything if only a pty, with no associated
! process (bug#10933). */
! if (XPROCESS (proc)->pid != -2) {
! /* Clear the descriptor now, so we only raise the signal
! once. */
! FD_CLR (channel, &input_wait_mask);
! FD_CLR (channel, &non_keyboard_wait_mask);
!
! kill (getpid (), SIGCHLD);
! }
}
#endif /* HAVE_PTYS */
/* If we can detect process termination, don't consider the
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11403
; Package
emacs,ns
.
(Fri, 04 May 2012 22:52:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 11403 <at> debbugs.gnu.org (full text, mbox):
Chong Yidong wrote:
> Konrad Hinsen <konrad.hinsen <at> fastmail.net> writes:
>
>> Sorry, I can't give a recipe, but this happens about twice a day
>> since I use prerelease 24.0.96.
[...]
> I assume, from your description, that these crashes didn't happen on
> 24.0.95?
Presumably they did, because the "CrashReporter" details seem to be the
same as in
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10752
That time it was "Since I updated from 24.0.92 to 24.0.93".
Merged 10752 11403.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Fri, 04 May 2012 22:52:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11403
; Package
emacs,ns
.
(Sat, 05 May 2012 03:28:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 11403 <at> debbugs.gnu.org (full text, mbox):
Glenn Morris <rgm <at> gnu.org> writes:
>> I assume, from your description, that these crashes didn't happen on
>> 24.0.95?
>
> Presumably they did, because the "CrashReporter" details seem to be the
> same as in
>
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10752
>
> That time it was "Since I updated from 24.0.92 to 24.0.93".
You're right, well spotted. So the change I pointed to probably has
nothing to do with it.
Konrad, could you please run Emacs under gdb and get a proper backtrace?
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11403
; Package
emacs,ns
.
(Sat, 05 May 2012 04:09:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 11403 <at> debbugs.gnu.org (full text, mbox):
Without a proper backtrace, the only thing I get out of this
5 org.gnu.Emacs ns_term_shutdown + 79 (nsterm.m:4236)
6 org.gnu.Emacs shut_down_emacs + 192 (emacs.c:2129)
7 org.gnu.Emacs fatal_error_signal + 295 (emacs.c:360)
8 libSystem.B.dylib _sigtramp + 26
9 libobjc.A.dylib objc_msgSend_vtable14 + 9
10 org.gnu.Emacs x_free_frame_resources + 215 (nsterm.m:1166)
11 org.gnu.Emacs x_destroy_window + 25 (nsterm.m:1181)
is that the [[view window] close]; call in x_free_frame_resources
triggers a fatal object from the operating system. Maybe there is out
of order execution going on somewhere, causing Emacs to try to interact
with the window that was just closed? Maybe the sendEvent method in
nsterm.m needs to check if the window is valid before using it? (Just a
shot in the dark, I don't know the ns code well.)
Jan or Adrian, could you take a look into this? Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11403
; Package
emacs,ns
.
(Sat, 05 May 2012 10:45:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 11403 <at> debbugs.gnu.org (full text, mbox):
Chong Yidong writes:
> Glenn Morris <rgm <at> gnu.org> writes:
>
> >> I assume, from your description, that these crashes didn't happen on
> >> 24.0.95?
> >
> > Presumably they did, because the "CrashReporter" details seem to be the
> > same as in
> >
> > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10752
> >
> > That time it was "Since I updated from 24.0.92 to 24.0.93".
>
> You're right, well spotted. So the change I pointed to probably has
> nothing to do with it.
The crashes back then happened under different conditions: when I quit
a VM window. Now they happen when VM downloads IMAP messages. Of course
the underlying bug may be the same.
> Konrad, could you please run Emacs under gdb and get a proper backtrace?
I will try!
Konrad.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11403
; Package
emacs,ns
.
(Wed, 16 May 2012 10:58:02 GMT)
Full text and
rfc822 format available.
Message #25 received at 11403 <at> debbugs.gnu.org (full text, mbox):
Konrad Hinsen writes:
> > Konrad, could you please run Emacs under gdb and get a proper backtrace?
>
> I will try!
After ten days of running under gdb control, I haven't had a single
crash. This looks like the programmer's nightmare: the bug that
disappears when using a debugger.
I will switch back to running without gdb to see if that's really the
difference. I did install an Apple security update a day after starting
to run Emacs under gdb, so I want to be sure what's the cause.
Konrad.
bug closed, send any further explanations to
11583 <at> debbugs.gnu.org and Steven Parkes <smparkes <at> smparkes.net>
Request was from
Chong Yidong <cyd <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 12 Jun 2012 04:48:02 GMT)
Full text and
rfc822 format available.
Disconnected #11583 from all other report(s).
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 03 Jul 2012 18:32: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
.
(Wed, 01 Aug 2012 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 18 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.