From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#14062: 24.3.50; emacs_backtrace.txt Date: Sat, 04 May 2013 13:27:48 +0300 Message-ID: <834nejm44b.fsf@gnu.org> References: <75799AB3F22B457D85197F174077F208@us.oracle.com> <83wqstxrbo.fsf@gnu.org> <83fvzhxcdn.fsf@gnu.org> <8338vfyiy4.fsf@gnu.org> <838v4k6yc4.fsf@gnu.org> <516BF54E.9020802@gmx.at> <83y5cj6fo5.fsf@gnu.org> <516C2276.3020006@gmx.at> <83obdf69yz.fsf@gnu.org> <516C5358.8040709@gmx.at> <83d2tv57p5.fsf@gnu.org> <83fvyixwxq.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1367663369 19614 80.91.229.3 (4 May 2013 10:29:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 May 2013 10:29:29 +0000 (UTC) Cc: lekktu@gmail.com, 14062-done@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 04 12:29:27 2013 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 1UYZiY-0001jz-Jc for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 May 2013 12:29:26 +0200 Original-Received: from localhost ([::1]:36939 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYZiY-0003VU-82 for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 May 2013 06:29:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYZiR-0003VD-Uh for bug-gnu-emacs@gnu.org; Sat, 04 May 2013 06:29:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UYZiQ-0008HI-Vt for bug-gnu-emacs@gnu.org; Sat, 04 May 2013 06:29:19 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53463) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYZiQ-0008HB-Sc for bug-gnu-emacs@gnu.org; Sat, 04 May 2013 06:29:18 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UYZj9-0004Fb-Mw for bug-gnu-emacs@gnu.org; Sat, 04 May 2013 06:30:03 -0400 Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 May 2013 10:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 14062 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: Mail-Followup-To: 14062@debbugs.gnu.org, eliz@gnu.org, drew.adams@oracle.com Original-Received: via spool by 14062-done@debbugs.gnu.org id=D14062.136766335716053 (code D ref 14062); Sat, 04 May 2013 10:30:03 +0000 Original-Received: (at 14062-done) by debbugs.gnu.org; 4 May 2013 10:29:17 +0000 Original-Received: from localhost ([127.0.0.1]:57571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UYZiP-0004Ar-1R for submit@debbugs.gnu.org; Sat, 04 May 2013 06:29:17 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:64662) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UYZiL-0004AP-7e for 14062-done@debbugs.gnu.org; Sat, 04 May 2013 06:29:14 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MM900H00RIWQ500@a-mtaout22.012.net.il> for 14062-done@debbugs.gnu.org; Sat, 04 May 2013 13:28:03 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MM900H7VRQQSE00@a-mtaout22.012.net.il>; Sat, 04 May 2013 13:28:03 +0300 (IDT) In-reply-to: <83fvyixwxq.fsf@gnu.org> X-012-Sender: halo1@inter.net.il 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:73940 Archived-At: > Date: Mon, 22 Apr 2013 21:05:53 +0300 > From: Eli Zaretskii > Cc: 14062@debbugs.gnu.org > > > From: Juanma Barranquero > > Date: Mon, 22 Apr 2013 18:12:13 +0200 > > Cc: Eli Zaretskii , martin rudalics , 14062@debbugs.gnu.org > > > > ?? > > ??:0 > > w32_backtrace at w32fns.c:7687 > > emacs_abort at w32fns.c:7719 > > terminate_due_to_signal at emacs.c:343 > > die at alloc.c:6522 > > w32_wnd_proc at w32fns.c:3127 > > Thanks! the trap worked again! This is here: > > #ifdef ENABLE_CHECKING > /* Temporary code to catch crashes in computing form.rcArea.top. */ > eassert (FRAMEP (w->frame)); > eassert (BUFFERP (w->contents)); <<<<<<<<<<<<<<<<<<<<<<<< > > So the cause for the assertion violation is now crystal clear, and I > will commit a work-around soon. (I still don't understand how such a > window ended up here, and why didn't the BUFFERP test in > WINDOW_WANTS_HEADER_LINE_P catch the problem before XBUFFER aborted.) After staring at the code again, I might be able to explain to myself why the BUFFERP test was not enough. I rearranged the tests in the WINDOW_WANTS_HEADER_LINE_P macro so that hopefully this will not happen again. I've also removed the temporary code in w32fns.c used to track these violations at fine resolution. The changes are committed as trunk revision 112447. I also think I understand now how come Emacs gets the WM_IME_STARTCOMPOSITION message: we send it to ourselves in w32_draw_window_cursor, i.e. every time we are about to draw the cursor. I'm closing the bug. Feel free to reopen if we get aborts around line 3186 in w32fns.c.