Gerrit code: sock_ut is reporting error
by anil.veerabhadrappa@broadcom.com
Hi,
I am trying to submit a couple of patches to fix broken FC NVMe compilation.
However with the latest Gerrit code, unittest,sh (sock_ut) is failing and blocking
my submission. Is anybody else also hitting this issue?.
Thanks!
--- snip ---
spdk/test/unit/lib/sock/sock.c/sock_ut
==6027==
CUnit - A unit testing framework for C - Version 2.1-3
http://cunit.sourceforge.net/
Suite: sock
Test: posix_sock ...passed
Test: ut_sock ...passed
Test: posix_sock_group ...passed
Test: ut_sock_group ...passed
Test: posix_sock_group_fairness ...passed
Test: posix_sock_close ...==6027== Syscall param sendmsg(msg.msg_iov[0]) points to uninitialised byte(s)
==6027== at 0x58C3C40: __sendmsg_nocancel (in /usr/lib64/libpthread-2.17.so)
==6027== by 0x402F1B: _sock_flush (posix.c:496)
==6027== by 0x40325F: spdk_posix_sock_group_impl_poll (posix.c:824)
==6027== by 0x40427D: spdk_sock_group_impl_poll_count (sock.c:507)
==6027== by 0x40427D: spdk_sock_group_poll_count (sock.c:541)
==6027== by 0x404E46: _sock_close (sock_ut.c:787)
==6027== by 0x404E46: posix_sock_close (sock_ut.c:810)
==6027== by 0x4E3D120: run_single_test (in /usr/local/lib/libcunit.so.1.0.1)
==6027== by 0x4E3CD59: run_single_suite (in /usr/local/lib/libcunit.so.1.0.1)
==6027== by 0x4E3AC84: CU_run_all_tests (in /usr/local/lib/libcunit.so.1.0.1)
==6027== by 0x4E3EE9F: basic_run_all_tests (in /usr/local/lib/libcunit.so.1.0.1)
==6027== by 0x4E3EC41: CU_basic_run_tests (in /usr/local/lib/libcunit.so.1.0.1)
==6027== by 0x401732: main (sock_ut.c:842)
==6027== Address 0x1ffefff920 is on thread 1's stack
==6027== in frame #4, created by posix_sock_close (sock_ut.c:809)
==6027==
==6027== Syscall param sendmsg(msg.msg_iov[1]) points to uninitialised byte(s)
==6027== at 0x58C3C40: __sendmsg_nocancel (in /usr/lib64/libpthread-2.17.so)
==6027== by 0x402F1B: _sock_flush (posix.c:496)
==6027== by 0x40325F: spdk_posix_sock_group_impl_poll (posix.c:824)
==6027== by 0x40427D: spdk_sock_group_impl_poll_count (sock.c:507)
==6027== by 0x40427D: spdk_sock_group_poll_count (sock.c:541)
==6027== by 0x404E46: _sock_close (sock_ut.c:787)
==6027== by 0x404E46: posix_sock_close (sock_ut.c:810)
==6027== by 0x4E3D120: run_single_test (in /usr/local/lib/libcunit.so.1.0.1)
==6027== by 0x4E3CD59: run_single_suite (in /usr/local/lib/libcunit.so.1.0.1)
==6027== by 0x4E3AC84: CU_run_all_tests (in /usr/local/lib/libcunit.so.1.0.1)
==6027== by 0x4E3EE9F: basic_run_all_tests (in /usr/local/lib/libcunit.so.1.0.1)
==6027== by 0x4E3EC41: CU_basic_run_tests (in /usr/local/lib/libcunit.so.1.0.1)
==6027== by 0x401732: main (sock_ut.c:842)
==6027== Address 0x1ffefff920 is on thread 1's stack
==6027== in frame #4, created by posix_sock_close (sock_ut.c:809)
==6027==
passed
Run Summary: Type Total Ran Passed Failed Inactive
suites 1 1 n/a 0 0
tests 6 6 6 0 0
asserts 213 213 213 0 n/a
Elapsed time = 0.050 seconds
==6027==
==6027== HEAP SUMMARY:
==6027== in use at exit: 0 bytes in 0 blocks
==6027== total heap usage: 63 allocs, 63 frees, 6,555 bytes allocated
==6027==
==6027== All heap blocks were freed -- no leaks are possible
==6027==
==6027== For counts of detected and suppressed errors, rerun with: -v
==6027== Use --track-origins=yes to see where uninitialised values come from
==6027== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
#