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: Preventing stack overflows with alloca. Date: Fri, 18 Jun 2004 23:19:15 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200406181113.UAA03743@etlken.m17n.org> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1087615193 24979 80.91.224.253 (19 Jun 2004 03:19:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 19 Jun 2004 03:19:53 +0000 (UTC) Cc: emacs-devel@gnu.org, handa@m17n.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Jun 19 05:19:49 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BbWOT-0001kJ-00 for ; Sat, 19 Jun 2004 05:19:49 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BbWOT-0003SO-00 for ; Sat, 19 Jun 2004 05:19:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BbWPb-0007sq-AQ for emacs-devel@quimby.gnus.org; Fri, 18 Jun 2004 23:20:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BbWP8-0007ek-Vt for emacs-devel@gnu.org; Fri, 18 Jun 2004 23:20:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BbWP8-0007dv-3Q for emacs-devel@gnu.org; Fri, 18 Jun 2004 23:20:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BbWP7-0007do-Te for emacs-devel@gnu.org; Fri, 18 Jun 2004 23:20:29 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BbWNx-0006FK-Hk for emacs-devel@gnu.org; Fri, 18 Jun 2004 23:19:18 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1BbWNv-0001Eh-Ms; Fri, 18 Jun 2004 23:19:15 -0400 Original-To: storm@cua.dk (Kim F. Storm) In-reply-to: (storm@cua.dk) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:25098 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25098 Since old_value is not a lisp object here, we would need to fix (hack) GC like this: for (bind = specpdl; bind != specpdl_ptr; bind++) { mark_object (bind->symbol); if (bind->func != safe_alloca_unwind) mark_object (bind->old_value); } Or else use make_save_value to convert it to a clean Lisp object. Then GC won't need changing.