These have been here since at least 2.4.x. Since they're tiny and singletons, I've never allocated the time to track them down, personally.

Daniel

On 08/18/2017 10:06 AM, William Allen Simpson wrote:
On 8/17/17 8:01 PM, Frank Filz wrote:
Branch next

Tag:V2.6-dev.5

A quick test gave a pile of address sanitizer errors:

==11249==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 176 byte(s) in 1 object(s) allocated from:
     #0 0x7ffff6efcfe0 in calloc (/lib64/libasan.so.3+0xc6fe0)
#1 0x615718 in gsh_calloc__ /home/bill/rdma/nfs-ganesha/src/include/abstract_mem.h:145 #2 0x6164d9 in pnfs_ds_alloc /home/bill/rdma/nfs-ganesha/src/support/ds.c:92 #3 0x61804e in pds_init /home/bill/rdma/nfs-ganesha/src/support/ds.c:344 #4 0x6c1d93 in load_config_from_parse /home/bill/rdma/nfs-ganesha/src/config_parsing/config_parsing.c:1923 #5 0x6186db in ReadDataServers /home/bill/rdma/nfs-ganesha/src/support/ds.c:462 #6 0x41cd77 in main /home/bill/rdma/nfs-ganesha/src/MainNFSD/nfs_main.c:468
     #7 0x7ffff569d400 in __libc_start_main (/lib64/libc.so.6+0x20400)

Direct leak of 48 byte(s) in 1 object(s) allocated from:
     #0 0x7ffff6efce20 in malloc (/lib64/libasan.so.3+0xc6e20)
#1 0x7ffff4bc9b1c in krb5int_setspecific (/lib64/libkrb5support.so.0+0x3b1c)

Direct leak of 16 byte(s) in 1 object(s) allocated from:
     #0 0x7ffff6efce20 in malloc (/lib64/libasan.so.3+0xc6e20)
#1 0x480cb3 in gsh_malloc__ /home/bill/rdma/nfs-ganesha/src/include/abstract_mem.h:78 #2 0x7ffff5c6f34d in __rpc_createerr /home/bill/rdma/nfs-ganesha/src/libntirpc/src/mt_misc.c:92 #3 0x7ffff5c6a7da in clnt_ncreate_timed /home/bill/rdma/nfs-ganesha/src/libntirpc/src/clnt_generic.c:195 #4 0x7ffff5c6a726 in clnt_ncreate /home/bill/rdma/nfs-ganesha/src/libntirpc/src/clnt_generic.c:156 #5 0x5ff9ff in gsh_clnt_create /home/bill/rdma/nfs-ganesha/src/RPCAL/rpc_tools.c:487 #6 0x5423d6 in nsm_connect /home/bill/rdma/nfs-ganesha/src/Protocols/NLM/nsm.c:55 #7 0x54565b in nsm_unmonitor_all /home/bill/rdma/nfs-ganesha/src/Protocols/NLM/nsm.c:252 #8 0x490a79 in nfs_start /home/bill/rdma/nfs-ganesha/src/MainNFSD/nfs_init.c:948 #9 0x41cfee in main /home/bill/rdma/nfs-ganesha/src/MainNFSD/nfs_main.c:494
     #10 0x7ffff569d400 in __libc_start_main (/lib64/libc.so.6+0x20400)

Direct leak of 8 byte(s) in 1 object(s) allocated from:
     #0 0x7ffff6efcfe0 in calloc (/lib64/libasan.so.3+0xc6fe0)
#1 0x434e02 in gsh_calloc__ /home/bill/rdma/nfs-ganesha/src/include/abstract_mem.h:145 #2 0x4382de in fsal_init /home/bill/rdma/nfs-ganesha/src/FSAL/fsal_manager.c:491 #3 0x6beda3 in proc_block /home/bill/rdma/nfs-ganesha/src/config_parsing/config_parsing.c:1290 #4 0x6be768 in do_block_load /home/bill/rdma/nfs-ganesha/src/config_parsing/config_parsing.c:1194 #5 0x6bf2b3 in proc_block /home/bill/rdma/nfs-ganesha/src/config_parsing/config_parsing.c:1320 #6 0x6c1cdb in load_config_from_parse /home/bill/rdma/nfs-ganesha/src/config_parsing/config_parsing.c:1907 #7 0x6235f8 in ReadExports /home/bill/rdma/nfs-ganesha/src/support/exports.c:2005 #8 0x41ce4a in main /home/bill/rdma/nfs-ganesha/src/MainNFSD/nfs_main.c:478
     #9 0x7ffff569d400 in __libc_start_main (/lib64/libc.so.6+0x20400)

Direct leak of 4 byte(s) in 1 object(s) allocated from:
     #0 0x7ffff6efcfe0 in calloc (/lib64/libasan.so.3+0xc6fe0)
