From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Raeburn Newsgroups: gmane.lisp.guile.devel Subject: Re: master with threaded gc Date: Mon, 21 Sep 2009 22:14:23 -0400 Message-ID: <2DC9DB93-0A92-46ED-BAE0-3592F28FF92D@raeburn.org> References: <878wg8l2ja.fsf@gnu.org> <213173.30591.qm@web37907.mail.mud.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1253585698 19732 80.91.229.12 (22 Sep 2009 02:14:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Sep 2009 02:14:58 +0000 (UTC) Cc: =?ISO-8859-1?Q?Ludovic_Court=E8s?= , guile-devel@gnu.org To: Mike Gran Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Sep 22 04:14:51 2009 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 1Mpuu2-0001FJ-F6 for guile-devel@m.gmane.org; Tue, 22 Sep 2009 04:14:50 +0200 Original-Received: from localhost ([127.0.0.1]:55681 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mpuu1-0002Ww-RS for guile-devel@m.gmane.org; Mon, 21 Sep 2009 22:14:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mputu-0002Ty-Db for guile-devel@gnu.org; Mon, 21 Sep 2009 22:14:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mputq-0002Oq-NU for guile-devel@gnu.org; Mon, 21 Sep 2009 22:14:42 -0400 Original-Received: from [199.232.76.173] (port=54843 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mputq-0002Oh-Jy for guile-devel@gnu.org; Mon, 21 Sep 2009 22:14:38 -0400 Original-Received: from splat.raeburn.org ([69.25.196.39]:64517 helo=raeburn.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mputg-00024m-CC; Mon, 21 Sep 2009 22:14:36 -0400 Original-Received: from [10.0.0.172] (squish.raeburn.org [10.0.0.172]) by raeburn.org (8.14.3/8.14.1) with ESMTP id n8M2ENDS017030; Mon, 21 Sep 2009 22:14:23 -0400 (EDT) In-Reply-To: <213173.30591.qm@web37907.mail.mud.yahoo.com> X-Mailer: Apple Mail (2.936) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:9381 Archived-At: On Sep 21, 2009, at 13:21, Mike Gran wrote: > There is another curious thing, which may be unrelated > >>> #6 0x00007f7ffdb80605 in scm_lfwrite_str (str=0x6e4720, >>> port=0x5bcba0) at ports.c:1276 >>> #7 0x00007f7ffdb848fc in iprin1 (exp=0xfffffffffffffff8, >>> port=0x5bcba0, pstate=0xdd6770) at print.c:723 >>> #8 0x00007f7ffdb84f18 in scm_prin1 (exp=0x6e4720, port=0x5bcba0, >>> writingp=0) at print.c:890 > > In the above, 'exp' is an SCM string that is being passed down from > func to > func. It is weird that its address jumps from 0x6e4720 to > 0xfffffffffffffff8 then back to 0x6e4720. That shouldn't happen. That happens sometimes during optimization, especially if you've got an ABI where arguments are passed in registers -- or if, like on 32- bit x86 and I'd guess probably 64-bit, the compiler optimizes calls to certain static functions by altering the ABI and passing arguments in registers -- and the value is no longer needed locally so the incoming argument register can be reused. I've seen some cases where GDB can tell you that an argument's value is unavailable because of optimization, but I don't know what combination of GCC version, GDB version, and debug info format might be needed to get that sort of info. Compiling without optimization, or making the function non-static, may make debugging work better. Ken