From unknown Sun Jun 22 07:54:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36709: Likely bug in scm_port_poll Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 17 Jul 2019 19:28:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36709 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 36709@debbugs.gnu.org X-Debbugs-Original-To: bug-guile@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156339165020514 (code B ref -1); Wed, 17 Jul 2019 19:28:04 +0000 Received: (at submit) by debbugs.gnu.org; 17 Jul 2019 19:27:30 +0000 Received: from localhost ([127.0.0.1]:53026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnpaM-0005Ko-2r for submit@debbugs.gnu.org; Wed, 17 Jul 2019 15:27:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:44364) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnpaK-0005Kh-P5 for submit@debbugs.gnu.org; Wed, 17 Jul 2019 15:27:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48099) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnpaJ-0005gc-KW for bug-guile@gnu.org; Wed, 17 Jul 2019 15:27:28 -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_20,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnpaI-0001bs-GI for bug-guile@gnu.org; Wed, 17 Jul 2019 15:27:27 -0400 Received: from world.peace.net ([64.112.178.59]:42718) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hnpaI-0001a8-Cx for bug-guile@gnu.org; Wed, 17 Jul 2019 15:27:26 -0400 Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hnpaH-0001r5-4s; Wed, 17 Jul 2019 15:27:25 -0400 From: Mark H Weaver User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Date: Wed, 17 Jul 2019 15:25:15 -0400 Message-ID: <87v9w0v4y1.fsf@netris.org> 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: 64.112.178.59 X-Spam-Score: -1.3 (-) 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: -2.3 (--) I sent the following message about a month ago, and now am forwarding to bug-guile so that we do not forget about it. Mark From: Mark H Weaver Subject: Likely bug in scm_port_poll Date: Tue, 18 Jun 2019 00:40:27 -0400 Message-ID: <87a7ef1p61.fsf@netris.org> Cc: guile-devel@gnu.org To: Andy Wingo Hi Andy, If you'd be willing to take a quick look at this, I'd be grateful. Probably a bug, but I feel uneasy that I might be overlooking something. scm_port_poll contains the following code: if (scm_i_string_contains_char (events, 'r')) c_events |= POLLIN; if (scm_i_string_contains_char (events, '!')) c_events |= POLLPRI; if (scm_i_string_contains_char (events, 'w')) c_events |= POLLIN; That second POLLIN should be POLLOUT, right? Thanks, Mark https://git.savannah.gnu.org/cgit/guile.git/tree/libguile/ports.c?h=stable-2.2&id=420c2632bb1f48e492a035c1d216f209734f45e6#n1423 From unknown Sun Jun 22 07:54:56 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Mark H Weaver Subject: bug#36709: closed (Re: bug#36709: Likely bug in scm_port_poll) Message-ID: References: <87k17xi806.fsf@gnu.org> <87v9w0v4y1.fsf@netris.org> X-Gnu-PR-Message: they-closed 36709 X-Gnu-PR-Package: guile Reply-To: 36709@debbugs.gnu.org Date: Mon, 18 Nov 2019 14:18:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1574086682-28199-1" This is a multi-part message in MIME format... ------------=_1574086682-28199-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #36709: Likely bug in scm_port_poll which was filed against the guile package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 36709@debbugs.gnu.org. --=20 36709: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D36709 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1574086682-28199-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 36709-done) by debbugs.gnu.org; 18 Nov 2019 14:17:41 +0000 Received: from localhost ([127.0.0.1]:43357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWhqW-0007KG-Ru for submit@debbugs.gnu.org; Mon, 18 Nov 2019 09:17:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWhqT-0007K1-7w for 36709-done@debbugs.gnu.org; Mon, 18 Nov 2019 09:17:37 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iWhqN-0007YG-Ko; Mon, 18 Nov 2019 09:17:32 -0500 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=42390 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iWhqN-0007UJ-3l; Mon, 18 Nov 2019 09:17:31 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Mark H Weaver Subject: Re: bug#36709: Likely bug in scm_port_poll References: <87v9w0v4y1.fsf@netris.org> Date: Mon, 18 Nov 2019 15:17:29 +0100 In-Reply-To: <87v9w0v4y1.fsf@netris.org> (Mark H. Weaver's message of "Wed, 17 Jul 2019 15:25:15 -0400") Message-ID: <87k17xi806.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36709-done Cc: 36709-done@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: -3.3 (---) Hi Mark, Mark H Weaver skribis: > If you'd be willing to take a quick look at this, I'd be grateful. > Probably a bug, but I feel uneasy that I might be overlooking something. > > scm_port_poll contains the following code: > > if (scm_i_string_contains_char (events, 'r')) > c_events |=3D POLLIN; > if (scm_i_string_contains_char (events, '!')) > c_events |=3D POLLPRI; > if (scm_i_string_contains_char (events, 'w')) > c_events |=3D POLLIN; > > That second POLLIN should be POLLOUT, right? I agree. Clearly it must be a typo, so I=E2=80=99ve pushed the fix as 659526d33b2db1b0924b2769b6a0b824709860cc. Thanks! Ludo=E2=80=99. ------------=_1574086682-28199-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 Jul 2019 19:27:30 +0000 Received: from localhost ([127.0.0.1]:53026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnpaM-0005Ko-2r for submit@debbugs.gnu.org; Wed, 17 Jul 2019 15:27:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:44364) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnpaK-0005Kh-P5 for submit@debbugs.gnu.org; Wed, 17 Jul 2019 15:27:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48099) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnpaJ-0005gc-KW for bug-guile@gnu.org; Wed, 17 Jul 2019 15:27:28 -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_20,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnpaI-0001bs-GI for bug-guile@gnu.org; Wed, 17 Jul 2019 15:27:27 -0400 Received: from world.peace.net ([64.112.178.59]:42718) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hnpaI-0001a8-Cx for bug-guile@gnu.org; Wed, 17 Jul 2019 15:27:26 -0400 Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hnpaH-0001r5-4s; Wed, 17 Jul 2019 15:27:25 -0400 From: Mark H Weaver To: bug-guile@gnu.org Subject: Likely bug in scm_port_poll User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Date: Wed, 17 Jul 2019 15:25:15 -0400 Message-ID: <87v9w0v4y1.fsf@netris.org> 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: 64.112.178.59 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit 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: -2.3 (--) I sent the following message about a month ago, and now am forwarding to bug-guile so that we do not forget about it. Mark From: Mark H Weaver Subject: Likely bug in scm_port_poll Date: Tue, 18 Jun 2019 00:40:27 -0400 Message-ID: <87a7ef1p61.fsf@netris.org> Cc: guile-devel@gnu.org To: Andy Wingo Hi Andy, If you'd be willing to take a quick look at this, I'd be grateful. Probably a bug, but I feel uneasy that I might be overlooking something. scm_port_poll contains the following code: if (scm_i_string_contains_char (events, 'r')) c_events |= POLLIN; if (scm_i_string_contains_char (events, '!')) c_events |= POLLPRI; if (scm_i_string_contains_char (events, 'w')) c_events |= POLLIN; That second POLLIN should be POLLOUT, right? Thanks, Mark https://git.savannah.gnu.org/cgit/guile.git/tree/libguile/ports.c?h=stable-2.2&id=420c2632bb1f48e492a035c1d216f209734f45e6#n1423 ------------=_1574086682-28199-1--