From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#14970: crash deleting frames Date: Sun, 28 Jul 2013 02:22:51 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1374971055 18164 80.91.229.3 (28 Jul 2013 00:24:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Jul 2013 00:24:15 +0000 (UTC) To: 14970@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 28 02:24:14 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 1V3EmR-0005gK-BF for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Jul 2013 02:24:11 +0200 Original-Received: from localhost ([::1]:60692 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3EmQ-0002LR-Aw for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jul 2013 20:24:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3EmM-0002KH-Ff for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2013 20:24:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V3EmL-0005uW-BI for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2013 20:24:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3EmL-0005uS-7Z for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2013 20:24:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V3EmI-0007h0-TX for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2013 20:24:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Jul 2013 00:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14970 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Bug-Gnu-Emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.137497102629525 (code B ref -1); Sun, 28 Jul 2013 00:24:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Jul 2013 00:23:46 +0000 Original-Received: from localhost ([127.0.0.1]:53540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V3Em1-0007g7-Qv for submit@debbugs.gnu.org; Sat, 27 Jul 2013 20:23:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45604) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V3Elz-0007fo-8J for submit@debbugs.gnu.org; Sat, 27 Jul 2013 20:23:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V3Els-0005p1-J0 for submit@debbugs.gnu.org; Sat, 27 Jul 2013 20:23:38 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:60014) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3Els-0005ox-Fo for submit@debbugs.gnu.org; Sat, 27 Jul 2013 20:23:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3Elq-0002Cs-5v for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2013 20:23:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V3Elp-0005oL-01 for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2013 20:23:34 -0400 Original-Received: from mail-ee0-x229.google.com ([2a00:1450:4013:c00::229]:35217) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3Elo-0005oB-Pi for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2013 20:23:32 -0400 Original-Received: by mail-ee0-f41.google.com with SMTP id d17so1750405eek.28 for ; Sat, 27 Jul 2013 17:23:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=6LI+kqMTvP9vk0NCk72e80EuaoRghLyqgT22SGie2eU=; b=pSxA2xlBRatlzbF/7ZTd/92tlHRCOm+EiTzvQSuk1p16iZwElf2ZNGKKsPW/HCoxxM TBpYpMTSB0THW3mC2QV76xzXeh9hi23FekMvOA7VqYNFOo/E2iQYgOm9XqWTEwYX8zzx PNeJDxN6bljB24sBAxSCPsWDhgeLO5AN0qJCDNrQskWkooboKPyhRE7x4sTZZVFdrc3X xor8kTocFwlfmH+PV1SXCgy0oXzK8A3CQ73twfKNbjgVpTDiZYu3X7e75+TkAmh0YBxj LGbbwEtGpb6uBJTNJgHWPcErmOzZdm3KgT4Sxm1QD/4A3olBBkl99w0UxcVFEgX3Nd90 nJBw== X-Received: by 10.15.36.133 with SMTP id i5mr53731766eev.52.1374971011896; Sat, 27 Jul 2013 17:23:31 -0700 (PDT) Original-Received: by 10.15.23.70 with HTTP; Sat, 27 Jul 2013 17:22:51 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:76716 Archived-At: Package: emacs Version: 24.3.50 Context: I'm trying new desktop code to force frames onscreen. To test it, I have a function that creates a fair number of frames (around 15/20) either partially or totally offscreen. Once the new desktop code moves them onscreen, I usually close them all via another interactive test function. But if I try instead to close them by clicking on each window's Close button, sooner or later (after closing 10/15 frames, usually) Emacs crashes. In previous crashes it didn't generate a backtrace, nor did Windows offer to attach a debugger to the crashed program. Also, running under gdb I couldn't reproduce the bug. This is the first time I've been offered to attach gdb. Whatever the reason, something fishy is happening with delete-frame, #0 0x76c7321a in KERNELBASE!DeleteAce () from C:\Windows\syswow64\KernelBase.dll #1 0x011ea460 in emacs_abort () at w32fns.c:8030 #2 0x010db418 in terminate_due_to_signal (sig=22, backtrace_limit=2147483647) at emacs.c:369 #3 0x0115059d in die (msg=0x148470a "WINDOWP (a)", file=0x1484694 "lisp.h", line=798) at alloc.c:6558 #4 0x0114682c in XWINDOW (a=54749210) at lisp.h:798 #5 0x010129af in delete_frame (frame=93052933, force=54749234) at frame.c:1161 #6 0x01013496 in Fdelete_frame (frame=93052933, force=54749234) at frame.c:1451 #7 0x0116dadc in Ffuncall (nargs=3, args=0x88efe4) at eval.c:2819 #8 0x011ae49d in exec_byte_code (bytestr=19842041, vector=19842061, maxdepth=16, args_template=54749210, nargs=0, args=0x0) at bytecode.c:905 #9 0x0116e65c in funcall_lambda (fun=19842013, nargs=1, arg_vector=0x12ec40d) at eval.c:3050 #10 0x0116dcf2 in Ffuncall (nargs=2, args=0x88f320) at eval.c:2865 #11 0x01167794 in Fcall_interactively (function=54934394, record_flag=54749210, keys=90185989) at callint.c:839 #12 0x0116db0b in Ffuncall (nargs=4, args=0x88f54c) at eval.c:2823 #13 0x011ae49d in exec_byte_code (bytestr=19717001, vector=19717021, maxdepth=52, args_template=4100, nargs=4, args=0x88f860) at bytecode.c:905 #14 0x0116e298 in funcall_lambda (fun=19716981, nargs=4, arg_vector=0x88f850) at eval.c:2984 #15 0x0116dcf2 in Ffuncall (nargs=5, args=0x88f84c) at eval.c:2865 #16 0x0116d661 in call4 (fn=54795106, arg1=54934394, arg2=54749210, arg3=90185989, arg4=54749234) at eval.c:2664 #17 0x010e256f in read_char (commandflag=1, map=91059750, prev_event=54749210, used_mouse_menu=0x88fac3, end_time=0x0) at keyboard.c:2923 #18 0x010ee02f in read_key_sequence (keybuf=0x88fbe0, bufsize=30, prompt=54749210, dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true) at keyboard.c:9056 #19 0x010df234 in command_loop_1 () at keyboard.c:1434 #20 0x0116a91f in internal_condition_case (bfun=0x10deebd , handlers=54803674, hfun=0x10de744 ) at eval.c:1302 #21 0x010deb72 in command_loop_2 (ignore=54749210) at keyboard.c:1161 #22 0x0116a239 in internal_catch (tag=54793554, func=0x10deb4e , arg=54749210) at eval.c:1076 #23 0x010deb2a in command_loop () at keyboard.c:1140 #24 0x010de2e1 in recursive_edit_1 () at keyboard.c:779 #25 0x010de49d in Frecursive_edit () at keyboard.c:843 #26 0x010dc76b in main (argc=5, argv=0xc22d98) at emacs.c:1566 Lisp Backtrace: "delete-frame" (0x88efe8) "handle-delete-frame" (0x88f324) "call-interactively" (0x88f550) "command-execute" (0x88f850) (gdb)