From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#15802: 24.3.50; PUSH_HANDLER leaks memory? Date: Mon, 04 Nov 2013 19:32:39 +0100 Message-ID: <674ECE0A-ED5C-41A0-A4E8-417318065CC0@me.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1816\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1383590602 7521 80.91.229.3 (4 Nov 2013 18:43:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Nov 2013 18:43:22 +0000 (UTC) To: 15802@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 04 19:43:26 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 1VdP7V-0003Jo-J1 for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Nov 2013 19:43:25 +0100 Original-Received: from localhost ([::1]:51492 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdP7V-00080y-7v for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Nov 2013 13:43:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdP7H-0007pF-S0 for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2013 13:43:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdP78-00034y-5f for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2013 13:43:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdP78-00034j-3Q for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2013 13:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VdP77-0002db-T9 for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2013 13:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Nov 2013 18:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15802 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.138359054410088 (code B ref -1); Mon, 04 Nov 2013 18:43:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Nov 2013 18:42:24 +0000 Original-Received: from localhost ([127.0.0.1]:34537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VdP6W-0002cd-6y for submit@debbugs.gnu.org; Mon, 04 Nov 2013 13:42:24 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51753) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VdOxn-0002Mk-Pt for submit@debbugs.gnu.org; Mon, 04 Nov 2013 13:33:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdOxY-0006ZM-Uu for submit@debbugs.gnu.org; Mon, 04 Nov 2013 13:33:18 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdOxY-0006ZI-Rb for submit@debbugs.gnu.org; Mon, 04 Nov 2013 13:33:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdOxR-0004Db-7A for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2013 13:33:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdOxJ-0006UG-Sb for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2013 13:33:01 -0500 Original-Received: from st11p02mm-asmtpout004.mac.com ([17.172.220.239]:38342 helo=st11p02mm-asmtp004.mac.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdOxJ-0006Ta-OO for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2013 13:32:53 -0500 Original-Received: from [172.20.199.13] (h-46-59-42-57.na.cust.bahnhof.se [46.59.42.57]) by st11p02mm-asmtp004.mac.com (Oracle Communications Messaging Server 7u4-27.08(7.0.4.27.7) 64bit (built Aug 22 2013)) with ESMTPSA id <0MVR0074V4UF2PB0@st11p02mm-asmtp004.mac.com> for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2013 18:32:41 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8794,1.0.431,0.0.0000 definitions=2013-11-04_01:2013-11-04, 2013-11-04, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=1 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1308280000 definitions=main-1311040129 X-Mailer: Apple Mail (2.1816) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Mon, 04 Nov 2013 13:42:23 -0500 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:79992 Archived-At: Hello. While running leaks on OSX, it indicated that PUSH_HANDLER. I can't = find anywhere where handlerlist members are freed. Consider handlerlist =3D NULL. One PUSH_HANDLER will then allocate one struct handler that becomes = handlerlist, next is NULL and nextfree is NULL. In the code, for example internal_condition_case_1, the code simply does handlerlist =3D handlerllist->next thus loosing the allocated struct. There must be a corresponding xfree = somewhere but I can't find it. Jan D. In GNU Emacs 24.3.50.1 (x86_64-apple-darwin13.0.0, NS = apple-appkit-1265.00) of 2013-11-04 on zeplin Bzr revision: 114945 jan.h.d@swipnet.se-20131104175717-8j1fzo686naq33js Windowing system distributor `Apple', version 10.3.1265 Configured using: `configure --verbose --with-ns CFLAGS=3D-g3' Important settings: value of $LC_COLLATE: C value of $LANG: sv_SE.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: 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: x r e p o r t - e m Recent messages: Unable to load color "unspecified-fg" For information about GNU Emacs and the GNU system, type C-h C-a. Unable to load color "unspecified-fg" [2 times] Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu 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 time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-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 nadvice 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 cocoa ns multi-tty emacs)