From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.devel Subject: Re: GNU Guile 2.1.5 released (beta) Date: Fri, 16 Dec 2016 05:50:03 -0800 Message-ID: <98CCD0B6-7D9F-4357-B217-E4534ECB3549@gmail.com> References: <07F04476-6837-4DBD-A7FB-525F3660982C@gmail.com> <20161213012455.EKTND.4212.root@cdptpa-web08> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_4A8FDFEA-25F4-4463-99BE-F8A6B5D599C5" X-Trace: blaine.gmane.org 1481896238 6161 195.159.176.226 (16 Dec 2016 13:50:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Dec 2016 13:50:38 +0000 (UTC) Cc: Andy Wingo To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Dec 16 14:50:35 2016 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cHsu8-0000VY-Tt for guile-devel@m.gmane.org; Fri, 16 Dec 2016 14:50:33 +0100 Original-Received: from localhost ([::1]:60627 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHsu8-0006Aj-OK for guile-devel@m.gmane.org; Fri, 16 Dec 2016 08:50:32 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHstq-0006Ad-HA for guile-devel@gnu.org; Fri, 16 Dec 2016 08:50:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHstm-0002hP-Ha for guile-devel@gnu.org; Fri, 16 Dec 2016 08:50:14 -0500 Original-Received: from mail-pg0-x22c.google.com ([2607:f8b0:400e:c05::22c]:34761) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cHstm-0002eb-90 for guile-devel@gnu.org; Fri, 16 Dec 2016 08:50:10 -0500 Original-Received: by mail-pg0-x22c.google.com with SMTP id a1so9743440pgf.1 for ; Fri, 16 Dec 2016 05:50:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=eg/ClBPxHczqZx7vnigp6Fwlfa4Y/wLAHGPdPkvK/JU=; b=DrXfo3SMnObKXakOML0AvZ3yE4E+DdZ2hUH03Cj7wkbCEPITBSbwwXB4ZtGDvjG2/+ EddWvRmCcMTfGhE0FUmmp5Ni3UGYxX2JuOqLu9P6XOQQiONRVfkAkw1ZpPOR17WbOyPt e75hHsvHeSYaT3tySc68CX//Y/8rcEWnlWI3/Ste+PcKJM6AtpveGA6NBvKIzXa7p6d/ X/GZxG/t4PCyWzA0P/UtqDarSt9K3GK4aCJQDjflK9Jk2sm7A/LLOxyspd0mZr5mA3wj JXUaQm2L41n6WyrAjeLXaorvbuJ+Ba6XC1oFWQk4OMggthLNczJzoP3RFOYqPhFxDeEn YWBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=eg/ClBPxHczqZx7vnigp6Fwlfa4Y/wLAHGPdPkvK/JU=; b=VxIDMf6fiNBTO9p+lQ3x/FWmi5mXekoy64h59sDknN9dPqcVCthFygnwKoKRjsR0OF uBObTKldvIcRACJZYagIYgmeT8UeJEn5SNHyuDBE2sK+/+0oGEYT05brKCwLh9I3oVy7 qXK9EB286tDIkPzqYe3n6aYZ51FTD1f7Y2flGt/pfxs12Hth3KZfWL0rGcymILalmm/H 84NtWqTr49/uoCxmmdqcyrvc/xmILcqbOAL8FWxXINrj0n7Ug0kP3/MbYKav6CIakNUQ O6Y3RzRoG5fQCbVeE22BSMGLoVns2SvtIXBcArLjykJBRnVzr2CaW11+y4yYuILffXe3 XjAw== X-Gm-Message-State: AKaTC03QAtCkSIC/oY90uBNwCtkrgu1i2wcOnCyPIs+m1zTB1NSlHOPqYyvSBRCilQNrEA== X-Received: by 10.99.143.9 with SMTP id n9mr5735304pgd.133.1481896207383; Fri, 16 Dec 2016 05:50:07 -0800 (PST) Original-Received: from nautilus.championbroadband.com (216-165-246-244.championbroadband.com. [216.165.246.244]) by smtp.gmail.com with ESMTPSA id q145sm12307263pfq.22.2016.12.16.05.50.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Dec 2016 05:50:06 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3259) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c05::22c X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:18798 Archived-At: --Apple-Mail=_4A8FDFEA-25F4-4463-99BE-F8A6B5D599C5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 OK. This is gonna be hard to trace down. I am on a Mac running Sierra, 10.12.2. At work I am running 10.9 I = believe, and I see the same behavior. If I compile with gcc 6.2 or gcc4.9, but no extra flags besides = =E2=80=94prefix, I get the following failure: FAIL: numbers.test: string->number: valid complex number strings and trace this down to=20 meta/guile -c '(display (eqv? (imag-part (string->number "#i1@-0")) = -0.0))' =3D> #f If I add =E2=80=9C-g=E2=80=9D to CFLAGS & LDFLAGS, or just compile with = CFLAGS=3D-O0 I get FAIL: mutex-ownership: mutex with owner not retained (bug #27450) Note the following modification from the above guardian test: (define gg #f) (let ((g (make-guardian))) (g (let ((m (make-mutex))) (lock-mutex m) (if (mutex? m) #t (display "0: not mutex\n")) m)) =20 (set! gg g) (simple-format #t "1: g=3D~S\n" g) =20 ;; Avoid false references to M on the stack. (clear-stale-stack-references) =20 (gc) (gc) (simple-format #t "2: g=3D~S\n" g) (let ((m (g))) (simple-format #t "3: g=3D~S\n" g) (and (mutex? m) (eq? (mutex-owner m) (current-thread))))) (gc)(gc) (simple-format #t "9:gg=3D~S\n" gg) The above generates 1: g=3D# 2: g=3D# 3: g=3D# 9:gg=3D# I believe both 2 and 3 would ordinarily indicate the mutex unreachable. Any ideas on how to chase this down? Matt= --Apple-Mail=_4A8FDFEA-25F4-4463-99BE-F8A6B5D599C5 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 OK.  This is gonna be hard to trace = down.
I am on a Mac running Sierra, 10.12.2.  At work I am = running 10.9 I believe, and I see the same behavior.


