From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#6284: Crash in w32_wnd_proc at frame deletion Date: Thu, 27 May 2010 19:44:27 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1274983324 1700 80.91.229.12 (27 May 2010 18:02:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 May 2010 18:02:04 +0000 (UTC) To: 6284@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 27 20:02:02 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OHhP6-0006Cg-Ed for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 May 2010 20:02:00 +0200 Original-Received: from localhost ([127.0.0.1]:55866 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHhP5-0000je-L4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 May 2010 14:01:59 -0400 Original-Received: from [140.186.70.92] (port=55130 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHhKk-0006Jt-Kv for bug-gnu-emacs@gnu.org; Thu, 27 May 2010 13:57:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHhKj-0001vA-DT for bug-gnu-emacs@gnu.org; Thu, 27 May 2010 13:57:30 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40811) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHhKj-0001v6-CD for bug-gnu-emacs@gnu.org; Thu, 27 May 2010 13:57:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OHh8h-0005VE-1O; Thu, 27 May 2010 13:45:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 May 2010 17:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6284 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Emacs Bugs Original-Received: via spool by submit@debbugs.gnu.org id=B.127498230021132 (code B ref -1); Thu, 27 May 2010 17:45:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 May 2010 17:45:00 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHh8d-0005Un-OY for submit@debbugs.gnu.org; Thu, 27 May 2010 13:45:00 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHh8c-0005Ui-6C for submit@debbugs.gnu.org; Thu, 27 May 2010 13:44:58 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:53344) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OHh8X-0003m8-15 for submit@debbugs.gnu.org; Thu, 27 May 2010 13:44:53 -0400 Original-Received: from [140.186.70.92] (port=59188 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHh8V-00057m-Cy for bug-gnu-emacs@gnu.org; Thu, 27 May 2010 13:44:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHh8T-0008Jm-Pg for bug-gnu-emacs@gnu.org; Thu, 27 May 2010 13:44:51 -0400 Original-Received: from mail-gy0-f169.google.com ([209.85.160.169]:62894) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHh8T-0008Je-NP for bug-gnu-emacs@gnu.org; Thu, 27 May 2010 13:44:49 -0400 Original-Received: by gyg4 with SMTP id 4so273052gyg.0 for ; Thu, 27 May 2010 10:44:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=hUlRYceFKrXGwdR0CBc6qOx9y573Uz7glOMhe3DWwbs=; b=HVvrI6DO3fZlWGJpKBz+drWHP6KB9LnjrYv7NLg6J2Z2z+p9wK4bJFNxJ5p7OGvyzU a/JzJYaBmBvlQ0dOhxxZ6SpDJnjXyLDUeXGbo4p0vUWUnHBxIL9sW2o6Hd7S5fGqgGPf bMSd14Wb3K/PJFFfbL89T6C1YhKYhHNRNajrM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=qf/PIW0GN7iHDSss4E+O9B1ggF4MFzavu8zGHv5C93rGVfMqdAOEK6TpOSAeZCVztc hvFQ0Vjyjbw2/ndF75R6hak9W2vKTw++RbmM1gVgaLRpe4jFvMAtTzLSETE+JTjb3PCp gxVwzZDixKQRxGRdtz+nesveeCYM7YyycAed8= Original-Received: by 10.101.129.17 with SMTP id g17mr13244639ann.101.1274982288854; Thu, 27 May 2010 10:44:48 -0700 (PDT) Original-Received: by 10.100.177.20 with HTTP; Thu, 27 May 2010 10:44:27 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 27 May 2010 13:45:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37339 Archived-At: Now I finally got a backtrace of this crash. Thanks for the (harsh) reminders about running under gdb. Here is part of the backtrace Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1836.0xef8] 0x011cc376 in w32_wnd_proc (hwnd=0x1001ac, msg=32, wParam=1049004, lParam=33554433) at w32fns.c:4351 4351 if (f->output_data.w32->hourglass_p && !menubar_in_use (gdb) bt #0 0x011cc376 in w32_wnd_proc (hwnd=0x1001ac, msg=32, wParam=1049004, lParam=33554433) at w32fns.c:4351 #1 0x7e418734 in USER32!GetDC () from C:\WINDOWS\system32\user32.dll #2 0x001001ac in ?? () #3 0x00000020 in ?? () #4 0x001001ac in ?? () #5 0x02000001 in ?? () #6 0x011c9291 in post_character_message (hwnd=0x11c9291, msg=1049004, wParam=32, lParam=1049004, dwmodifiers=33554433) at w32fns.c:3049 #7 0x7e418816 in USER32!GetDC () from C:\WINDOWS\system32\user32.dll #8 0x011c9291 in post_character_message (hwnd=0x0, msg=18649745, wParam=1049004, lParam=32, dwmodifiers=1049004) at w32fns.c:3049 #9 0x7e428ea0 in USER32!DefWindowProcW () from C:\WINDOWS\system32\user32.dll #10 0x00000000 in ?? () Lisp Backtrace: "delete-frame" (0x82af44) It looks like the important part is line 4351. I tried to look at f: (gdb) print f $1 = (struct frame *) 0x0 (gdb) print f->output_data Cannot access memory at address 0x104 Does this mean that f might be gone here and that there should be a test for this?