From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: editfns.c (Fformat): fix for segfault Date: Tue, 29 Apr 2003 11:50:38 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200304290250.LAA11997@etlken.m17n.org> References: <851xzo9f2l.fsf@pi.meyering.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1051584691 1243 80.91.224.249 (29 Apr 2003 02:51:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 29 Apr 2003 02:51:31 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Apr 29 04:51:29 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 19ALD2-0000JE-00 for ; Tue, 29 Apr 2003 04:51:08 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19ALLU-0003Z1-00 for ; Tue, 29 Apr 2003 04:59:53 +0200 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 19ALD1-0007wX-01 for emacs-devel@quimby.gnus.org; Mon, 28 Apr 2003 22:51:07 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19ALCf-0007wF-00 for emacs-devel@gnu.org; Mon, 28 Apr 2003 22:50:45 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19ALCe-0007vg-00 for emacs-devel@gnu.org; Mon, 28 Apr 2003 22:50:44 -0400 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19ALCd-0007v8-00; Mon, 28 Apr 2003 22:50:43 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2])h3T2odo25015; Tue, 29 Apr 2003 11:50:39 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) h3T2ocA23152; Tue, 29 Apr 2003 11:50:38 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id LAA11997; Tue, 29 Apr 2003 11:50:38 +0900 (JST) Original-To: rms@gnu.org In-reply-to: (message from Richard Stallman on Mon, 28 Apr 2003 19:38:40 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) Original-cc: jim@meyering.net 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:13532 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13532 In article , Richard Stallman writes: > This is my analysis. In the first scan, Fchar_to_string or > Fprint1_to_string are called, and they will relocate a data > of a Lisp string (in the current case, args[0]). > How can either of these functions cause a GC? As I'm not familiar with Emacs' memory allocation, my guess may be wrong. What I thought was that buffers and strings may be relocated without GC if Emacs is using a relocatable allocator for them. Only that explains why this bug happens. --- Ken'ichi HANDA handa@m17n.org