From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.bugs Subject: bug#13007: 24.3.50; emacs_backtrace.txt Date: Wed, 28 Nov 2012 11:19:29 +0400 Message-ID: <50B5BB01.2070304@yandex.ru> References: <9FE4F131C0C94FC79470495A8506A387@us.oracle.com> <83k3t7xemd.fsf@gnu.org> <50B4EF28.6040905@yandex.ru> <834nkbx7if.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070706010705000106080705" X-Trace: ger.gmane.org 1354087221 17132 80.91.229.3 (28 Nov 2012 07:20:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Nov 2012 07:20:21 +0000 (UTC) To: 13007@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 28 08:20:33 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 1Tdbwa-0005GF-8l for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Nov 2012 08:20:28 +0100 Original-Received: from localhost ([::1]:43042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdbwP-00047u-0C for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Nov 2012 02:20:17 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdbwM-00047p-EJ for bug-gnu-emacs@gnu.org; Wed, 28 Nov 2012 02:20:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TdbwI-0006RP-2u for bug-gnu-emacs@gnu.org; Wed, 28 Nov 2012 02:20:14 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdbwH-0006RK-Vu for bug-gnu-emacs@gnu.org; Wed, 28 Nov 2012 02:20:10 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tdby6-00085B-9q for bug-gnu-emacs@gnu.org; Wed, 28 Nov 2012 02:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Antipov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Nov 2012 07:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13007 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13007-submit@debbugs.gnu.org id=B13007.135408727231008 (code B ref 13007); Wed, 28 Nov 2012 07:22:02 +0000 Original-Received: (at 13007) by debbugs.gnu.org; 28 Nov 2012 07:21:12 +0000 Original-Received: from localhost ([127.0.0.1]:42517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TdbxG-000844-UO for submit@debbugs.gnu.org; Wed, 28 Nov 2012 02:21:12 -0500 Original-Received: from forward3h.mail.yandex.net ([84.201.187.148]:39090) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TdbxC-00083t-K2 for 13007@debbugs.gnu.org; Wed, 28 Nov 2012 02:21:09 -0500 Original-Received: from smtp2h.mail.yandex.net (smtp2h.mail.yandex.net [84.201.187.145]) by forward3h.mail.yandex.net (Yandex) with ESMTP id 5054E13607A5; Wed, 28 Nov 2012 11:19:07 +0400 (MSK) Original-Received: from smtp2h.mail.yandex.net (localhost [127.0.0.1]) by smtp2h.mail.yandex.net (Yandex) with ESMTP id D3F1E17000D1; Wed, 28 Nov 2012 11:19:06 +0400 (MSK) Original-Received: from unknown (unknown [37.139.80.10]) by smtp2h.mail.yandex.net (nwsmtp/Yandex) with ESMTP id J6OKhxw9-J6O8iLMh; Wed, 28 Nov 2012 11:19:06 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1354087146; bh=FlOlefotg+muQaxfcvo3Rr7IrbqCUTl3advaQyJQ1Co=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type; b=fL0oWqs5lMTSDAXVGDy7p/sjPmnPw0aSiEVpNwVNikYmtErx+ZdXc26oZLc3DugW4 BlXVZTnMlO1qK3gPgFPuxk/JhSuEtIFhmQfHhlmmIJz3HEltUeiH7lJAy5S3vWYxP3 7wulXX8+e4qZ39YBa5eDWMPfIlaucvpyCiPMU5tI= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <834nkbx7if.fsf@gnu.org> 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.x 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:67553 Archived-At: This is a multi-part message in MIME format. --------------070706010705000106080705 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit IIUC crash is triggered by this fragment: 13212 else if (EQ (selected_window, minibuf_window) 13213 && (current_buffer->clip_changed || window_outdated (w)) 13214 && resize_mini_window (w, 0)) So selected_window is the same as minibuf_window, and w->buffer is not the same as current_buffer; but, is w equal to XWINDOW (selected_window) here? Look above: 13114 /* Notice any pending interrupt request to change frame size. */ 13115 do_pending_window_change (1); 13116 13117 /* do_pending_window_change could change the selected_window due to 13118 frame resizing which makes the selected window too small. */ 13119 if (WINDOWP (selected_window) && (w = XWINDOW (selected_window)) != sw) 13120 { 13121 sw = w; 13122 reconsider_clip_changes (w, current_buffer); 13123 } 13124 13125 /* Clear frames marked as garbaged. */ 13126 clear_garbaged_frames (); 13127 13128 /* Build menubar and tool-bar items. */ 13129 if (NILP (Vmemory_full)) 13130 prepare_menu_bars (); Here prepare_menu_bars can run Lisp and so change something. 13131 13132 if (windows_or_buffers_changed) 13133 update_mode_lines++; 13134 13135 /* Detect case that we need to write or remove a star in the mode line. */ 13136 if ((SAVE_MODIFF < MODIFF) != w->last_had_star) If we ran Lisp above, how we can be sure that w is still equal to XWINDOW (selected_window)? Can someone try this patch? Dmitry --------------070706010705000106080705 Content-Type: text/plain; charset=UTF-8; name="1.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="1.patch" PT09IG1vZGlmaWVkIGZpbGUgJ3NyYy94ZGlzcC5jJwotLS0gc3JjL3hkaXNwLmMJMjAxMi0x MS0yNyAwMzoxMDozMiArMDAwMAorKysgc3JjL3hkaXNwLmMJMjAxMi0xMS0yOCAwNzoxMzow NCArMDAwMApAQCAtMTA5MDMsNiArMTA5MDMsOSBAQAogc3RhdGljIGludAogd2luZG93X291 dGRhdGVkIChzdHJ1Y3Qgd2luZG93ICp3KQogeworICBpZiAody0+cHNldWRvX3dpbmRvd19w KQorICAgIC8qIEFsd2F5cyB1cGRhdGUgbWVudSBiYXIgd2luZG93cy4gICovCisgICAgcmV0 dXJuIDE7CiAgIGVhc3NlcnQgKFhCVUZGRVIgKHctPmJ1ZmZlcikgPT0gY3VycmVudF9idWZm ZXIpOwogICByZXR1cm4gKHctPmxhc3RfbW9kaWZpZWQgPCBNT0RJRkYgCiAJICB8fCB3LT5s YXN0X292ZXJsYXlfbW9kaWZpZWQgPCBPVkVSTEFZX01PRElGRik7CkBAIC0xMzExNCwxNCAr MTMxMTcsNiBAQAogICAvKiBOb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cpKSAhPSBzdykKKyAgICB7CisgICAgICBzdyA9IHc7CisgICAg ICByZWNvbnNpZGVyX2NsaXBfY2hhbmdlcyAodywgY3VycmVudF9idWZmZXIpOworICAgIH0K KwogICBpZiAod2luZG93c19vcl9idWZmZXJzX2NoYW5nZWQpCiAgICAgdXBkYXRlX21vZGVf bGluZXMrKzsKIAoK --------------070706010705000106080705--