From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: allocate_string_data memory corruption Date: Fri, 20 Jan 2006 23:48:30 -0500 Message-ID: <87zmlq6w62.fsf-monnier+emacs@gnu.org> References: <87vewha2zl.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1137818942 27926 80.91.229.2 (21 Jan 2006 04:49:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 21 Jan 2006 04:49:02 +0000 (UTC) Cc: cyd@stupidchicken.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 21 05:49:01 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F0AgK-0004j8-UN for ged-emacs-devel@m.gmane.org; Sat, 21 Jan 2006 05:48:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F0Aiq-0003O1-V2 for ged-emacs-devel@m.gmane.org; Fri, 20 Jan 2006 23:51:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F0AiX-0003Jq-1n for emacs-devel@gnu.org; Fri, 20 Jan 2006 23:51:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F0AiV-0003Ev-CS for emacs-devel@gnu.org; Fri, 20 Jan 2006 23:51:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F0AiV-0003Ef-8I for emacs-devel@gnu.org; Fri, 20 Jan 2006 23:51:11 -0500 Original-Received: from [209.226.175.97] (helo=tomts40-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1F0Amm-0007U5-Od; Fri, 20 Jan 2006 23:55:36 -0500 Original-Received: from alfajor ([67.71.116.165]) by tomts40-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060121044830.BZPF5216.tomts40-srv.bellnexxia.net@alfajor>; Fri, 20 Jan 2006 23:48:30 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id AAC9AD73B3; Fri, 20 Jan 2006 23:48:30 -0500 (EST) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Fri, 20 Jan 2006 17:58:02 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:49347 Archived-At: > Maybe eassert(!handling_signal) should be added to allocate_string > (and maybe it will catch the current bug). > It seems worth a try. There's actually one candidate: #1 0x081dd84a in die (msg=0x8319288 "assertion failed: !handling_signal", file=0x8318980 "alloc.c", line=2744) at alloc.c:6210 #2 0x081e0f25 in Fcons (car=141994859, cdr=140190650) at alloc.c:2744 #3 0x08130686 in x_catch_errors (dpy=0x8808db8) at xterm.c:7462 #4 0x0813bb08 in x_real_positions (f=0x88c2518, xptr=0x47, yptr=0x47) at xfns.c:580 #5 0x08133d09 in handle_one_xevent (dpyinfo=0x8814cf0, eventp=0xbfffdbfc, finish=0xbfffdc88, hold_quit=0xbfffecbc) at xterm.c:5871 #6 0x081376bb in XTread_socket (sd=0, expected=1, hold_quit=0xbfffecbc) at xterm.c:6981 #7 0x08174b69 in read_avail_input (expected=1) at keyboard.c:6703 #8 0x08174d2a in handle_async_input () at keyboard.c:6855 if you look at x_catch_errors, you'll see that it allocates one lisp_cons cell, one lisp_string and one lisp_misc. Whether it's the cause of the bugs we see, I don't know, but since it's run from the signal handler, it can be executed at potentially any time. Stefan