From nobody Tue Aug 09 08:05:10 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M25GH4bYlz4XyK7 for ; Tue, 9 Aug 2022 08:05:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M25GH3bHHz3Gd4 for ; Tue, 9 Aug 2022 08:05:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4M25GH2g2wzPQL for ; Tue, 9 Aug 2022 08:05:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 27985BBb040251 for ; Tue, 9 Aug 2022 08:05:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 27985BiP040249 for bugs@FreeBSD.org; Tue, 9 Aug 2022 08:05:11 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 258056] lang/go118: musn't poll /dev/fuse Date: Tue, 09 Aug 2022 08:05:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: paulzhol@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660032311; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=10FzEpyhSZ0Pylx97h50FgCCKbBQ47fGiNnxOFRK43M=; b=mcmcGt+hBZTML9lb9NiOs84wsPvhRjocbBlVaExfGYbnw9Mxqmhh5n/y6+//Ej4e/Av9kV oFNkzVGAXhf2wvjkt6ZdgcoLltW1DPhicN9/E/pqKiARwjAMK8T05i/8c/y/MF7AoCqdb1 S4p9RAcWfYKd3oM8NIdkk0ReEoWkKbvXI/PmA0OjResbC3gbSG/ZL868GixXIPd14Kw5VL Q872x5DUK9Akz+eyalTi2vGRPnJKvOBOVRRHjPBpe7yvMJU/rqbbkmctIy3I7shkqCWuvN O92/tgIwLQsDOdml+5OSHxNnMQUFjDQKDWlZElkaDFy//KEpxnYiBE4A4p5seg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660032311; a=rsa-sha256; cv=none; b=Hb7mxZ388PgkzWOKq5PmxoXGxubnl8tIc6S4NLU4yKRbsxHlQu+Kx42TfDf6Ifis8gdmWn 3P813Roy1UEfk4eajVhJJtNZyC56u59lwwpVRBg8JRA19sRAaH4IMOkPifZiZh1b7SGyqB BI6LZP2GazXtTBtRMMGKOUtwZbUy+A2bwQi2lMjxCXblUzAOgXch4Nc5NIIAyC/nc4Fbp7 RqbeG3WfM05PyyzR96+wjJH0uKBWKLvAM58yApwDAgFRQNlm5H2UqJb+A+uMR/A+zDGiiv x9tRVRwT42Epg11+DyPhiu4Uv9Pz9bn4PkWJoJ6ll3neIVY760cuDnQkn0OJwA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258056 Yuval Pavel Zholkover changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |paulzhol@gmail.com --- Comment #26 from Yuval Pavel Zholkover --- Created attachment 235792 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D235792&action= =3Dedit bazil/fuse workaround Hi, As I mentioned in the upstream issue https://github.com/golang/go/issues/54= 100, there are a few issues here. The Go runtime has a bug in which file descriptors in blocking mode can get added to the network poller. This is what the https://go-review.googlesource.com/c/go/+/420334 fix is about. However I think there's an additional bug in the /dev/fuse character device: The call to fcntl(,F_SETFL,O_RDWR|O_NONBLOCK) is reporting an ENODEV (Operation not supported by device) error, but the device is still put into non-blocking mode. Causing reads to return EAGAIN. These EAGAIN errors are unexpected by the bazil/fuse package rclone uses. bazil/fuse is doing blocking operations only anyway, so there's a simple workaround which avoids calling fcntl in the first place (attached). --=20 You are receiving this mail because: You are the assignee for the bug.=