From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jan Nieuwenhuizen Newsgroups: gmane.lisp.guile.bugs Subject: bug#33216: using custom optimization options eats goops object Date: Wed, 31 Oct 2018 15:51:31 +0100 Message-ID: <877ehyrwy4.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1540997427 16062 195.159.176.226 (31 Oct 2018 14:50:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 31 Oct 2018 14:50:27 +0000 (UTC) To: 33216@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Oct 31 15:50:23 2018 Return-path: Envelope-to: guile-bugs@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 1gHrp6-00043m-SU for guile-bugs@m.gmane.org; Wed, 31 Oct 2018 15:50:21 +0100 Original-Received: from localhost ([::1]:60079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHrrD-0001HO-BP for guile-bugs@m.gmane.org; Wed, 31 Oct 2018 10:52:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHrr5-0001GB-4Z for bug-guile@gnu.org; Wed, 31 Oct 2018 10:52:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHrqs-0006Z7-BZ for bug-guile@gnu.org; Wed, 31 Oct 2018 10:52:14 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53101) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHrqk-0006Xx-Vr for bug-guile@gnu.org; Wed, 31 Oct 2018 10:52:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gHrqk-0002OP-TF for bug-guile@gnu.org; Wed, 31 Oct 2018 10:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 31 Oct 2018 14:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33216 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15409975099174 (code B ref -1); Wed, 31 Oct 2018 14:52:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Oct 2018 14:51:49 +0000 Original-Received: from localhost ([127.0.0.1]:57359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHrqX-0002Nu-C9 for submit@debbugs.gnu.org; Wed, 31 Oct 2018 10:51:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHrqU-0002Ne-Jj for submit@debbugs.gnu.org; Wed, 31 Oct 2018 10:51:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHrqO-0006QZ-HO for submit@debbugs.gnu.org; Wed, 31 Oct 2018 10:51:41 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:34713) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gHrqO-0006QE-78 for submit@debbugs.gnu.org; Wed, 31 Oct 2018 10:51:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHrqM-0000qu-TK for bug-guile@gnu.org; Wed, 31 Oct 2018 10:51:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHrqL-0006OJ-Sy for bug-guile@gnu.org; Wed, 31 Oct 2018 10:51:38 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHrqH-0006La-Fu; Wed, 31 Oct 2018 10:51:33 -0400 Original-Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=57850 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gHrqH-0001LE-5L; Wed, 31 Oct 2018 10:51:33 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:9253 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi! When running `step.scm' (attached) the expected behaviour is exit 0. Using auto compilation or default optimization options, that's what happens --8<---------------cut here---------------start------------->8--- $ rm -f step.go && guile -e '(step)' step.scm=20 15:39:41 janneke@dundal:~/src/bug-0 --8<---------------cut here---------------end--------------->8--- However, when compiled with a particular set of optimization options (see attached compile.scm), I get --8<---------------cut here---------------start------------->8--- $ rm -f step.go && guile -L . -C . compile.scm && guile -L . -C . -e '(step= )' ;;; WARNING (buggy (#:eliminate-dead-code? #f #:cse? #f)) Backtrace: 4 (apply-smob/1 #) In ice-9/boot-9.scm: 705:2 3 (call-with-prompt ("prompt") # #) In ice-9/eval.scm: 619:8 2 (_ #(#(#))) In oop/goops.scm: 1490:4 1 (cache-miss ()) In unknown file: 0 (scm-error goops-error #f "No applicable method for ~S in call= ~S" (#< .status (1)> (=E2=80=A6)) #) ERROR: In procedure scm-error: No applicable method for #< .status (1)> in call (.status ()) [1]15:40:09 janneke@dundal:~/src/bug-0 --8<---------------cut here---------------end--------------->8--- The error message seems to suggest that `one' is now the empty list. This is with Guile 2.2.4 from current Guix master. Greetings, janneke --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=step.scm Content-Transfer-Encoding: base64 Ozsgcm0gLWYgc3RlcC5nbyAmJiBndWlsZSAtTCAuIC1DIC4gY29tcGlsZS5zY20gJiYgZ3VpbGUg LUwgLiAtQyAuIC1lICcoc3RlcCknCgooZGVmaW5lLW1vZHVsZSAoc3RlcCkKICAjOnVzZS1tb2R1 bGUgKG9vcCBnb29wcykKICAjOmV4cG9ydCAobWFpbikpCgooZGVmaW5lLWNsYXNzIDxub2RlPiAo KQogIChzdGF0dXMgIzpnZXR0ZXIgLnN0YXR1cyAjOmluaXQtdmFsdWUgI2YpKQoKKGRlZmluZSAo bWFpbiAuIGFyZ3MpCiAgKGxldCogKCh6ZXJvIChtYWtlIDxub2RlPikpCiAgICAgICAgIChvbmUg KG1ha2UgPG5vZGU+KSkKICAgICAgICAgKHR3byAoZHVtbXkpKQogICAgICAgICAob25lIChpZiAo ZHVtbXkpIG9uZQogICAgICAgICAgICAgICAgICAgKGlmIChub3QgKGZ1YmFyKSkgb25lCiAgICAg ICAgICAgICAgICAgICAgICAgKGxldCogKCh0IChjb25zdCAjdCkpCgogICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAoZm9vPyAoZnViYXIpKQogICAgICAgICAgICAgICAgICAgICAgICAgICAg ICA7Ozs7IDxub2RlPiBvbmUgYmVjb21lcyAnKCkgaGVyZSogd2l0aG91dCB0aGlzIGxldAogICAg ICAgICAgICAgICAgICAgICAgICAgICAgICA7OyAoZm9vIChjb25zdCB0KSkKICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgOzs7OwoKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKHRo cmVlIChmdWJhcikpKQogICAgICAgICAgICAgICAgICAgICAgICAgKGlmIChmdWJhcikgdGhyZWUK ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoaWYgKGlmIGZvbz8KICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIChmdWJhciB0d28pCiAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAoZnViYXIpKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAo ZnViYXIpCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChmdWJhciBvbmUgKG1ha2Ug PG5vZGU+ICM6c3RhdHVzIHplcm8pKSkpKSkpKSkKICAgIDs7ICogPG5vZGU+IG9uZSBiZWNvbWVz ICcoKQogICAgKC5zdGF0dXMgb25lKSkpCgooZGVmaW5lIChkdW1teSAuIHJlc3QpCiAgI3QpCg== --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=compile.scm Content-Transfer-Encoding: base64 CihkZWZpbmUgJWJ1Z2d5LW9wdGltaXphdGlvbnMKICAnKAogICAgOzsjOnBhcnRpYWwtZXZhbD8g I3QgCiAgICA7OyM6c2ltcGxpZnk/ICNmIAogICAgIzplbGltaW5hdGUtZGVhZC1jb2RlPyAjZiAK ICAgIDs7IzpwcnVuZS10b3AtbGV2ZWwtc2NvcGVzPyAjZiAKICAgIDs7Izpjb250aWZ5PyAjZiAK ICAgIDs7IzppbmxpbmUtY29uc3RydWN0b3JzPyAjZiAKICAgIDs7IzpzcGVjaWFsaXplLXByaW1j YWxscz8gI2YgCiAgICA7OyM6ZWxpZGUtdmFsdWVzPyAjZiAKICAgIDs7IzpwcnVuZS1iYWlsb3V0 cz8gI2YgCiAgICA7OyM6cGVlbC1sb29wcz8gI2YgCiAgICAjOmNzZT8gI2YgCiAgICA7OyM6dHlw ZS1mb2xkPyAjZiAKICAgIDs7IzpyZXNvbHZlLXNlbGYtcmVmZXJlbmNlcz8gI2YgCiAgICA7OyM6 c3BlY2lhbGl6ZS1udW1iZXJzPyAjZiAKICAgIDs7IzpsaWNtPyAjZiAKICAgIDs7Izpyb3RhdGUt bG9vcHM/ICNmIAogICAgOzsjOnByZWNvbG9yLWNhbGxzPyAjZgogICAgKSkKCihjb21waWxlLWZp bGUgInN0ZXAuc2NtIgogICAgICAgICAgICAgICM6b3V0cHV0LWZpbGUgInN0ZXAuZ28iCiAgICAg ICAgICAgICAgIzpjYW5vbmljYWxpemF0aW9uICdhYnNvbHV0ZQogICAgICAgICAgICAgICM6b3B0 cyAod2FybiAnYnVnZ3kgJWJ1Z2d5LW9wdGltaXphdGlvbnMpKQo= --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com --=-=-=--