From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.user,gmane.lisp.guile.bugs Subject: [critical bug] The set! doesn't work in indirect reference Date: Wed, 18 Sep 2024 23:37:54 +0900 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7816"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Guile User To: bug-guile@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Sep 18 16:38:55 2024 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sqvpW-0001w3-J7 for guile-user@m.gmane-mx.org; Wed, 18 Sep 2024 16:38:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqvos-000186-0R; Wed, 18 Sep 2024 10:38:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sqvoq-00017u-CW; Wed, 18 Sep 2024 10:38:12 -0400 Original-Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sqvoo-0007bn-Qw; Wed, 18 Sep 2024 10:38:12 -0400 Original-Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-7191fb54147so4967381b3a.2; Wed, 18 Sep 2024 07:38:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726670287; x=1727275087; darn=gnu.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=B15b+YTw6xMQXkilzp45dMaqmQjy+qJEYgP9wMPPgr0=; b=KAviMnga3tv5LfKpAXK+naYajgeaVOpNGeIO1WQVc98mmdGobierVldiJsyFTwNC/c Mq3MesuL4J3YqoJGMlN+b00T08Rg6Cd+RtkIrFkltEFfUHE8irRy1yzCLc6hFiP9Wdy6 TLkHHm6/m+7ODT7BRooeTgLWFJojD0miWkMNvwSdGwxWtKLnFfquvNJaa2tiCxKLFaxG C2U7DeP80WBLhSUS8SQAcT/CMKFtQg9G/z0A0VgWkU5MCAD9SFNFA1aqR21wcJLpOsPI N/WnWDWcKmIKl1yh5rTKFoxM716OwcDrwhwVWC1J5TI5XR0kRM3K3Xr7zReIoUNCnTcH sLzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726670287; x=1727275087; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=B15b+YTw6xMQXkilzp45dMaqmQjy+qJEYgP9wMPPgr0=; b=AF5G2y0fKf7irN4BqaN+h+T1myXFqduUmDU9UMLomDCY69wXpn6IEFeu1PXutv/X9q Z3Rmv8EjLfnrZ2c7vWm7e4yeHspcdcpHVKtepW6gE6q8lQ7qLdfFm1gTJ3k9rhbjT3Mo oKn/f+6O4hjQOx/jqWtMHAfcs7jXXzlSzYz8a2Ew+yeKwGJo10d7s0ojERp+1FZeUZBY mX1Qfbt6tGnGBAbsQxOE0gxa/M26GUSrPMCcrrGupwb6covY/gol7UEwf5Ey/4j7r76I hfa437aNz4kzDt/5ZYlo09a7P2yU9H8Se/Izzdran461UIxxCIe54KADxGRtmgRewQcl HlnQ== X-Gm-Message-State: AOJu0Yzbm40QwMc/tZCWDU/RsE8KNyqwnGKzjJkDerSbfvyZOU862WDC kjci3vvfkYudA4CIM88XGkbozkh1DJiLOhFnqDEar3hpz9IYhlQxwjfYQDBJkjvbAYtF2h+nz4D SAvp1mXAE49mc2W7NAja11Z1nhWROiinT+R4= X-Google-Smtp-Source: AGHT+IFrzxci4LP89Mw3ujDuiX40eZBvOKgcQ1AY7fZidnhRN8GJcTby47/0xlhebhxkn4uO7RITvhdpYZzDUhBO958= X-Received: by 2002:a05:6a20:1e66:b0:1cf:4fd9:61db with SMTP id adf61e73a8af0-1cf75ec53e3mr27696959637.8.1726670286967; Wed, 18 Sep 2024 07:38:06 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=nalaginrut@gmail.com; helo=mail-pf1-x42d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19808 gmane.lisp.guile.bugs:10980 Archived-At: Hi folks! Recently I was bothered by a strange bug when debugging Artanis, here's how to reproduce. You need three files, say aaa.scm, bbb.scm, and entry ---------------------aaa.scm---------------- (define-module (aaa) #:export (global)) (define global #f) ----------------------aaa.scm end------------ ------------------bbb.scm---------------- (define-module (bbb) #:use-module (aaa) #:export (fun)) (define (fun) (pk 'before global) (set! global 123) (pk 'after global)) -------------------bbb.scm end------------- ------------------entry------------- (import (bbb)) (fun) -----------------entry end------------- Put all files in the same directory, and run: ----------------cut---------------- guile -L . entry ----------------end--------------- The result is: ;;; (before #f) ;;; (after #f) The expected result should be: ;; (before #f) ;; (after 123) ------------------------------------------ This was tested in 3.0.9 and 3.0.10. I also CC guile-user list, in case anyone was troubled by strange bugs, this may be a hint. Best regards.