[Gluster-users] Compiling 3.13.2 under FreeBSD 11.1?

Roman Serbski mefystofel at gmail.com
Tue May 8 09:34:18 UTC 2018

On Mon, May 7, 2018 at 9:19 PM, Kaleb S. KEITHLEY <kkeithle at redhat.com> wrote:
> See https://review.gluster.org/19974

Many thanks Kaleb.

Your patch did the trick and I did manage to compile, however I get a
Segmentation fault when trying to execute gluster.

I'm using the following options to configure (taken from the glusterfs
3.11.1 port in the FreeBSD port repository):

./configure CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib -largp" \
--with-pkgconfigdir=/usr/local/libdata/pkgconfig \
--localstatedir=/var \
--disable-epoll \
--enable-glupy \
--disable-georeplication \
ac_cv_lib_aio_io_setup=no \
ac_cv_func_fallocate=no \
ac_cv_func_setfsuid=no \
ac_cv_func_fdatasync=no \
ac_cv_func_llistxattr=no \
ac_cv_func_malloc_stats=no \
--enable-debug <--- this one was added by me

# ldd gluster
        libglusterfs.so.0 => /usr/lib/libglusterfs.so.0 (0x8008ac000)
        libreadline.so.7 => /usr/local/lib/libreadline.so.7 (0x800beb000)
        libncurses.so.8 => /lib/libncurses.so.8 (0x800e3c000)
        libgfxdr.so.0 => /usr/lib/libgfxdr.so.0 (0x801091000)
        libgfrpc.so.0 => /usr/lib/libgfrpc.so.0 (0x8012b4000)
        libexecinfo.so.1 => /usr/lib/libexecinfo.so.1 (0x8014d7000)
        libargp.so.0 => /usr/local/lib/libargp.so.0 (0x8016da000)
        libxml2.so.2 => /usr/local/lib/libxml2.so.2 (0x8018e4000)
        libz.so.6 => /lib/libz.so.6 (0x801c79000)
        liblzma.so.5 => /usr/lib/liblzma.so.5 (0x801e92000)
        libm.so.5 => /lib/libm.so.5 (0x8020bb000)
        librt.so.1 => /usr/lib/librt.so.1 (0x8022e6000)
        libintl.so.8 => /usr/local/lib/libintl.so.8 (0x8024eb000)
        libthr.so.3 => /lib/libthr.so.3 (0x8026f6000)
        libcrypto.so.8 => /lib/libcrypto.so.8 (0x802a00000)
        libc.so.7 => /lib/libc.so.7 (0x802e69000)
        libncursesw.so.8 => /lib/libncursesw.so.8 (0x803214000)
        libelf.so.2 => /lib/libelf.so.2 (0x803472000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x80368a000)

# gdb gluster
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
(gdb) run
Starting program: /usr/home/SRC/glusterfs-3.13.2/cli/src/.libs/gluster

Program received signal SIGSEGV, Segmentation fault.
0x00000008008ef32f in gf_thread_create (thread=0x800be9500, attr=0x0,
start_routine=0x80091e960 <pool_sweeper>, arg=0x0, name=0x8009c683b
"memsweep") at common-utils.c:3754
3754                            gf_msg (THIS->name, GF_LOG_WARNING, 0,

I'm pretty weak with debugging tools, but if you could give me some
hints on how to collect useful data I'd happy to provide it.

Thank you in advance.

More information about the Gluster-users mailing list