From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludovic.courtes@laas.fr (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: struct tail array, compare and segv Date: Mon, 26 Feb 2007 10:22:46 +0100 Organization: LAAS-CNRS Message-ID: <87ejodtgrd.fsf@laas.fr> References: <877ivlz0ua.fsf@zip.com.au> <87sle8ebld.fsf@laas.fr> <87ejovt8w9.fsf@zip.com.au> <87fy9atpxw.fsf@laas.fr> <871wkd3im8.fsf@zip.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172481795 27365 80.91.229.12 (26 Feb 2007 09:23:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Feb 2007 09:23:15 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Feb 26 10:23:09 2007 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HLc4a-0002SF-BZ for guile-devel@m.gmane.org; Mon, 26 Feb 2007 10:23:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HLc4Z-0007Oq-F7 for guile-devel@m.gmane.org; Mon, 26 Feb 2007 04:23:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HLc4L-0007Nh-HC for guile-devel@gnu.org; Mon, 26 Feb 2007 04:22:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HLc4J-0007Lx-Jd for guile-devel@gnu.org; Mon, 26 Feb 2007 04:22:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HLc4I-0007Lb-SF for guile-devel@gnu.org; Mon, 26 Feb 2007 04:22:51 -0500 Original-Received: from laas.laas.fr ([140.93.0.15]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1HLc4I-00054z-C9 for guile-devel@gnu.org; Mon, 26 Feb 2007 04:22:50 -0500 Original-Received: from messiaen.laas.fr (messiaen [IPv6:2001:660:6602:0:230:65ff:fed4:9d20]) by laas.laas.fr (8.13.8/8.13.8) with SMTP id l1Q9MkwC027720 for ; Mon, 26 Feb 2007 10:22:46 +0100 (MET) Original-Received: by messiaen.laas.fr (sSMTP sendmail emulation); Mon, 26 Feb 2007 10:22:46 +0100 X-URL: http://www.laas.fr/~lcourtes/ X-Revolutionary-Date: 8 =?iso-8859-1?Q?Vent=F4se?= an 215 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEB1F5364 X-PGP-Key: http://www.laas.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: powerpc-unknown-linux-gnu Mail-Followup-To: guile-devel@gnu.org In-Reply-To: <871wkd3im8.fsf@zip.com.au> (Kevin Ryde's message of "Mon, 26 Feb 2007 10:47:11 +1100") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-Spam-Score: 0.306 () MAILTO_TO_SPAM_ADDR,NO_RELAYS X-Scanned-By: MIMEDefang at CNRS-LAAS on IPv6:2001:660:6602::2 X-detected-kernel: Solaris 10 (beta) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:6564 Archived-At: Hi, Kevin Ryde writes: > I'm looking at this to allow non-zero tail array only when the layout > provides for it. I think all the internal uses of structs have no > tail array (and a zero size) so that should all be ok. Dunno if > anyone else might have used the tail size to get some sneaky extra > space. Sounds like the wrong thing to do, but could always be > loosened up again later. Your patch looks good to me. I think it is safe to assume than nobody has passed a non-zero tail size to `make-struct' when the underlying vtable's layout doesn't allow for it because the resulting struct is just unusable (its tail elements are left uninitialized, as we saw earlier in one of these threads). Thanks, Ludovic. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel