From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#11403: 24.0.96; Emacs crashes when ViewMail downloads IMAP messages Date: Sat, 05 May 2012 00:08:02 +0800 Message-ID: <87pqakx731.fsf@gnu.org> References: <20387.44198.597996.886034@Konrad-Hinsens-MacBook-Pro.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1336147717 25189 80.91.229.3 (4 May 2012 16:08:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 4 May 2012 16:08:37 +0000 (UTC) Cc: 11403@debbugs.gnu.org To: Konrad Hinsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 04 18:08:35 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SQL3Y-0007U2-EF for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 May 2012 18:08:32 +0200 Original-Received: from localhost ([::1]:41480 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQL3X-0007Zc-I4 for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 May 2012 12:08:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQL3P-0007ZJ-29 for bug-gnu-emacs@gnu.org; Fri, 04 May 2012 12:08:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SQL3J-0003fb-TN for bug-gnu-emacs@gnu.org; Fri, 04 May 2012 12:08:22 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQL3J-0003fU-Pr for bug-gnu-emacs@gnu.org; Fri, 04 May 2012 12:08:17 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SQL4z-0004Wy-UA for bug-gnu-emacs@gnu.org; Fri, 04 May 2012 12:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 May 2012 16:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11403 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11403-submit@debbugs.gnu.org id=B11403.133614779917402 (code B ref 11403); Fri, 04 May 2012 16:10:01 +0000 Original-Received: (at 11403) by debbugs.gnu.org; 4 May 2012 16:09:59 +0000 Original-Received: from localhost ([127.0.0.1]:36255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SQL4w-0004Wd-PL for submit@debbugs.gnu.org; Fri, 04 May 2012 12:09:59 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:52877 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SQL4t-0004WV-L6 for 11403@debbugs.gnu.org; Fri, 04 May 2012 12:09:57 -0400 Original-Received: from bb219-74-179-11.singnet.com.sg ([219.74.179.11]:36326 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SQL3B-0003Fi-09; Fri, 04 May 2012 12:08:09 -0400 In-Reply-To: <20387.44198.597996.886034@Konrad-Hinsens-MacBook-Pro.local> (Konrad Hinsen's message of "Fri, 4 May 2012 12:17:10 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.96 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59749 Archived-At: Konrad Hinsen 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