From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: GC crashes Date: Thu, 15 Dec 2005 00:18:06 +0100 Message-ID: <85vexrgte9.fsf@lola.goethe.zz> References: <87slsv8i2m.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 1134605271 12579 80.91.229.2 (15 Dec 2005 00:07:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Dec 2005 00:07:51 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 15 01:07:49 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EmgeW-00037Q-ID for ged-emacs-devel@m.gmane.org; Thu, 15 Dec 2005 01:07:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Emgf8-0007JZ-4b for ged-emacs-devel@m.gmane.org; Wed, 14 Dec 2005 19:07:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Emft8-0007Vm-7h for emacs-devel@gnu.org; Wed, 14 Dec 2005 18:18:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Emft7-0007VB-Eo for emacs-devel@gnu.org; Wed, 14 Dec 2005 18:18:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Emft7-0007V2-8n for emacs-devel@gnu.org; Wed, 14 Dec 2005 18:18:21 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EmfvG-0003iW-EP for emacs-devel@gnu.org; Wed, 14 Dec 2005 18:20:34 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1EmfrB-0008Np-MF; Wed, 14 Dec 2005 18:16:21 -0500 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id C477C1C4F93D; Thu, 15 Dec 2005 00:18:06 +0100 (CET) Original-To: Chong Yidong In-Reply-To: <87slsv8i2m.fsf@stupidchicken.com> (Chong Yidong's message of "Wed, 14 Dec 2005 16:49:53 -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:47747 Archived-At: Chong Yidong writes: > The latest bt sent by F.D.F., on closer look, is just plain bizarre: > > #0 initialize_cut_buffers (display=0x8, window=16843009) at xselect.c:2316 > data = (unsigned char *) 0x820c124 "\213\367\017\b\001" > > #1 0x080ff866 in Fx_rotate_cut_buffers_internal (n=8) at xselect.c:2470 > window = 73 > props = {0, 0, 0, 0, 136364324, 138120105, 3220375768, 135779857} > display = (Display *) 0x8748060 > sf = (struct frame *) 0x856d418 > > The relevant line of code in Fx_rotate_cut_buffers_internal is > > initialize_cut_buffers (display, window); > > and the code in initialize_cut_buffers is > > static void > initialize_cut_buffers (display, window) > Display *display; > Window window; > { > unsigned char *data = (unsigned char *) ""; > > The values display=0x8, window=16843009 seen in the backtrace probably > mean those haven't been initialized yet. In any case, there's no > reason for "" to map to 0x820c124 "\213\367\017\b\001". > > I don't see any reason for the above code to fail unless it's a > compiler or OS bug. Ideas welcome. from etc/DEBUG: ** When you are trying to analyze failed assertions, it will be essential to compile Emacs either completely without optimizations or at least (when using GCC) with the -fno-crossjumping option. Failure to do so may make the compiler recycle the same abort call for all assertions in a given function, rendering the stack backtrace useless for identifying the specific failed assertion. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum