From unknown Fri Jun 13 10:38:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26858: Cygwin port of Guile 2.2 Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-CC: help-debbugs@gnu.org Resent-Date: Tue, 09 May 2017 19:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26858 X-GNU-PR-Package: debbugs.gnu.org X-GNU-PR-Keywords: To: Derek Upham Cc: guile-devel@gnu.org, Mike Gran Received: via spool by submit@debbugs.gnu.org id=B.149435692112282 (code B ref -1); Tue, 09 May 2017 19:09:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 May 2017 19:08:41 +0000 Received: from localhost ([127.0.0.1]:34473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8AUz-0003C2-48 for submit@debbugs.gnu.org; Tue, 09 May 2017 15:08:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8AUy-0003Bo-2j for submit@debbugs.gnu.org; Tue, 09 May 2017 15:08:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d8AUs-0002jA-4k for submit@debbugs.gnu.org; Tue, 09 May 2017 15:08:35 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37217) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d8AUs-0002iw-1W for submit@debbugs.gnu.org; Tue, 09 May 2017 15:08:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8AUr-00048L-2j for bug-guile@gnu.org; Tue, 09 May 2017 15:08:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d8AUn-0002hL-RG for bug-guile@gnu.org; Tue, 09 May 2017 15:08:33 -0400 Received: from pb-sasl2.pobox.com ([64.147.108.67]:64729 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d8AUn-0002fx-NX; Tue, 09 May 2017 15:08:29 -0400 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 1DB3264908; Tue, 9 May 2017 15:08:26 -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=sNSizCHGNEw4aVAEQn3ZaiP8oac=; b=Wq/wg2 h86Ek8gq95lp6bEHKKBDRpXTXqriL5FjapJJ7oK/dH9n53WXrd2a+d7PgKtskzUQ YYZPkHzMq7ScSinzXCBE1qFmeMp7EdXSGQ1u5H2s9VAhMfkb/4YJEaEurEcUr0vA 0OunmuhtcSokXhzMMxu+IgxCGpgBEVxfcIWGY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=A6JEN0xiqbxomJ1YM9YX+IPpRyKrwUts X97YLPXfgD3PPsV+f+2RYu8OV5qyS327s1xzrXsvzKXboX2uWn0ePa5J7F1RhdO8 FtXGsOsxJbnm4JiuqLMSYQ5Ror3499lqS6QulSgOlZ+89kUr/AH+KM0tcxvwNBTq YFZYphydWos= Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 1737964907; Tue, 9 May 2017 15:08:26 -0400 (EDT) Received: from clucks (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 420B064906; Tue, 9 May 2017 15:08:24 -0400 (EDT) From: Andy Wingo References: <874ly49l54.fsf@joshua.spikycactus.dnsalias.com> <87lgr38jzd.fsf@pobox.com> <87pogft8c2.fsf@priss.frightenedpiglet.com> <878tmz7945.fsf@pobox.com> <87ziffcbwg.fsf@priss.frightenedpiglet.com> <87ziew4836.fsf@priss.frightenedpiglet.com> <8760hjt5k0.fsf@pobox.com> <87r306d3vx.fsf@priss.frightenedpiglet.com> <87lgqes375.fsf@pobox.com> <87efw681hv.fsf@priss.frightenedpiglet.com> Date: Tue, 09 May 2017 21:08:08 +0200 In-Reply-To: <87efw681hv.fsf@priss.frightenedpiglet.com> (Derek Upham's message of "Wed, 03 May 2017 07:21:32 -0700") Message-ID: <87shkdrgpz.fsf@pobox.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: E0AC2234-34EA-11E7-B311-384B894C8D7C-02397024!pb-sasl2.pobox.com 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.4 (----) 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.4 (----) On Wed 03 May 2017 16:21, Derek Upham writes: > scm_join_thread start scm_join_thread isn't actually implemented in terms of scm_i_pthread_join any more. Probably that's what's going wrong here -- and probably that should be fixed to ensure that we actually join the thread. (Otherwise it would be a memory leak too AFAIU.) Bcc'ing bug-guile to create a bug for that. Andy From debbugs-submit-bounces@debbugs.gnu.org Tue May 09 15:24:15 2017 Received: (at control) by debbugs.gnu.org; 9 May 2017 19:24:15 +0000 Received: from localhost ([127.0.0.1]:34507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8Ak3-0003Zz-FJ for submit@debbugs.gnu.org; Tue, 09 May 2017 15:24:15 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58597) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8Ak1-0003Zn-PL for control@debbugs.gnu.org; Tue, 09 May 2017 15:24:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d8Ajv-0003VQ-RL for control@debbugs.gnu.org; Tue, 09 May 2017 15:24:08 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45318) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8Ajv-0003VK-Nu for control@debbugs.gnu.org; Tue, 09 May 2017 15:24:07 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1d8Ajv-0003SX-FS for control@debbugs.gnu.org; Tue, 09 May 2017 15:24:07 -0400 Subject: control message for bug 26858 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Tue, 09 May 2017 15:24:07 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control 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: -5.0 (-----) reassign 26858 guile From unknown Fri Jun 13 10:38:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26858: Cygwin port of Guile 2.2 Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 09 May 2017 19:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26858 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: Andy Wingo Cc: 26858@debbugs.gnu.org Received: via spool by 26858-submit@debbugs.gnu.org id=B26858.149435801614035 (code B ref 26858); Tue, 09 May 2017 19:27:01 +0000 Received: (at 26858) by debbugs.gnu.org; 9 May 2017 19:26:56 +0000 Received: from localhost ([127.0.0.1]:34515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8Ame-0003eJ-4v for submit@debbugs.gnu.org; Tue, 09 May 2017 15:26:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59917) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8Amd-0003e6-3w for 26858@debbugs.gnu.org; Tue, 09 May 2017 15:26:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d8AmX-0005kL-DG for 26858@debbugs.gnu.org; Tue, 09 May 2017 15:26:50 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45414) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8AmU-0005gs-67; Tue, 09 May 2017 15:26:46 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1d8AmT-0003oA-RB; Tue, 09 May 2017 15:26:45 -0400 From: Glenn Morris References: <874ly49l54.fsf@joshua.spikycactus.dnsalias.com> <87lgr38jzd.fsf@pobox.com> <87pogft8c2.fsf@priss.frightenedpiglet.com> <878tmz7945.fsf@pobox.com> <87ziffcbwg.fsf@priss.frightenedpiglet.com> <87ziew4836.fsf@priss.frightenedpiglet.com> <8760hjt5k0.fsf@pobox.com> <87r306d3vx.fsf@priss.frightenedpiglet.com> <87lgqes375.fsf@pobox.com> <87efw681hv.fsf@priss.frightenedpiglet.com> <87shkdrgpz.fsf@pobox.com> X-Spook: Brute forcing Execution Vickie Weaver Power outage SBI X-Ran: mC>"MUnJ|6`>18%DvE*]QbNR^f2dkmAK>jZy@n?f)/$xLX'2?+;D{J\J1*2M[EBuQQ7zpC X-Hue: black X-Attribution: GM Date: Tue, 09 May 2017 15:26:45 -0400 In-Reply-To: <87shkdrgpz.fsf@pobox.com> (Andy Wingo's message of "Tue, 09 May 2017 21:08:08 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) 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: -5.0 (-----) (Reported reassigned to guile) Andy Wingo wrote: > Bcc'ing bug-guile to create a bug for that. FYI: if you use bcc, the system has no idea which package to associate your bug report with. So you must specify "Package: guile" in the first line of the body. From unknown Fri Jun 13 10:38:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26858: Cygwin port of Guile 2.2 Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 15 May 2017 20:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26858 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: Derek Upham Cc: 26858@debbugs.gnu.org, guile-devel@gnu.org Received: via spool by 26858-submit@debbugs.gnu.org id=B26858.149487880228198 (code B ref 26858); Mon, 15 May 2017 20:07:01 +0000 Received: (at 26858) by debbugs.gnu.org; 15 May 2017 20:06:42 +0000 Received: from localhost ([127.0.0.1]:46969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dAMGP-0007Kk-O5 for submit@debbugs.gnu.org; Mon, 15 May 2017 16:06:41 -0400 Received: from pb-sasl1.pobox.com ([64.147.108.66]:50174 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dAMGO-0007Kc-23 for 26858@debbugs.gnu.org; Mon, 15 May 2017 16:06:40 -0400 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 36C8978584; Mon, 15 May 2017 16:06:37 -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:content-transfer-encoding; s=sasl; bh=x7sst05TIF9A L2+PopTZToKAO+U=; b=cqZPrKg/fHzsg0Ho2Xne5KeA5+KnuvUcpwJHD+95Lv20 5FGRJibUfaQl/bubPM94yEbD/4hUBhEMVHc2J6TFnXfnxG4UO63id0GrSsEHJqAc 0s4ctH9B9XQ+gKu/HGm/hFjpKnIXL3baGqWil5XQBNKVzyEEzCOBM5pOy7/W8Ko= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=LvK+MX KYzBnSmHkReBDF/dfI31z2hFii2D3vj3mSJCAng7SJAqyP6FjGAIXduYZAV9Zp9P +BuyR21gpV9LKHldx1KgpX/gU1PzVMZtZeXWQJ6VnS4AR3IJDGLB7aSzjDXoqlV2 VvsY0o6jehkttV2BF+PV8puaFssUOaGEJzOXA= Received: from pb-sasl1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 2EFBA78582; Mon, 15 May 2017 16:06:37 -0400 (EDT) Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl1.pobox.com (Postfix) with ESMTPSA id BFAD278581; Mon, 15 May 2017 16:06:35 -0400 (EDT) From: Andy Wingo References: <874ly49l54.fsf@joshua.spikycactus.dnsalias.com> <87lgr38jzd.fsf@pobox.com> <87pogft8c2.fsf@priss.frightenedpiglet.com> <878tmz7945.fsf@pobox.com> <87ziffcbwg.fsf@priss.frightenedpiglet.com> <87ziew4836.fsf@priss.frightenedpiglet.com> <8760hjt5k0.fsf@pobox.com> <87r306d3vx.fsf@priss.frightenedpiglet.com> <87lgqes375.fsf@pobox.com> <87efw681hv.fsf@priss.frightenedpiglet.com> <87shkdrgpz.fsf@pobox.com> <878tm26u4t.fsf@priss.frightenedpiglet.com> Date: Mon, 15 May 2017 22:06:27 +0200 In-Reply-To: <878tm26u4t.fsf@priss.frightenedpiglet.com> (Derek Upham's message of "Fri, 12 May 2017 07:13:06 -0700") Message-ID: <87ziedopfg.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Pobox-Relay-ID: FFD099BA-39A9-11E7-9EFC-9BB2D5707B88-02397024!pb-sasl1.pobox.com X-Spam-Score: 0.0 (/) 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.0 (/) Greets, On Fri 12 May 2017 16:13, Derek Upham writes: > Andy Wingo writes: > >> scm_join_thread isn't actually implemented in terms of >> scm_i_pthread_join any more. Probably that's what's going wrong here -- >> and probably that should be fixed to ensure that we actually join the >> thread. (Otherwise it would be a memory leak too AFAIU.) Bcc'ing >> bug-guile to create a bug for that. > > I noticed that scm_join_thread was calling back into Scheme-land. Are th= ese statements all correct? > > - We are using call-with-new-thread underneath the hood. Underneath the hood of what? :) > - call-with-new-thread is documented to return a Scheme object from a > thunk/handler. Any underlying pthreads should be implementation > details. Correct. In practice call-with-new-thread will create a pthread but I can imagine circumstances in which it might (in the future) spawn an auxiliary pthread for some reason, and I wouldn't want to rule that out. > - The spawned thread sends the Scheme object to the condition variable > as soon as the user thunk exits. Any number of operations can happen > afterwards; the thread is still running in Scheme-land at this point, > in call-with-new-thread=E2=80=99s wrapping thunk. > - join-thread waits on the condition variable only. These are implementation details. They are correct but probably the implementation should change to do the scm_i_pthread_join and we should guarantee that after the join, the thread is really dead. This is bug 26858. > So at the end of join-thread we need to add a call to > scm_i_pthread_join (which we implement in threads.c) to ensure that > the pthread is completely gone before that join-thread returns. Is > that accurate? Well... yes, but we have to ensure that we call scm_i_pthread_join at most once. I think calling pthread_join twice on a thread is undefined. So there are some gnarlies here. Need to fix this. > Unfortunately, I think the GC threads are going to end up being > immovable objects in the path to full process-form support. You can disable marker threads with the GC_MARKERS environment variable, and the finalization thread should come and go as needed. Probably this is not a blocker from your POV. Signal handling is probably the most serious issue; perhaps we can avoid the thread somehow, since we handle signals asynchronously anyway.. Andy