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: GC crashes Date: Wed, 14 Dec 2005 16:49:53 -0500 Message-ID: <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 1134602081 3414 80.91.229.2 (14 Dec 2005 23:14:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Dec 2005 23:14:41 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 15 00:14:37 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Emfni-0000iJ-5l for ged-emacs-devel@m.gmane.org; Thu, 15 Dec 2005 00:12:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EmfoK-0003j1-3j for ged-emacs-devel@m.gmane.org; Wed, 14 Dec 2005 18:13:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EmeUq-0008V0-U8 for emacs-devel@gnu.org; Wed, 14 Dec 2005 16:49:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EmeUp-0008UM-58 for emacs-devel@gnu.org; Wed, 14 Dec 2005 16:49:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EmeUo-0008UD-Ng for emacs-devel@gnu.org; Wed, 14 Dec 2005 16:49:10 -0500 Original-Received: from [18.19.6.82] (helo=localhost.localdomain) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EmeWx-0001CK-4W for emacs-devel@gnu.org; Wed, 14 Dec 2005 16:51:23 -0500 Original-Received: by localhost.localdomain (Postfix, from userid 1000) id 928DC120800; Wed, 14 Dec 2005 16:49:53 -0500 (EST) Original-To: emacs-devel@gnu.org 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:47742 Archived-At: 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.