https://bugs.linaro.org/show_bug.cgi?id=1456

            Bug ID: 1456
           Summary: odp_syncronizers: data race
           Product: OpenDataPlane
           Version: 1.0.2
          Hardware: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: ---
         Component: General ODP
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 300
  --> https://bugs.linaro.org/attachment.cgi?id=300&action=edit
thread sanitizer output

export CFLAGS="-fsanitize=thread -fno-omit-frame-pointer -g -O2"
./configure --enable-test-vald --with-cunit-path=/home/mike/CUnitHome
test/validation/odp_synchronizers

see attachment for full log

Typical:
vi 
WARNING: ThreadSanitizer: data race (pid=25311)
  Write of size 4 at 0x7fbed9f3d414 by thread T4:
    #0 barrier_test /home/mike/git/odp/test/validation/odp_synchronizers.c:219
(odp_synchronizers+0x0000000bc6e1)
    #1 no_barrier_functional_test
/home/mike/git/odp/test/validation/odp_synchronizers.c:247
(odp_synchronizers+0x0000000bc8ea)
    #2 odp_run_start_routine
/home/mike/git/odp/platform/linux-generic/odp_linux.c:72
(odp_synchronizers+0x0000000be26c)

  Previous read of size 4 at 0x7fbed9f3d414 by thread T5:
    #0 barrier_test /home/mike/git/odp/test/validation/odp_synchronizers.c:180
(odp_synchronizers+0x0000000bc540)
    #1 no_barrier_functional_test
/home/mike/git/odp/test/validation/odp_synchronizers.c:247
(odp_synchronizers+0x0000000bc8ea)
    #2 odp_run_start_routine
/home/mike/git/odp/platform/linux-generic/odp_linux.c:72
(odp_synchronizers+0x0000000be26c)

  Thread T4 (tid=25316, running) created by main thread at:
    #0 pthread_create <null>:0 (odp_synchronizers+0x0000000565d1)
    #1 odph_linux_pthread_create
/home/mike/git/odp/platform/linux-generic/odp_linux.c:126
(odp_synchronizers+0x0000000be145)
    #2 odp_cunit_thread_create
/home/mike/git/odp/test/validation/common/odp_cunit_common.c:27
(odp_synchronizers+0x0000000bd57e)
    #3 test_no_barrier_functional
/home/mike/git/odp/test/validation/odp_synchronizers.c:922
(odp_synchronizers+0x0000000bc184)
    #4 run_single_test TestRun.c:0 (libcunit.so.1+0x000000007348)
    #5 __libc_start_main /build/buildd/glibc-2.19/csu/libc-start.c:287
(libc.so.6+0x000000021ec4)

  Thread T5 (tid=25317, running) created by main thread at:
    #0 pthread_create <null>:0 (odp_synchronizers+0x0000000565d1)
    #1 odph_linux_pthread_create
/home/mike/git/odp/platform/linux-generic/odp_linux.c:126
(odp_synchronizers+0x0000000be145)
    #2 odp_cunit_thread_create
/home/mike/git/odp/test/validation/common/odp_cunit_common.c:27
(odp_synchronizers+0x0000000bd57e)
    #3 test_no_barrier_functional
/home/mike/git/odp/test/validation/odp_synchronizers.c:922
(odp_synchronizers+0x0000000bc184)
    #4 run_single_test TestRun.c:0 (libcunit.so.1+0x000000007348)
    #5 __libc_start_main /build/buildd/glibc-2.19/csu/libc-start.c:287
(libc.so.6+0x000000021ec4)

SUMMARY: ThreadSanitizer: data race
/home/mike/git/odp/test/validation/odp_synchronizers.c:219 barrier_test

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to