From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Akihiro KAYAMA Newsgroups: gmane.emacs.bugs Subject: bug#14850: 24.3; GDI Handles leak(Windows) Date: Fri, 12 Jul 2013 18:49:48 +0900 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b15a7356f3db604e14d6ed7 X-Trace: ger.gmane.org 1373642174 3017 80.91.229.3 (12 Jul 2013 15:16:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Jul 2013 15:16:14 +0000 (UTC) To: 14850@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 12 17:16:15 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 1Uxf4v-0001CQ-Ut for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jul 2013 17:16:14 +0200 Original-Received: from localhost ([::1]:37456 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxf4v-0000l0-HG for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jul 2013 11:16:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxf4o-0000if-Of for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 11:16:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uxf4k-0005lL-Sz for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 11:16:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56266) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxf4k-0005lH-Od for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 11:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Uxf4k-0004H7-GB for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 11:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Akihiro KAYAMA Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Jul 2013 15:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14850 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.137364214816368 (code B ref -1); Fri, 12 Jul 2013 15:16:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Jul 2013 15:15:48 +0000 Original-Received: from localhost ([127.0.0.1]:50577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Uxf4U-0004Fr-NR for submit@debbugs.gnu.org; Fri, 12 Jul 2013 11:15:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36965) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Uxa5c-00089J-6J for submit@debbugs.gnu.org; Fri, 12 Jul 2013 05:56:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uxa5S-0006qX-OF for submit@debbugs.gnu.org; Fri, 12 Jul 2013 05:56:30 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:47401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxa5S-0006qQ-Kf for submit@debbugs.gnu.org; Fri, 12 Jul 2013 05:56:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxa5P-00067B-EJ for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 05:56:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxZz5-0003fk-Gf for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 05:50:04 -0400 Original-Received: from ussava.pair.com ([209.68.5.169]:44283) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxZz5-0003fL-7q for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2013 05:49:51 -0400 Original-Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by ussava.pair.com (Postfix) with ESMTPSA id 4141C102C73 for ; Fri, 12 Jul 2013 05:49:49 -0400 (EDT) Original-Received: by mail-pa0-f41.google.com with SMTP id bj3so8868111pad.14 for ; Fri, 12 Jul 2013 02:49:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=IG5pSJ5/QsUyFjWkVNd/I+Um0BpK+k9e8ta0BnOueIk=; b=Yr1dJjzmuohJaQxw3PO6cefFmSpdDWY5/OiGW8l5W+l66W1G/xZ7Mv7O+apqEBt2Le +BSQtH2Ok8Pgq8Go/YZxNfXL9KC4DFhj6hg3ibDOMntx0sIjb2vvrmrhMgkFS1fk4/m8 tglLzjkOJQmmxy9UV4FuXm4CY/Oxk6Fc8N8m3JYUeWzlgBnQlfXWs6hmY9TmX5Pb6sW4 h2saKtDwt0oEB7MWuFb0LXRGzgEvuFLBd1C8VmsrvjNZJFsgnQ6zjJTGQQ2QNe/wrYiM N3wkaJWH3ekW7JiPKCGyceXVy802jZe9sOOuSy29tyXhz+r9I5Fg9xuG7gppDrZqABt9 e2Zg== X-Received: by 10.66.138.15 with SMTP id qm15mr41820236pab.128.1373622588347; Fri, 12 Jul 2013 02:49:48 -0700 (PDT) Original-Received: by 10.66.26.202 with HTTP; Fri, 12 Jul 2013 02:49:48 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Fri, 12 Jul 2013 11:15:44 -0400 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:76284 Archived-At: --047d7b15a7356f3db604e14d6ed7 Content-Type: text/plain; charset=ISO-8859-1 This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgment at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': -- When using multiple emacs frames and shell buffer in Windows, Emacs process's GDI Handles increase constantly. How to reproduce: - emacs.exe -Q - M-x make-frame-command - M-x shell - ping 127.0.0.1 -t (continuous shell output) - M-x find-file (open some mini buffer) - inspect Emacs process's GDI Handles by Process Explorer( www.sysinternals.com) As the increasing ratio is in proportion to number of frames, with a dozen frames Emacs process can easily reach Windows OS limit(=10000 handles) in a few minutes. -- If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file c:/Program Files (x86)/emacs-24.3/etc/DEBUG. In GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-18 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --with-gcc (4.7) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2' Important settings: value of $LANG: JPN locale-coding-system: cp932 default enable-multibyte-characters: t Major mode: Shell Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC x m a k e - f r - c o RET ESC x s h e l l RET p i n g SPC 1 2 7 . 0 . 0 . 1 SPC - t RET ESC x f i n d - f i l e RET C-g ESC x C-g C-g C-n C-n ESC x r e p o r t - e m RET Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... You can run the command `make-frame-command' with C-x 5 2 Quit completing-read-default: Command attempted to use minibuffer while in minibuffer Quit [2 times] Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils shell pcomplete comint ansi-color ring help-mode easymenu time-date japan-util tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32 multi-tty emacs) --047d7b15a7356f3db604e14d6ed7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
This bug report will be sent to the Bug-GNU-Emacs mailing = list
and the GNU bug tracker at debbu= gs.gnu.org.=A0 Please check that
the From: line contains a valid ema= il address.=A0 After a delay of up
to one day, you should receive an acknowledgment at that address.

