From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [jaa@cc.jyu.fi: BUG REPORT: Emacs is aborting sporadically by itself] Date: Sat, 22 Mar 2003 21:54:19 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <3E7B5C45.5070503@swipnet.se> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1048388190 1652 80.91.224.249 (23 Mar 2003 02:56:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 23 Mar 2003 02:56:30 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Mar 23 03:56:28 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18wveu-0000QN-00 for ; Sun, 23 Mar 2003 03:56:28 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18wvhP-0004RB-00 for ; Sun, 23 Mar 2003 03:59:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18wvf1-0004qt-06 for emacs-devel@quimby.gnus.org; Sat, 22 Mar 2003 21:56:35 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18wve2-0004C3-00 for emacs-devel@gnu.org; Sat, 22 Mar 2003 21:55:34 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18wvdt-00046r-00 for emacs-devel@gnu.org; Sat, 22 Mar 2003 21:55:26 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.10.13) id 18wvcp-0003gF-00 for emacs-devel@gnu.org; Sat, 22 Mar 2003 21:54:19 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 18wvcp-0000nT-00; Sat, 22 Mar 2003 21:54:19 -0500 Original-To: "Jan D." In-reply-to: <3E7B5C45.5070503@swipnet.se> (jan.h.d@swipnet.se) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:12536 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12536 This and the other stack trace he sent shows a crash inside x_get_local_selection. That function, and x_handle_selection_request where it is called from, has local Lisp_object:s but no GCPRO. Isn't that needed? x_handle_selection_request does have GCPRO for that region. As for x_get_local_selection, if you are a real stickler, perhaps it should have on for handler_fn, but in practice that won't matter. No other Lisp value is live across that call. But this crash has nothing to do with GCPRO, because GCPRO's are no-ops on this configuration. It uses the GC_MARK_STACK code instead. The bug appears to be in that code.