From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Bill Schottstaedt" Newsgroups: gmane.lisp.guile.bugs Subject: Re: guile 1.9.0 scm_read_hash_extend gc trouble Date: Tue, 23 Jun 2009 12:18:16 -0700 Message-ID: <20090623191142.M93181@ccrma.Stanford.EDU> References: <20090621120823.M97037@ccrma.Stanford.EDU> <873a9tr46q.fsf@arudy.ossau.uklinux.net> <87skhtpolb.fsf@arudy.ossau.uklinux.net> <20090622171923.M95660@ccrma.Stanford.EDU> <87bpof7sw3.fsf@arudy.ossau.uklinux.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: ger.gmane.org 1245787497 9628 80.91.229.12 (23 Jun 2009 20:04:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Jun 2009 20:04:57 +0000 (UTC) Cc: bug-guile@gnu.org To: Neil Jerram Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Jun 23 22:04:50 2009 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MJCEb-00042i-Tt for guile-bugs@m.gmane.org; Tue, 23 Jun 2009 22:04:50 +0200 Original-Received: from localhost ([127.0.0.1]:48191 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJCEb-0006Po-GD for guile-bugs@m.gmane.org; Tue, 23 Jun 2009 16:04:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJBVk-0004qS-PZ for bug-guile@gnu.org; Tue, 23 Jun 2009 15:18:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJBVg-0004mX-4M for bug-guile@gnu.org; Tue, 23 Jun 2009 15:18:28 -0400 Original-Received: from [199.232.76.173] (port=47440 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJBVf-0004mS-W1 for bug-guile@gnu.org; Tue, 23 Jun 2009 15:18:24 -0400 Original-Received: from smtp2.stanford.edu ([171.67.219.82]:37912) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MJBVf-0000mo-KK for bug-guile@gnu.org; Tue, 23 Jun 2009 15:18:23 -0400 Original-Received: from smtp2.stanford.edu (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 1FC15170888; Tue, 23 Jun 2009 12:18:22 -0700 (PDT) Original-Received: from cm-mail.stanford.edu (cm-mail.Stanford.EDU [171.64.197.135]) by smtp2.stanford.edu (Postfix) with ESMTP id BC6811705ED; Tue, 23 Jun 2009 12:18:20 -0700 (PDT) Original-Received: from ccrma.Stanford.EDU (localhost.localdomain [127.0.0.1]) by cm-mail.stanford.edu (8.13.8/8.13.8) with ESMTP id n5NJIGAo021416; Tue, 23 Jun 2009 12:18:17 -0700 In-Reply-To: <87bpof7sw3.fsf@arudy.ossau.uklinux.net> X-Mailer: OpenWebMail 2.53 X-OriginatingIP: 71.198.184.220 (bil) X-Virus-Scanned: ClamAV 0.94/9497/Tue Jun 23 03:30:11 2009 on cm-mail.stanford.edu X-Virus-Status: Clean X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4243 Archived-At: This is trickier than I thought -- it's not the GC after all. In my configure script for Snd, autoconf defines _FILE_OFFSET_BITS to 64 if large files are implemented. The config.h "include" precedes everything else. When scm_getc is called within guile, it thinks sizeof(scm_t_port) is 92. Everything is fine until my skip comment procedure is called (with this 92 byte struct) -- it thinks the scm_t_port size is 104, and fields like rw_active (in scm_getc which is apparently expanded inline) are not where it expects them to be! If I undef _FILE_OFFSET_BITS, both agree on the struct size, and there is no problem.