Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Aug 2024 22:10:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 281071] sysutils/fusefs-s3fs quits with SIGABORT on run
Message-ID:  <bug-281071-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281071

            Bug ID: 281071
           Summary: sysutils/fusefs-s3fs quits with SIGABORT on run
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: dmgk@freebsd.org
          Reporter: brett.rickman@gmail.com
          Assignee: dmgk@freebsd.org
             Flags: maintainer-feedback?(dmgk@freebsd.org)

The currently releases version of this utility immediately aborts on execut=
ion.=20

This appears to be caused by certain calls to sysconf do not return expected
values.

Its been fixed upstream in the release, but won't be available until a vers=
ion
after 1.94.=20

The patch below can be applied to the port to correct this:

root@freebsd:/usr/ports/sysutils/fusefs-s3fs # cat
files/patch-src_s3fs__util.cpp=20
--- src/s3fs_util.cpp.orig      2024-08-25 21:19:25 UTC
+++ src/s3fs_util.cpp
@@ -65,6 +65,7 @@ void init_sysconf_vars()
     // there is no hard limit on the size of the buffer needed to
     // store all the groups returned.

+    errno =3D 0;
     long res =3D sysconf(_SC_GETPW_R_SIZE_MAX);
     if(0 > res){
         if (errno !=3D 0){
@@ -75,6 +76,7 @@ void init_sysconf_vars()
     }
     max_password_size =3D res;

+    errno =3D 0;
     res =3D sysconf(_SC_GETGR_R_SIZE_MAX);
     if(0 > res) {
         if (errno !=3D 0) {

Please let me know next steps. I'll be happy to update the port if needed.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-281071-7788>