#1 0x480e68 in gsh_calloc__ /home/bill/rdma/nfs-ganesha/src/include/abstract_mem.h:145 #2 0x7ffff5c6d848 in __nc_error /home/bill/rdma/nfs-ganesha/src/libntirpc/src/getnetconfig.c:154 #3 0x7ffff5c6de7f in getnetconfigent /home/bill/rdma/nfs-ganesha/src/libntirpc/src/getnetconfig.c:410 #4 0x48813c in nfs_Init_svc /home/bill/rdma/nfs-ganesha/src/MainNFSD/nfs_rpc_dispatcher_thread.c:1137 #5 0x48f94a in nfs_Init /home/bill/rdma/nfs-ganesha/src/MainNFSD/nfs_init.c:714 #6 0x490a5f in nfs_start /home/bill/rdma/nfs-ganesha/src/MainNFSD/nfs_init.c:940 #7 0x41cfee in main /home/bill/rdma/nfs-ganesha/src/MainNFSD/nfs_main.c:494
     #8 0x7ffff569d400 in __libc_start_main (/lib64/libc.so.6+0x20400)

Direct leak of 1 byte(s) in 1 object(s) allocated from:
     #0 0x7ffff6efce20 in malloc (/lib64/libasan.so.3+0xc6e20)
#1 0x480cb3 in gsh_malloc__ /home/bill/rdma/nfs-ganesha/src/include/abstract_mem.h:78 #2 0x7ffff5c86cb7 in xdr_string /home/bill/rdma/nfs-ganesha/src/libntirpc/src/xdr.c:662
     #3 0x7ffff6ecef4e in xdr_string (/lib64/libasan.so.3+0x98f4e)
#4 0x7ffff5c86d84 in xdr_wrapstring /home/bill/rdma/nfs-ganesha/src/libntirpc/src/xdr.c:694 #5 0x7ffff5c64849 in authnone_wrap /home/bill/rdma/nfs-ganesha/src/libntirpc/src/auth_none.c:154 #6 0x7ffff5c742ff in rpc_ctx_xfer_replymsg /home/bill/rdma/nfs-ganesha/src/libntirpc/src/rpc_ctx.c:143 #7 0x7ffff5c84d4b in svc_vc_decode /home/bill/rdma/nfs-ganesha/src/libntirpc/src/svc_vc.c:801 #8 0x48b375 in nfs_rpc_decode_request /home/bill/rdma/nfs-ganesha/src/MainNFSD/nfs_rpc_dispatcher_thread.c:1738 #9 0x7ffff5c84c40 in svc_vc_recv /home/bill/rdma/nfs-ganesha/src/libntirpc/src/svc_vc.c:769 #10 0x7ffff5c81589 in svc_rqst_xprt_task /home/bill/rdma/nfs-ganesha/src/libntirpc/src/svc_rqst.c:683 #11 0x7ffff5c81a0c in svc_rqst_epoll_events /home/bill/rdma/nfs-ganesha/src/libntirpc/src/svc_rqst.c:856 #12 0x7ffff5c81b59 in svc_rqst_epoll_loop /home/bill/rdma/nfs-ganesha/src/libntirpc/src/svc_rqst.c:907 #13 0x7ffff5c81c3a in svc_rqst_run_task /home/bill/rdma/nfs-ganesha/src/libntirpc/src/svc_rqst.c:945 #14 0x7ffff5c8acbd in work_pool_thread /home/bill/rdma/nfs-ganesha/src/libntirpc/src/work_pool.c:197
     #15 0x7ffff60b3739 in start_thread (/lib64/libpthread.so.0+0x7739)

Indirect leak of 53 byte(s) in 1 object(s) allocated from:
     #0 0x7ffff6efce20 in malloc (/lib64/libasan.so.3+0xc6e20)
     #1 0x7ffff5709cc9 in __GI___strdup (/lib64/libc.so.6+0x8ccc9)

Indirect leak of 24 byte(s) in 1 object(s) allocated from:
     #0 0x7ffff6efce20 in malloc (/lib64/libasan.so.3+0xc6e20)
     #1 0x7ffff62ed599  (/lib64/libgssapi_krb5.so.2+0x23599)

Indirect leak of 8 byte(s) in 1 object(s) allocated from:
     #0 0x7ffff6efce20 in malloc (/lib64/libasan.so.3+0xc6e20)
     #1 0x7ffff62ed5c9  (/lib64/libgssapi_krb5.so.2+0x235c9)

Indirect leak of 4 byte(s) in 1 object(s) allocated from:
     #0 0x7ffff6e90120 in strdup (/lib64/libasan.so.3+0x5a120)
#1 0x6b79b1 in gsh_strdup__ /home/bill/rdma/nfs-ganesha/src/include/abstract_mem.h:208 #2 0x6bda61 in do_block_load /home/bill/rdma/nfs-ganesha/src/config_parsing/config_parsing.c:1097 #3 0x6bf2b3 in proc_block /home/bill/rdma/nfs-ganesha/src/config_parsing/config_parsing.c:1320 #4 0x6be768 in do_block_load /home/bill/rdma/nfs-ganesha/src/config_parsing/config_parsing.c:1194 #5 0x6bf2b3 in proc_block /home/bill/rdma/nfs-ganesha/src/config_parsing/config_parsing.c:1320 #6 0x6c1cdb in load_config_from_parse /home/bill/rdma/nfs-ganesha/src/config_parsing/config_parsing.c:1907 #7 0x6235f8 in ReadExports /home/bill/rdma/nfs-ganesha/src/support/exports.c:2005 #8 0x41ce4a in main /home/bill/rdma/nfs-ganesha/src/MainNFSD/nfs_main.c:478
     #9 0x7ffff569d400 in __libc_start_main (/lib64/libc.so.6+0x20400)

SUMMARY: AddressSanitizer: 342 byte(s) leaked in 10 allocation(s).


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to