Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed valgrind error #253

Open
wants to merge 1 commit into
base: next
Choose a base branch
from
Open

Fixed valgrind error #253

wants to merge 1 commit into from

Conversation

skmprabhu1
Copy link

Fixed the following valgrind report by initializing
'buffer' to 0 in 'svc_dg_reply':

==2615== Syscall param sendmsg(msg.msg_control) points to uninitialised byte(s)
==2615== at 0x6651C6D: ??? (in /usr/lib64/libpthread-2.17.so)
==2615== by 0x6A8A9E1: svc_dg_reply (svc_dg.c:465)
==2615== by 0x6A88748: svc_sendreply (svc.c:549)
==2615== by 0x44CDF2: nfs_rpc_execute (nfs_worker_thread.c:1344)
==2615== by 0x44D447: worker_run (nfs_worker_thread.c:1562)
==2615== by 0x50C4FF: fridgethr_start_routine (fridgethr.c:550)
==2615== by 0x664AE24: start_thread (in /usr/lib64/libpthread-2.17.so)
==2615== by 0x6FC434C: clone (in /usr/lib64/libc-2.17.so)
==2615== Address 0x1360ce08 is on thread 17's stack
==2615== in frame #1, created by svc_dg_reply (svc_dg.c:407)

Signed-off-by: Prabhu Murugesan [email protected]

Fixed the following valgrind report by initializing
'buffer' to 0 in 'svc_dg_reply':

==2615== Syscall param sendmsg(msg.msg_control) points to uninitialised byte(s)
==2615==    at 0x6651C6D: ??? (in /usr/lib64/libpthread-2.17.so)
==2615==    by 0x6A8A9E1: svc_dg_reply (svc_dg.c:465)
==2615==    by 0x6A88748: svc_sendreply (svc.c:549)
==2615==    by 0x44CDF2: nfs_rpc_execute (nfs_worker_thread.c:1344)
==2615==    by 0x44D447: worker_run (nfs_worker_thread.c:1562)
==2615==    by 0x50C4FF: fridgethr_start_routine (fridgethr.c:550)
==2615==    by 0x664AE24: start_thread (in /usr/lib64/libpthread-2.17.so)
==2615==    by 0x6FC434C: clone (in /usr/lib64/libc-2.17.so)
==2615==  Address 0x1360ce08 is on thread 17's stack
==2615==  in frame nfs-ganesha#1, created by svc_dg_reply (svc_dg.c:407)

Signed-off-by: Prabhu Murugesan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants