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: Tue, 24 Jan 2006 12:23:17 -0500 Message-ID: <87oe21ilq2.fsf@stupidchicken.com> 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 1138126012 8362 80.91.229.2 (24 Jan 2006 18:06:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Jan 2006 18:06:52 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 24 19:06:48 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 1F1SYt-0002Ny-NP for ged-emacs-devel@m.gmane.org; Tue, 24 Jan 2006 19:06:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F1Sba-0004ns-UX for ged-emacs-devel@m.gmane.org; Tue, 24 Jan 2006 13:09:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F1Ruj-0006eD-HL for emacs-devel@gnu.org; Tue, 24 Jan 2006 12:25:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F1Ruf-0006cj-J4 for emacs-devel@gnu.org; Tue, 24 Jan 2006 12:25:03 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F1Ruf-0006cS-7S for emacs-devel@gnu.org; Tue, 24 Jan 2006 12:25:01 -0500 Original-Received: from [18.19.6.82] (helo=localhost.localdomain) by monty-python.gnu.org with esmtp (Exim 4.34) id 1F1Rzb-0005bb-UM for emacs-devel@gnu.org; Tue, 24 Jan 2006 12:30:08 -0500 Original-Received: by localhost.localdomain (Postfix, from userid 1000) id DFF3D1208AF; Tue, 24 Jan 2006 12:23:17 -0500 (EST) Original-To: Stefan Monnier In-Reply-To: (Stefan Monnier's message of "Wed, 18 Jan 2006 15:48:33 -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:49491 Archived-At: Stefan Monnier writes: >> In this function, data->string is set to s, and nbytes is set to >> nbytes. If check_sblock is a no-op, there should be no change. >> However, we get an abort on the second debugging check: > > BTW, it's possible that -DSYNC_INPUT fixes the bug. I just got a reply from Friedrich Friedrichs: CFLAGS="-O0 -DSYNC_INPUT -g" ./configure make clean make Then see if you can crash Emacs again. (The point here is to see if the -DSYNC_INPUT compilation flag helps remove the problem.) I can't crash it with -DSYNC_INPUT enabled. (At least it doesn't crash during the usual operations and I was able to re-publish my whole planner-muse-wiki without problems.) So it looks like signal handling during string/cons allocation is indeed the culprit.