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: Sat, 29 May 2010 01:44:01 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001636c924b221fdeb0487b016b1 X-Trace: dough.gmane.org 1275091064 5336 80.91.229.12 (28 May 2010 23:57:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 28 May 2010 23:57:44 +0000 (UTC) Cc: 6284@debbugs.gnu.org To: Juanma Barranquero , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 29 01:57:42 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 1OI9Qp-0004H2-W7 for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 May 2010 01:57:40 +0200 Original-Received: from localhost ([127.0.0.1]:48606 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OI9Qp-0003Dr-0t for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 May 2010 19:57:39 -0400 Original-Received: from [140.186.70.92] (port=58075 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OI9Qh-0003A1-Cb for bug-gnu-emacs@gnu.org; Fri, 28 May 2010 19:57:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OI9Qf-0003xm-Em for bug-gnu-emacs@gnu.org; Fri, 28 May 2010 19:57:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50938) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OI9Qf-0003xi-DP for bug-gnu-emacs@gnu.org; Fri, 28 May 2010 19:57:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OI9Ec-0002dB-CX; Fri, 28 May 2010 19:45:02 -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: Fri, 28 May 2010 23:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6284 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6284-submit@debbugs.gnu.org id=B6284.127509026910091 (code B ref 6284); Fri, 28 May 2010 23:45:02 +0000 Original-Received: (at 6284) by debbugs.gnu.org; 28 May 2010 23:44:29 +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 1OI9E4-0002ci-8C for submit@debbugs.gnu.org; Fri, 28 May 2010 19:44:28 -0400 Original-Received: from mail-gy0-f172.google.com ([209.85.160.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OI9E2-0002cc-Az for 6284@debbugs.gnu.org; Fri, 28 May 2010 19:44:26 -0400 Original-Received: by gyh4 with SMTP id 4so1332377gyh.3 for <6284@debbugs.gnu.org>; Fri, 28 May 2010 16:44:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=ZFlYrG5qPiT6nD5nNTne1D1IGc2wQw6pm/JbMQnWF+o=; b=t6eiD6JEyEYWkIvqB6lDXSTvttOhCowG+hPse1V+k+rqorYESTOeZURb/SJpJbtGb1 bQT/7q0tTrDEYstYjnR3VDKycqnRs/blAJhwOSc0KYtzfkP6ngI69PdcN5YI7pLCAc87 ydDZPP822GpXbS7z2XPzveqzm86LxgA/mZz5s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=exOU7dZAbgCI+WfdtMQiFUk7f3Fxt/iAhZKh9oIqW0BZyHyWhG3M880U5uPuvnwNS/ bQuV0FLEbqjGpX9N3tn5X0ETBdsryBA+zcXPFfc2JtJMpYTWovYgdLiZPNPizSKTIyHC soA8IfLEggGbSCe8K519y3tRPp5lrmpaoUkXo= Original-Received: by 10.100.244.32 with SMTP id r32mr1227883anh.28.1275090262162; Fri, 28 May 2010 16:44:22 -0700 (PDT) Original-Received: by 10.100.177.20 with HTTP; Fri, 28 May 2010 16:44:01 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 28 May 2010 19:45:02 -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:37377 Archived-At: --001636c924b221fdeb0487b016b1 Content-Type: text/plain; charset=UTF-8 New patch. I missed one place in the previous patch and this just hit me. It is great running under the debugger and finally being able to find and fix those bugs I have wondered about quite long now but have not had time to fix before. The only problem now is how to get them installed. As I said elsewhere I currently have no checkout from savannah so I can't checkin the patches myself AFAIK. Should I get a second checkout from savannah for this, or? --001636c924b221fdeb0487b016b1 Content-Type: text/x-patch; charset=US-ASCII; name="bug6284-2.diff" Content-Disposition: attachment; filename="bug6284-2.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g9rnsg611 DQpDOlxlbWFjcy1scFx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kbGUgdGhlbSBhcyBpZiB0aGV5IGhh cHBlbmVkIG9uIHRoZQogCSB1bmRlcmx5aW5nIGZyYW1lLiAgKi8KICAgICAgIGYgPSB4X3dpbmRv d190b19mcmFtZSAoZHB5aW5mbywgaHduZCk7Ci0gICAgICBpZiAoZiAmJiBmLT5vdXRwdXRfZGF0 YS53MzItPm1lbnViYXJfYWN0aXZlKQorICAgICAgaWYgKCFmKQorICAgICAgICByZXR1cm4gMDsK KyAgICAgIGlmIChmLT5vdXRwdXRfZGF0YS53MzItPm1lbnViYXJfYWN0aXZlKQogCXJldHVybiAw OwogCiAgICAgICAvKiBJZiB0aGUgbW91c2UgaGFzIGp1c3QgbW92ZWQgaW50byB0aGUgZnJhbWUs IHN0YXJ0IHRyYWNraW5nCkBAIC0zNDc1LDYgKzM0ODIsOCBAQAogCSAgS2lsbFRpbWVyIChod25k LCBtZW51X2ZyZWVfdGltZXIpOwogCSAgbWVudV9mcmVlX3RpbWVyID0gMDsKIAkgIGYgPSB4X3dp bmRvd190b19mcmFtZSAoZHB5aW5mbywgaHduZCk7CisgICAgICAgICAgaWYgKCFmKQorICAgICAg ICAgICAgcmV0dXJuIDA7CiAgICAgICAgICAgLyogSWYgYSBwb3B1cCBtZW51IGlzIGFjdGl2ZSwg ZG9uJ3Qgd2lwZSBpdHMgc3RyaW5ncy4gICovCiAJICBpZiAobWVudWJhcl9pbl91c2UKICAgICAg ICAgICAgICAgJiYgY3VycmVudF9wb3B1cF9tZW51ID09IE5VTEwpCkBAIC0zNDg5LDcgKzM0OTgs MTAgQEAKIAl7CiAJICBLaWxsVGltZXIgKGh3bmQsIGhvdXJnbGFzc190aW1lcik7CiAJICBob3Vy Z2xhc3NfdGltZXIgPSAwOwotCSAgdzMyX3Nob3dfaG91cmdsYXNzICh4X3dpbmRvd190b19mcmFt ZSAoZHB5aW5mbywgaHduZCkpOworCSAgZiA9IHhfd2luZG93X3RvX2ZyYW1lIChkcHlpbmZvLCBo d25kKTsKKyAgICAgICAg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