Skip to content

Instantly share code, notes, and snippets.

@davidc0le
Last active May 9, 2019 19:37
Show Gist options
  • Save davidc0le/cfcef3a17769fb918c13a64f59f6f8bc to your computer and use it in GitHub Desktop.
Save davidc0le/cfcef3a17769fb918c13a64f59f6f8bc to your computer and use it in GitHub Desktop.
nfs-ganesha segfault v2.8 dev 29 - May 9th 2019
kernel: [4311785.868083] traps: ganesha.nfsd[24341] general protection ip:7f2fbfc9eb6e sp:7f2e496d3720 error:0 in libganesha_nfsd.so.2.8[7f2fbfb55000+1de000]
Core was generated by `/usr/bin/ganesha.nfsd -L /var/log/ganesha/ganesha.log -f /etc/ganesha/ganesha.c'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 _mdcache_lru_ref (entry=0x5f30313431333035, flags=flags@entry=0, func=func@entry=0x7f2fbfcf2890 <__func__.24022> "mdcache_get", line=line@entry=175)
at /root/git-repo/nfs-ganesha/src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_lru.c:1882
1882 /root/git-repo/nfs-ganesha/src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_lru.c: No such file or directory.
[Current thread is 1 (Thread 0x7f2e496d6700 (LWP 24341))]
(gdb) bt full
#0 _mdcache_lru_ref (entry=0x5f30313431333035, flags=flags@entry=0, func=func@entry=0x7f2fbfcf2890 <__func__.24022> "mdcache_get", line=line@entry=175) at /root/git-repo/nfs-ganesha/src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_lru.c:1882
lru = 0x5f3031343133324d
qlane = <optimised out>
q = <optimised out>
__func__ = "_mdcache_lru_ref"
#1 0x00007f2fbfc9babe in mdcache_get (entry=<optimised out>) at /root/git-repo/nfs-ganesha/src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_lru.h:175
No locals.
#2 mdcache_readdir_chunked (directory=0x7f2f780022e0, whence=0, dir_state=0x7f2e496d3950, cb=0x7f2fbfbc3de0 <populate_dirent>, attrmask=0, eod_met=0x7f2e496d3a1f) at /root/git-repo/nfs-ganesha/src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_helpers.c:2995
status = {major = ERR_FSAL_NO_ERROR, minor = <optimised out>}
cb_result = <optimised out>
entry = 0x5f30313431333035
attrs = {request_mask = 0, valid_mask = 1171406, supported = 9560014, type = REGULAR_FILE, filesize = 4096, fsid = {major = 0, minor = 48}, acl = 0x0, fileid = 905002, mode = 420, numlinks = 1, owner = 501, group = 20, rawdev = {major = 0, minor = 0}, atime = {tv_sec = 1475245671, tv_nsec = 0}, creation = {tv_sec = 0, tv_nsec = 0}, ctime = {tv_sec = 1475245671, tv_nsec = 0}, mtime = {tv_sec = 1475245671, tv_nsec = 0}, spaceused = 4096, change = 1475245671000000000, generation = 0, expire_time_attr = 60, fs_locations = 0x0, sec_label = {slai_lfs = {lfs_lfs = 0, lfs_pi = 0}, slai_data = {slai_data_len = 0, slai_data_val = 0x0}}}
dirent = 0x7f2e980e60d0
has_write = true
set_first_ck = false
next_ck = 56
look_ck = 56
chunk = 0x7f2f8c009d40
first_pass = true
eod = false
reload_chunk = false
__func__ = "mdcache_readdir_chunked"
__mptr = <optimised out>
#3 0x00007f2fbfbc5693 in fsal_readdir (directory=directory@entry=0x7f2f78002318, cookie=<optimised out>, cookie@entry=0, nbfound=nbfound@entry=0x7f2e496d3a20, eod_met=eod_met@entry=0x7f2e496d3a1f, attrmask=attrmask@entry=0, cb=cb@entry=0x7f2fbfc76690 <nfs3_readdir_callback>, opaque=0x7f2e496d3a30) at /root/git-repo/nfs-ganesha/src/FSAL/fsal_helper.c:1176
fsal_status = <optimised out>
cb_status = {major = ERR_FSAL_NO_ERROR, minor = 0}
state = {directory = 0x7f2f78002318, status = 0x7f2e496d3948, cb = 0x7f2fbfc76690 <nfs3_readdir_callback>, last_cookie = 0, cb_state = CB_ORIGINAL, cb_nfound = 0x7f2e496d3a20, attrmask = 0, cb_parms = {opaque = 0x7f2e496d3a30, name = 0x7f2f8c017280 "._.DS_Store", attr_allowed = false, in_result = true}}
access_mask = 2214592513
access_mask_attr = 2231369761
__func__ = "fsal_readdir"
#4 0x00007f2fbfc76a9d in nfs3_readdir (arg=<optimised out>, req=<optimised out>, res=0x7f2e98357630) at /root/git-repo/nfs-ganesha/src/Protocols/NFS/nfs3_readdir.c:285
dir_obj = 0x7f2f78002318
parent_dir_obj = 0x0
count = <optimised out>
cookie = 0
cookie_verifier = "\000\000\000\000\000\000\000"
num_entries = 4
estimated_num_entries = <optimised out>
dir_filetype = <optimised out>
eod_met = false
fsal_status = <optimised out>
fsal_status_gethandle = <optimised out>
rc = 0
tracker = {entries = 0x7f2e98773fb0, mem_left = 16084, count = 6, total_entries = 120, error = NFS3_OK}
use_cookie_verifier = <optimised out>
resfail = 0x7f2e98357638
__func__ = "nfs3_readdir"
RES_READDIR3_OK = 0x7f2e98357638
#5 0x00007f2fbfba5b04 in nfs_rpc_process_request (reqdata=0x7f2e983bc260) at /root/git-repo/nfs-ganesha/src/MainNFSD/nfs_worker_thread.c:1484
client_ip = 0x55a988aee6b0 "::ffff:10.0.0.12"
progname = <optimised out>
reqdesc = 0x7f2fbff35f00 <nfs3_func_desc+768>
arg_nfs = 0x7f2e983bca38
xprt = 0x7f2fa0000d60
xdrs = <optimised out>
res_nfs = <optimised out>
dpq_status = <optimised out>
timer_start = {tv_sec = 1557427819, tv_nsec = 983299830}
auth_rc = <optimised out>
xprt_rc = <optimised out>
port = <optimised out>
rc = 0
exportid = <optimised out>
no_dispatch = false
__func__ = "nfs_rpc_process_request"
#6 0x00007f2fbf120fd1 in svc_request (xprt=0x7f2fa0000d60, xdrs=<optimised out>) at /root/git-repo/nfs-ganesha/src/libntirpc/src/svc_rqst.c:793
stat = <optimised out>
req = 0x7f2e983bc260
rpc_dplx_rec = 0x7f2fa0000d60
__func__ = "svc_request"
#7 0x00007f2fbf11f5ad in svc_rqst_xprt_task (wpe=0x7f2fa0000f80) at /root/git-repo/nfs-ganesha/src/libntirpc/src/svc_rqst.c:774
rec = 0x7f2fa0000d60
__func__ = "svc_rqst_xprt_task"
#8 0x00007f2fbf11fc02 in svc_rqst_epoll_loop (wpe=0x55a988ad2240) at /root/git-repo/nfs-ganesha/src/libntirpc/src/svc_rqst.c:1089
rec = <optimised out>
sr_rec = 0x55a988ad2240
cc = <optimised out>
n = <optimised out>
ts = {tv_sec = 4311705, tv_nsec = 174350291}
timeout_ms = <optimised out>
expire_ms = <optimised out>
n_events = 1
finished = <optimised out>
__func__ = "svc_rqst_epoll_loop"
#9 0x00007f2fbf127ef9 in work_pool_thread (arg=0x7f2e742fd690) at /root/git-repo/nfs-ganesha/src/libntirpc/src/work_pool.c:184
wpt = 0x7f2e742fd690
pool = 0x7f2fbf33c8c0 <svc_work_pool>
have = <optimised out>
ts = {tv_sec = 1557427850, tv_nsec = 849129878}
rc = <optimised out>
spawn = <optimised out>
__func__ = "work_pool_thread"
#10 0x00007f2fbf93d6db in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
No symbol table info available.
#11 0x00007f2fbf45e88f in clone () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment