From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: allocate_string_data memory corruption Date: Sat, 21 Jan 2006 12:31:14 -0500 Message-ID: <87vewda3od.fsf@stupidchicken.com> References: <87vewha2zl.fsf@stupidchicken.com> <87zmlq6w62.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1137870859 1222 80.91.229.2 (21 Jan 2006 19:14:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 21 Jan 2006 19:14:19 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 21 20:14:17 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 1F0OBh-0000WD-Dk for ged-emacs-devel@m.gmane.org; Sat, 21 Jan 2006 20:14:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F0OEF-0005SR-4q for ged-emacs-devel@m.gmane.org; Sat, 21 Jan 2006 14:16:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F0Mcl-0003BD-5i for emacs-devel@gnu.org; Sat, 21 Jan 2006 12:34:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F0Mcf-00039x-RS for emacs-devel@gnu.org; Sat, 21 Jan 2006 12:33:59 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F0Mcd-000391-IF for emacs-devel@gnu.org; Sat, 21 Jan 2006 12:33:56 -0500 Original-Received: from [18.95.6.195] (helo=localhost.localdomain) by monty-python.gnu.org with esmtp (Exim 4.34) id 1F0Mh3-00047A-0t; Sat, 21 Jan 2006 12:38:29 -0500 Original-Received: by localhost.localdomain (Postfix, from userid 1000) id 3EF7D1E4324; Sat, 21 Jan 2006 12:31:14 -0500 (EST) Original-To: Stefan Monnier In-Reply-To: <87zmlq6w62.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Fri, 20 Jan 2006 23:48:30 -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:49360 Archived-At: Stefan Monnier writes: > 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. How do we get around this? Is it OK for x_catch_errors to return without doing anything, if it is called in a signal handler? And, as I've asked previously, do you see any disadvantage to simply using BLOCK_INPUT in the string/cons allocation functions?