[Bugs] [Bug 1196028] New: libgfapi: glfs_init() hangs on pthread_cond_wait() when user is non-root

bugzilla at redhat.com bugzilla at redhat.com
Wed Feb 25 06:36:06 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1196028

            Bug ID: 1196028
           Summary: libgfapi: glfs_init() hangs on pthread_cond_wait()
                    when user is non-root
           Product: GlusterFS
           Version: mainline
         Component: libgfapi
          Assignee: bugs at gluster.org
          Reporter: ppai at redhat.com
        QA Contact: sdharane at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com



Created attachment 994997
  --> https://bugzilla.redhat.com/attachment.cgi?id=994997&action=edit
Sample code to be run as non-root

glfs_init() hangs on pthread_cond_wait() when user is non-root

Steps to Reproduce:
$ gcc try.c -I /usr/local/include/glusterfs/ -lgfapi -O0 -ggdb
$ ./a.out

Trace:
Program received signal SIGINT, Interrupt.
0x00007ffff68d7ca0 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libpthread.so.0
Missing separate debuginfos, use: debuginfo-install glibc-2.18-16.fc20.x86_64
keyutils-libs-1.5.9-1.fc20.x86_64 krb5-libs-1.11.5-11.fc20.x86_64
libcom_err-1.42.8-3.fc20.x86_64 libselinux-2.2.1-6.fc20.x86_64
openssl-libs-1.0.1e-41.fc20.x86_64 pcre-8.33-8.fc20.x86_64
sssd-client-1.11.7-2.fc20.x86_64 xz-libs-5.1.2-12alpha.fc20.x86_64
zlib-1.2.8-3.fc20.x86_64
(gdb) bt
#0  0x00007ffff68d7ca0 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libpthread.so.0
#1  0x00007ffff7bc6cc2 in glfs_lock (fs=0x630b80) at glfs-internal.h:214
#2  0x00007ffff7bc7fb6 in glfs_init_wait (fs=0x630b80) at glfs.c:703
#3  0x00007ffff7bc82a7 in pub_glfs_init (fs=0x630b80) at glfs.c:809
#4  0x00000000004009d3 in main (argc=1, argv=0x7fffffffdee8) at try.c:20
(gdb) 


Expected results:
Should error out gracefully

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list