If I compile with gcc 6.2 or = gcc4.9, but no extra flags besides =E2=80=94prefix, I get the following = failure:

FAIL: numbers.test: string->number: valid complex number = strings

and trace this = down to 

meta/guile -c '(display (eqv? (imag-part (string->number = "#i1@-0")) -0.0))' =3D> #f


If I = add =E2=80=9C-g=E2=80=9D to CFLAGS & LDFLAGS, or just compile with = CFLAGS=3D-O0 I get

FAIL: mutex-ownership: mutex with owner not retained (bug = #27450)

Note the = following modification from the above guardian test:

(define gg #f)

(let ((g (make-guardian)))
  (g (let ((m (make-mutex)))
      =  (lock-mutex m)
  =      (if (mutex? m) #t (display "0: not = mutex\n"))
    =    m))
  
  (set! gg g)
  (simple-format #t "1: g=3D~S\n" g)
  
  ;; Avoid false references to = M on the stack.
  = (clear-stale-stack-references)
  
  (gc) (gc)
  (simple-format #t "2: g=3D~S\n" g)
  (let ((m = (g)))
    = (simple-format #t "3: g=3D~S\n" g)
    (and (mutex? m)
= (eq? (mutex-owner m) (current-thread)))))

(gc)(gc)
(simple-format #t "9:gg=3D~S\n" = gg)


The = above generates
1: g=3D#<guardian 10228dba0 = (reachable: 1 unreachable: 0)>
2: g=3D#<guardian 10228dba0 = (reachable: 1 unreachable: 0)>
3: g=3D#<guardian 10228dba0 = (reachable: 1 unreachable: 0)>
9:gg=3D#<guardian 10228dba0 = (reachable: 0 unreachable: 1)>

I believe both 2 and 3 would = ordinarily indicate the mutex unreachable.

Any ideas on how to chase this = down?

Matt
= --Apple-Mail=_4A8FDFEA-25F4-4463-99BE-F8A6B5D599C5--