Xueqian Hu has uploaded this change for review.

View Change

gsh_libunwind having some uninitialised fields

find uninitialized fileds by valgrind:
==95935== 24 errors in context 3 of 82:
==95935== Syscall param write(buf) points to uninitialised byte(s)
==95935== at 0x7CC69BD: syscall (in /usr/lib64/libc-2.28.so)
==95935== by 0x403C199: ??? (in /usr/local/nutanix/clanglibs/libunwind.so.8.0.1)
==95935== by 0x403C398: ??? (in /usr/local/nutanix/clanglibs/libunwind.so.8.0.1)
==95935== by 0x403F7FD: ??? (in /usr/local/nutanix/clanglibs/libunwind.so.8.0.1)
==95935== by 0x403F6C7: ??? (in /usr/local/nutanix/clanglibs/libunwind.so.8.0.1)
==95935== by 0x403CD1F: _ULx86_64_step (in /usr/local/nutanix/clanglibs/libunwind.so.8.0.1)
==95935== by 0x4EF4B07: gsh_libunwind (log_functions.c:2940)
==95935== by 0x4EBE57A: crash_handler (nfs_init.c:276)
==95935== by 0x765DCEF: ??? (in /usr/lib64/libpthread-2.28.so)
==95935== Address 0x22f30000 is on thread 24's stack
==95935== in frame #6, created by gsh_libunwind (log_functions.c:2866)
==95935== Uninitialised value was created by a stack allocation
==95935== at 0x4EF4748: gsh_libunwind (log_functions.c:2866)

Change-Id: Ief205b642d18cbffdde46b4982021a7c975c0688
Signed-off-by: Xueqian Hu <xh140312@outlook.com>
---
M src/log/log_functions.c
1 file changed, 4 insertions(+), 1 deletion(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/91/1198891/1

To view, visit change 1198891. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: Ief205b642d18cbffdde46b4982021a7c975c0688
Gerrit-Change-Number: 1198891
Gerrit-PatchSet: 1
Gerrit-Owner: Xueqian Hu <xh140312@outlook.com>