From unknown Fri Aug 15 02:02:33 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#26542 <26542@debbugs.gnu.org> To: bug#26542 <26542@debbugs.gnu.org> Subject: Status: guile 2.0.13 Reply-To: bug#26542 <26542@debbugs.gnu.org> Date: Fri, 15 Aug 2025 09:02:33 +0000 retitle 26542 guile 2.0.13 reassign 26542 guile submitter 26542 romph@web.de severity 26542 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 17 11:02:57 2017 Received: (at submit) by debbugs.gnu.org; 17 Apr 2017 15:02:57 +0000 Received: from localhost ([127.0.0.1]:52623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d08B7-0007OF-0j for submit@debbugs.gnu.org; Mon, 17 Apr 2017 11:02:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58975) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d06V7-0004dE-0d for submit@debbugs.gnu.org; Mon, 17 Apr 2017 09:15:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d06V0-00048S-88 for submit@debbugs.gnu.org; Mon, 17 Apr 2017 09:15:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50055) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d06V0-000485-57 for submit@debbugs.gnu.org; Mon, 17 Apr 2017 09:15:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d06Uy-0007k4-6n for bug-guile@gnu.org; Mon, 17 Apr 2017 09:15:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d06Uu-00045O-1I for bug-guile@gnu.org; Mon, 17 Apr 2017 09:15:20 -0400 Received: from mout.web.de ([212.227.15.14]:50156) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d06Ut-00044z-L0 for bug-guile@gnu.org; Mon, 17 Apr 2017 09:15:15 -0400 Received: from [192.168.0.108] ([217.254.112.116]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LpOOj-1cLWLT3AIf-00fCxb for ; Mon, 17 Apr 2017 15:15:10 +0200 To: bug-guile@gnu.org From: romph@web.de Subject: guile 2.0.13 Message-ID: <331a42f6-4e34-f48b-acdc-ecab0541ec78@web.de> Date: Mon, 17 Apr 2017 15:15:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------5082E400E92EA517EE678511" X-Provags-ID: V03:K0:VEuwERMJT8toZBoECYIhXcHxQJ+lM/KuUqEdxjstsLMwUOglCoX kPwFCmyEee1jtlA31XEjfw69o4L1eknBe4UGUcs7oO79N3tt1YXyAScf/d0UCaBSwF8A53c h0sQYrpwTxI4D83+TGJT/svYqQSibSBBAho6Tj5RntfU6Ndxn3ieMYtX5myFavH6nV1u15k 9R/EUW+zBZfqRnK9sed4Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:N7feQUcN634=:kRH1EAMpISmBvAjIVfiQSa y5ay62xuf6p0xPPEX0AUsCiSwyMc4CHz+DcE/3BSEExLf2kuR7RwUhaZvNYMUdzCgVozflkF4 AwAey3rjsH9cpRN9B31w8oceq6/GBl75TX6EVaNm2/0mnhNHjgLoz02UikhiBVPdyHZuYYL2D YyQL/+KaGt7YzO20hacWAkOLsBmc0SBvl9Tdsh2Ze5VY/Y5in1iqzk8q7O4pQGZkRF/Qw+Fgo BXQZokjREH+VCUtb4bKQJwwJfUNlhoH42R7l59f3DuvN333xA93HRAZCSQEMsxi1DeoIvaVfm +G6LpUF1FPxcWXoDK4OV3w0r83ityy3K1BZEkg7OTk+NqZb+bgRcnyeJEVyuh22H+mLp70JE6 9Zc+D9XljsabrdvnA80d1rYqR/NYsntm9OlnxxQ3C2xE58KbTFNoPvfN+Y0X89jqIjBI+3/Ha f64OTCHaMFUWuVAlk37MQ/g2163TR8h3aQ8gDFAhRU/SjrJYYPJHnRzhEqp1oRtuiMrGr9kw8 7zxq6jCnSLQNqF2CUgm8aggknf/Lt1toYzGV7YgWkvRBNwo446YgPszbBUIZBGGi0Uzh/ChGn MWdr42+rYRdXwl/lHBb/8FdjLCyP7kY1gMNh/XkH6DMpYVy7w9i0MgLe4wsvd4ikOuuEI/Ihv WRL46f0wBrsA778mp7yb8PHzMFaQ9jjPoZfVdTyk/csrOK5U0FxQvasXiBXQaKTSvaehhP0u9 YrErmFxI5qLNz3/DxjUMe9R6/DpzWpz+fKTLNfsWeFRtsjXoUPNxeVcBAKE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 17 Apr 2017 11:02:56 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) This is a multi-part message in MIME format. --------------5082E400E92EA517EE678511 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, The attached simple test calls free functions with bad smob_tag. I see the same stuff with 2.2.0 There are no errors using the stable 2.0.11 version. my system is: Linux linux8 4.10.0-19-generic #21-Ubuntu SMP Thu Apr 6 17:04:57 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux --------------5082E400E92EA517EE678511 Content-Type: text/x-csrc; name="box.c" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="box.c" /* examples/box/box.c *=20 * Copyright (C) 1998,2001, 2006 Free Software Foundation, Inc. *=20 * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version 3, or * (at your option) any later version. *=20 * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. *=20 * You should have received a copy of the GNU Lesser General Public * License along with this software; see the file COPYING.LESSER. If * not, write to the Free Software Foundation, Inc., 51 Franklin * Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* Include all needed declarations. */ #include /* The type code for the newly created smob type will be stored into this variable. It has the prefix `scm_tc16_' to make it usable with the SCM_VALIDATE_SMOB macro below. */ static scm_t_bits scm_tc16_box; /* This function is responsible for marking all SCM objects included in the smob. */ static SCM mark_box (SCM b) { /* Since we have only one SCM object to protect, we simply return it and the caller will mark it. */ return SCM_CELL_OBJECT_1 (b); } static size_t free_box (SCM box_smob) { if (SCM_TYP16(box_smob) !=3D scm_tc16_box) { // bad type, do not free it fprintf (stderr, "[free] error: bad smob 0x%x\n", (int)SCM_TYP16(box_sm= ob)); exit (-1); } return 0; } /* Print a textual represenation of the smob to a given port. */ static int print_box (SCM b, SCM port, scm_print_state *pstate) { SCM value =3D SCM_CELL_OBJECT_1 (b); scm_puts ("#", port); /* Non-zero means success. */ return 1; } /* This defines the primitve `make-box', which returns a new smob of type `box', initialized to `#f'. */ static SCM #define FUNC_NAME "make-box" make_box (void) { /* This macro creates the new objects, stores the value `#f' into it and returns it to the caller. */ SCM_RETURN_NEWSMOB (scm_tc16_box, SCM_BOOL_F); } #undef FUNC_NAME /* This is the primitive `box-ref' which returns the object stored in the box. */ static SCM box_ref (SCM b) #define FUNC_NAME "box-ref" { /* First, we have to ensure that the user really gave us a box objects. The macro SCM_VALIDATE_SMOB will do all what is needed. The parameters are interpreted as follows:=20 1: The position of the checked variable in the parameter list. b: The passed parameter. box: Concatenated with the fixed prefix scm_tc16_, names the type code for the expected smob type. */ SCM_VALIDATE_SMOB (1, b, box); /* Fetch the object from the box and return it. */ return SCM_CELL_OBJECT_1 (b); } #undef FUNC_NAME /* Primitive which stores an arbitrary value into a box. */ static SCM box_set_x (SCM b, SCM value) #define FUNC_NAME "box-set!" { SCM_VALIDATE_SMOB (1, b, box); /* Set the cell number 1 of the smob to the given value. */ SCM_SET_CELL_OBJECT_1 (b, value); /* When this constant is returned, the REPL will not print the returned value. All procedures in Guile which are documented as returning `and unspecified value' actually return this value. */ return SCM_UNSPECIFIED; } #undef FUNC_NAME /* Create and initialize the new smob type, and register the primitives withe the interpreter library. */ static void init_box_type (void) { scm_tc16_box =3D scm_make_smob_type ("box", 0); scm_set_smob_mark (scm_tc16_box, mark_box); scm_set_smob_print (scm_tc16_box, print_box); scm_set_smob_free (scm_tc16_box, free_box); scm_c_define_gsubr ("make-box", 0, 0, 0, make_box); scm_c_define_gsubr ("box-set!", 2, 0, 0, box_set_x); scm_c_define_gsubr ("box-ref", 1, 0, 0, box_ref); } /* This is the function which gets called by scm_boot_guile after the Guile library is completely initialized. */ static void inner_main (void *closure, int argc, char **argv) { /* First, we create our data type... */ init_box_type (); /* ... then we start a shell, in which the box data type can be used. */ scm_shell (argc, argv); } /* Main program. */ int main (int argc, char **argv) { /* Initialize Guile, then call `inner_main' with the arguments 0, argc and argv. */ scm_boot_guile (argc, argv, inner_main, 0); return 0; /* Never reached. */ } /* End of file. */ --------------5082E400E92EA517EE678511 Content-Type: text/plain; charset=UTF-8; name="Makefile" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Makefile" b2JqZWN0cyA9IGJveC5vCgp2ZXJzaW9uPSIyLjAiCkdVSUxFX0NPTVAgPSAkKHNoZWxsIHBr Zy1jb25maWcgZ3VpbGUtJCh2ZXJzaW9uKSAtLWNmbGFncykKR1VJTEVfTElOSyA9ICQoc2hl bGwgcGtnLWNvbmZpZyBndWlsZS0kKHZlcnNpb24pIC0tbGlicykKCkNGTEFHUyAgPSAtSS4g LWdnZGIgLWZwaWMgLVdhbGwgJChHVUlMRV9DT01QKQpMSUJUT09MID0gL3Vzci9iaW4vbGli dG9vbCAtLXRhZz1DQwoKLlBIT05ZOiAKYWxsOiB0ZXN0CgkuL3Rlc3Quc2NtCgp0ZXN0OiAk KG9iamVjdHMpCglnY2MgJChvYmplY3RzKSAkKEdVSUxFX0xJTkspIC1vICRACgolLm86ICUu YwoJZ2NjICQoQ0ZMQUdTKSAkKElOQ0xVREUpIC1jIC1NRCAtbyAkQCAkPAoKJS5pOiAlLmMK CWdjYyAkKENGTEFHUykgJChJTkNMVURFKSAtRSAtQyAtZEQgLWRJICQ8ID4gJEAKCi5QSE9O WTogZHVtcApkdW1wOiAKCUBlY2hvIEdVSUxFX0NPTVA9JChHVUlMRV9DT01QKQoJQGVjaG8g R1VJTEVfTElOSz0kKEdVSUxFX0xJTkspCglAZWNobyBDRkxBR1M9JChDRkxBR1MpCgouUEhP Tlk6IGNsZWFuCmNsZWFuOgoJcm0gLWZyIHRlc3QgKn4gKi5vICoubGEgKi5sbyAubGlicyAq LnNvICouZCAqLmkKCi1pbmNsdWRlICQob2JqZWN0czoubz0uZCkKCiMgTG9jYWwgVmFyaWFi bGVzOgojIHRhYi13aWR0aDogNAojIG1vZGU6IG1ha2VmaWxlLWdtYWtlCiMgRW5kOgo= --------------5082E400E92EA517EE678511 Content-Type: text/x-scheme; name="test.scm" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="test.scm" #!/bin/sh GUILE_AUTO_COMPILE=3D0 guile-config --version LD_LIBRARY_PATH=3D$(guile-config info libdir) export PKG_CONFIG_PATH GUILE_AUTO_COMPILE LD_LIBRARY_PATH echo "LD_LIBRARY_PATH=3D$LD_LIBRARY_PATH" exec "./test" -s $0 "$@" !# (define b (make-box)) (format #t "b =3D ~a\n" b) (box-set! b '(list of values)) (format #t "b =3D ~a\n" b) (format #t "(box-ref b) =3D ~a\n" (box-ref b)) (do ((i 0 (1+ i)) (result #f)) ((> i 40000) result) (let ((box (make-box)) ) '() )) ;; Local Variables: ;; mode: scheme =20 ;; tab-width: 4 ;; End: --------------5082E400E92EA517EE678511-- From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 18 11:31:02 2017 Received: (at submit) by debbugs.gnu.org; 18 Apr 2017 15:31:02 +0000 Received: from localhost ([127.0.0.1]:54943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0V5p-0001Ji-BV for submit@debbugs.gnu.org; Tue, 18 Apr 2017 11:31:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0PO3-0003xX-A2 for submit@debbugs.gnu.org; Tue, 18 Apr 2017 05:25:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0PNu-0003aU-Ke for submit@debbugs.gnu.org; Tue, 18 Apr 2017 05:25:21 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HTML_MESSAGE, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37211) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d0PNu-0003aQ-IS for submit@debbugs.gnu.org; Tue, 18 Apr 2017 05:25:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0PNo-0007Ni-CJ for bug-guile@gnu.org; Tue, 18 Apr 2017 05:25:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0PNl-0003Wp-9F for bug-guile@gnu.org; Tue, 18 Apr 2017 05:25:12 -0400 Received: from imta22.fe.bosch.de ([139.15.243.26]:14130) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d0PNk-0003TB-TB for bug-guile@gnu.org; Tue, 18 Apr 2017 05:25:09 -0400 Received: from smtp6-v.fe.bosch.de (imta24.fe.bosch.de [139.15.243.27]) by imta22.fe.bosch.de (Postfix) with ESMTP id A8A3984064B for ; Tue, 18 Apr 2017 11:17:55 +0200 (CEST) Received: from vsmta12.fe.internet.bosch.com (unknown [10.4.98.52]) by imta24.fe.bosch.de (Postfix) with ESMTP id 2CDA7D8009E for ; Tue, 18 Apr 2017 11:17:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=de.bosch.com; s=2015-01-21; t=1492507063; bh=Y6e/dzNWjrgu1Dc6VVbYxUHcK7u4vkVOAe9JF8FDEus=; l=10; h=From:From:Reply-To:Sender; b=wzpSpRMZ+0hWWsAjNEUYZBHUKiYFmtXqg37lV17/BVLeJZjOT0BVhstQDqEMab64g FwJm4LFMQWZLuvjK2bFPnDZivaiNVdWV6JqiFfpp3WVQ6/T0nSW8cqwOw2TFjQpTyA 67i6cLp+EC8Its75491nsn0RpmGIWAkjl2BgRLVs= Received: from FE-MBX1032.de.bosch.com (vsgw22.fe.internet.bosch.com [10.4.98.11]) by vsmta12.fe.internet.bosch.com (Postfix) with ESMTP id 0CE581B803AA for ; Tue, 18 Apr 2017 11:17:43 +0200 (CEST) Received: from FE-MBX1032.de.bosch.com (10.3.230.101) by FE-MBX1032.de.bosch.com (10.3.230.101) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Tue, 18 Apr 2017 11:17:42 +0200 Received: from FE-MBX1032.de.bosch.com ([fe80::c18b:a0ec:992f:3689]) by FE-MBX1032.de.bosch.com ([fe80::c18b:a0ec:992f:3689%16]) with mapi id 15.00.1236.000; Tue, 18 Apr 2017 11:17:42 +0200 From: "Pach Roman (DGS-EC/ESG4)" To: "bug-guile@gnu.org" Subject: bug#26542: guile 2.0.13 Thread-Topic: bug#26542: guile 2.0.13 Thread-Index: AdK4I4y4TZ6iWz0qRzKoUZwxjXgCSA== Date: Tue, 18 Apr 2017 09:17:41 +0000 Message-ID: <05fde5375537442d96c846a2840f6a94@FE-MBX1032.de.bosch.com> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.18.50.8] Content-Type: multipart/alternative; boundary="_000_05fde5375537442d96c846a2840f6a94FEMBX1032deboschcom_" MIME-Version: 1.0 X-TM-AS-MML: disable X-TM-AS-Product-Ver: IMSS-7.1.0.1679-8.1.0.1062-23012.001 X-TMASE-MatchedRID: 3u4dyASj7czZPZzVxYdp+YSvKOGqLLPKviRliDV2nyy4F2GkfaY1S19R f/U+wFBepEYBIO560crniZuiwpS5h3SKEvagy0Hjj56aIafJ4NHoGgE9MtAlevk3SjZMcZFkW+v 0m5ycBq8VUWjpuvfBYztvcmzcXq9U9Z8q6rO+Ih4vj6wHfIGxyb/+8XS0I10iOyxd6V963VS48W uRFQVdauLzNWBegCW2Tvt7hjXGr/e25maLCP+WcrI7zVffJqTzGmG0c0LxDx7PTx5izxWLM7er4 2mHjw7cSMWZHj6qFN/AWC8qSi8dHoG1x1OM2gWOmb3T/6QfPrJmVFDYn3b7e7jP6XNlrOV9 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 18 Apr 2017 11:30:59 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) --_000_05fde5375537442d96c846a2840f6a94FEMBX1032deboschcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello! I can confirm now the same problem on Cygwin. 2.0.11 runs without errors 2.0.13 behaves identically as on linux. i.e. the function free_box(SCM box_= smob) is called with a bad smob identifier. --_000_05fde5375537442d96c846a2840f6a94FEMBX1032deboschcom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hello!
&nbs= p;
I can confirm now the same problem on Cygwin.
&nbs= p;
2.0.11 runs without errors
2.0.13 behaves identically as on linux. i.e. the = function free_box(SCM box_smob)
is called with a bad smob identifier.
&nbs= p;
&nbs= p;
--_000_05fde5375537442d96c846a2840f6a94FEMBX1032deboschcom_-- From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 19 04:08:51 2017 Received: (at 26542-close) by debbugs.gnu.org; 19 Apr 2017 08:08:51 +0000 Received: from localhost ([127.0.0.1]:55489 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0kfT-0005AA-KW for submit@debbugs.gnu.org; Wed, 19 Apr 2017 04:08:51 -0400 Received: from pb-sasl2.pobox.com ([64.147.108.67]:57047 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0kfS-0005A3-CL for 26542-close@debbugs.gnu.org; Wed, 19 Apr 2017 04:08:50 -0400 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id EE6128222E; Wed, 19 Apr 2017 04:08:49 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=VR3m1fD23VWfuINcKqr07l+IgOo=; b=q+91jV 66qzgUVZqZzuHV4yf/7vANSQyAYm3LWj/AZl3LoJQC9eaZg/nrDGpZ4c7fR0ouj5 oCApW9b5rkrrVpeSLxwcSkOspBIWD/lg7jdofWkeA8MAkOL26XoKDtrEwm7eLq+0 meAPlhFNl/It3EJtkXLp6KCXalGUsWSGRU3k0= Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id D4E238222C; Wed, 19 Apr 2017 04:08:49 -0400 (EDT) Received: from rusty (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl2.pobox.com (Postfix) with ESMTPSA id E30A18222B; Wed, 19 Apr 2017 04:08:48 -0400 (EDT) From: Andy Wingo To: romph@web.de Subject: Re: bug#26542: guile 2.0.13 References: <331a42f6-4e34-f48b-acdc-ecab0541ec78@web.de> Date: Wed, 19 Apr 2017 10:08:42 +0200 In-Reply-To: <331a42f6-4e34-f48b-acdc-ecab0541ec78@web.de> (romph@web.de's message of "Mon, 17 Apr 2017 15:15:10 +0200") Message-ID: <87pog8es51.fsf@igalia.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 6B0C079C-24D7-11E7-970D-571C92A0D1B0-02397024!pb-sasl2.pobox.com X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 26542-close Cc: 26542-close@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) Hi, romph@web.de writes: > Hello, > > The attached simple test calls free functions with bad smob_tag. > I see the same stuff with 2.2.0 > There are no errors using the stable 2.0.11 version. > > static size_t > free_box (SCM box_smob) > { > if (SCM_TYP16(box_smob) != scm_tc16_box) { > // bad type, do not free it > fprintf (stderr, "[free] error: bad smob 0x%x\n", (int)SCM_TYP16(box_smob)); > exit (-1); > } > return 0; > } I believe this is fallout from this bug fix in which markers and finalizers could race each other: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19883 The basic issue is that finalizers run asynchronously on values that are still live, yet they can invalidate invariants on those live values. Concurrent markers can then see objects which are being concurrently finalized, causing intermittent hard-to-debug crashes that couldn't be properly fixed. The fix was to "null out" the SMOB tag before calling the finalizer, in such a way to prevent future GCs from invoking the SMOB mark function on an object that was being finalized. So the new expectation is that finalizers see the SMOB tag as being scm_tc7_smob + SMOB number 0, indicating the "finalized" smob type. I guess we weren't aware of how this might affect other users that check the SMOB tag during the free function. Apologies for that undocumented change. It was necessary though to fix 19883. Andy From unknown Fri Aug 15 02:02:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 17 May 2017 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator