GNU bug report logs -
#19417
let, assq-set optimization gone wrong?
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19417 in the body.
You can then email your comments to 19417 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guile <at> gnu.org
:
bug#19417
; Package
guile
.
(Sat, 20 Dec 2014 05:53:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Matt Wette <mwette <at> alumni.caltech.edu>
:
New bug report received and forwarded. Copy sent to
bug-guile <at> gnu.org
.
(Sat, 20 Dec 2014 05:53:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
This was discovered with help from godek.maciek <at> gmail.com.
It seems the variable "l" in the second let below is bound to the value from the first.
I ran into this bug when using syntax-rules with a let/a-list in the expansion.
mwette$ cat bug.scm
(let ((l '((a . 1) (b . 2)))) (assq-set! l 'b 99))
(let ((l '((a . 1) (b . 2)))) l)
mwette$ guile20
GNU Guile 2.0.11
Copyright (C) 1995-2014 Free Software Foundation, Inc.
Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.
Enter `,help' for help.
scheme@(guile-user)> (load "bug.scm")
$1 = ((a . 1) (b . 99))
scheme@(guile-user)> %guile-build-info
$2 = ((buildstamp . "2014-10-07 02:36:10") (CFLAGS . " -I/opt/local/include -D_THREAD_SAFE ") (LIBS . "-L/opt/local/lib -lm ") (libguileinterface . "29:2:7") (guileversion . "2.0.11") (extensiondir . "/opt/local/lib/guile/2.0/extensions") (pkgincludedir . "/opt/local/include/guile") (pkglibdir . "/opt/local/lib/guile") (pkgdatadir . "/opt/local/share/guile") (includedir . "/opt/local/include") (mandir . "/opt/local/share/man") (infodir . "/opt/local/share/info") (ccachedir . "/opt/local/lib/guile/2.0/ccache") (libdir . "/opt/local/lib") (localstatedir . "/opt/local/var") (sharedstatedir . "/opt/local/com") (sysconfdir . "/opt/local/etc") (datadir . "/opt/local/share") (libexecdir . "/opt/local/libexec") (sbindir . "/opt/local/sbin") (bindir . "/opt/local/bin") (exec_prefix . "/opt/local") (prefix . "/opt/local") (top_srcdir . "/opt/local/var/macports/build/_Users_mwette_proj_macports_ports_lang_guile20/guile20/work/guile-2.0.11") (srcdir . "/opt/local/var/macports/build/_Users_mwette_proj_macports_ports_lang_guile20/guile20/work/guile-2.0.11/libguile"))
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-guile <at> gnu.org
:
bug#19417
; Package
guile
.
(Sat, 20 Dec 2014 14:46:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 19417 <at> debbugs.gnu.org (full text, mbox):
I have been told this has to do with '((a . 1) (b . 1)) being a literal. I'm guessing guile caches this and it get then mutated.
Information forwarded
to
bug-guile <at> gnu.org
:
bug#19417
; Package
guile
.
(Mon, 22 Dec 2014 07:05:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 19417 <at> debbugs.gnu.org (full text, mbox):
tags 19417 + notabug
close 19417
thanks
Matt Wette <mwette <at> alumni.caltech.edu> writes:
> I have been told this has to do with '((a . 1) (b . 1)) being a
> literal. I'm guessing guile caches this and it get then mutated.
Right. As explained on guile-user, mutating literal data is not
permitted and leads to unspecified behavior. Our compiler aggressively
shares data between literals in the same compilation unit.
Mark
Added tag(s) notabug.
Request was from
Mark H Weaver <mhw <at> netris.org>
to
control <at> debbugs.gnu.org
.
(Mon, 22 Dec 2014 07:05:03 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
19417 <at> debbugs.gnu.org and Matt Wette <mwette <at> alumni.caltech.edu>
Request was from
Mark H Weaver <mhw <at> netris.org>
to
control <at> debbugs.gnu.org
.
(Mon, 22 Dec 2014 07:05:03 GMT)
Full text and
rfc822 format available.
Merged 19415 19417.
Request was from
Mark H Weaver <mhw <at> netris.org>
to
control <at> debbugs.gnu.org
.
(Mon, 22 Dec 2014 07:11:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 19 Jan 2015 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 150 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.