Pl= ease write in English if possible, as the Emacs maintainers
usually do n= ot have translators for other languages.

Please describe exactly wha= t actions triggered the bug, and
the precise symptoms of the bug.=A0 If you can, give a recipe
starting f= rom `emacs -Q':

--
When using multiple emacs frames and shell= buffer in Windows,
Emacs process's GDI Handles increase constantly= .

How to reproduce:

=A0- emacs.exe -Q
=A0- M-x make-frame-comma= nd
=A0- M-x shell
=A0- ping 127.0.0.1 -t (continuous shell output)=A0- M-x find-file (open some mini buffer)
=A0- inspect Emacs process&#= 39;s GDI Handles by Process Explorer(www.sysinternals.com)

As the increasing ratio is in proportion to number of frames, with adozen frames Emacs process can easily reach Windows OS limit(=3D10000 hand= les)
in a few minutes.
--


If Emacs crashed, and you have t= he Emacs process in the gdb debugger,
please include the output from the following gdb commands:
=A0=A0=A0 `bt= full' and `xbacktrace'.
For information about debugging Emacs, = please read the file
c:/Program Files (x86)/emacs-24.3/etc/DEBUG.

In GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601)
=A0of 2013-03-18 on MARVINWindowing system distributor `Microsoft Corp.', version 6.1.7601
C= onfigured using:
=A0`configure --with-gcc (4.7) --cflags
=A0-ID:/deve= l/emacs/libs/libXpm-3.5.8/include
=A0-ID:/devel/emacs/libs/libXpm-3.5.8/src
=A0-ID:/devel/emacs/libs/libpn= g-dev_1.4.3-1/include
=A0-ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include<= br>=A0-ID:/devel/emacs/libs/giflib-4.1.4-1/include
=A0-ID:/devel/emacs/l= ibs/jpeg-6b-4/include
=A0-ID:/devel/emacs/libs/tiff-3.8.2-1/include
=A0-ID:/devel/emacs/libs/g= nutls-3.0.9/include
=A0-ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/inclu= de
=A0-ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2'

Im= portant settings:
=A0 value of $LANG: JPN
=A0 locale-coding-system: cp932
=A0 default e= nable-multibyte-characters: t

Major mode: Shell

Minor modes i= n effect:
=A0 shell-dirtrack-mode: t
=A0 tooltip-mode: t
=A0 mouse= -wheel-mode: t
=A0 tool-bar-mode: t
=A0 menu-bar-mode: t
=A0 file-name-shadow-mode: = t
=A0 global-font-lock-mode: t
=A0 font-lock-mode: t
=A0 blink-cur= sor-mode: t
=A0 auto-composition-mode: t
=A0 auto-encryption-mode: t<= br>=A0 auto-compression-mode: t
=A0 line-number-mode: t
=A0 transient-mark-mode: t

Recent input:<= br>ESC x m a k e - f r <tab> - <tab> c o <tab> RET <sw= itch-frame>
ESC x s h e l l RET p i n g SPC 1 2 7 . 0 . 0 . 1 SPC - t RET ESC x f i n d - f i l e RET <down-mouse-1>
<mouse-move= ment> <mouse-1> C-g ESC x C-g C-g C-n C-n
ESC x r e p o r t - = e m <tab> RET

Recent messages:
For information about GNU Em= acs and the GNU system, type C-h C-a.
Making completion list...
You can run the command `make-frame-command= 9; with C-x 5 2
Quit
completing-read-default: Command attempted to us= e minibuffer while in minibuffer
Quit [2 times]

Load-path shadows= :
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug m= essage format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail= -parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 = ietf-drums mm-util
mail-prsvr mail-utils shell pcomplete comint ansi-color ring help-mode
e= asymenu time-date japan-util tooltip ediff-hook vc-hooks
lisp-float-type= mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win
w32-vars tool-= bar dnd fontset image regexp-opt fringe tabulated-list
newcomment lisp-mode register page menu-bar rfn-eshadow timer select
scr= oll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
ge= orgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean = japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
ab= brev minibuffer loaddefs button faces cus-face macroexp files
text-prope= rties overlay sha1 md5 base64 format env code-pages mule
custom widget h= ashtable-print-readable backquote make-network-process
w32 multi-tty emacs)

--047d7b15a7356f3db604e14d6ed7--