You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Jiri Daněk (Jira)" <ji...@apache.org> on 2021/02/04 09:09:00 UTC

[jira] [Commented] (PROTON-2230) Valgrind and Sanitizer issues in c-threaderciser test

    [ https://issues.apache.org/jira/browse/PROTON-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17278685#comment-17278685 ] 

Jiri Daněk commented on PROTON-2230:
------------------------------------

New failure from tsan, https://travis-ci.com/github/apache/qpid-proton/jobs/477418912#L3078

{noformat}
6: Test command: /opt/pyenv/shims/python3 "/home/travis/build/apache/qpid-proton/scripts/env.py" "--" "TSAN_OPTIONS=second_deadlock_stack=1 suppressions=/home/travis/build/apache/qpid-proton/tests/tsan.supp" "/home/travis/build/apache/qpid-proton/build/c/tests/c-threaderciser"
6: Test timeout computed to be: 360
6: threaderciser start: threads=8, time=1, actions=[listen, close-listen, connect, close-connect, wake, timeout, cancel-timeout]
6: ==================
6: WARNING: ThreadSanitizer: data race (pid=14199)
6:   Write of size 4 at 0x7b2800005058 by thread T4:
6:     #0 next_event_batch /home/travis/build/apache/qpid-proton/c/src/proactor/epoll.c:2410 (libqpid-proton-proactor.so.1+0x11135)
6:     #1 pn_proactor_wait /home/travis/build/apache/qpid-proton/c/src/proactor/epoll.c:2654 (libqpid-proton-proactor.so.1+0x15256)
6:     #2 proactor_thread /home/travis/build/apache/qpid-proton/c/tests/threaderciser.c:474 (c-threaderciser+0x4aaf)
6:     #3 <null> <null> (libtsan.so.0+0x2d1af)
6: 
6:   Previous read of size 4 at 0x7b2800005058 by thread T6 (mutexes: write M2):
6:     #0 next_drain /home/travis/build/apache/qpid-proton/c/src/proactor/epoll.c:2347 (libqpid-proton-proactor.so.1+0x129ea)
6:     #1 next_runnable /home/travis/build/apache/qpid-proton/c/src/proactor/epoll.c:2397 (libqpid-proton-proactor.so.1+0x129ea)
6:     #2 next_event_batch /home/travis/build/apache/qpid-proton/c/src/proactor/epoll.c:2420 (libqpid-proton-proactor.so.1+0x129ea)
6:     #3 pn_proactor_wait /home/travis/build/apache/qpid-proton/c/src/proactor/epoll.c:2654 (libqpid-proton-proactor.so.1+0x15256)
6:     #4 proactor_thread /home/travis/build/apache/qpid-proton/c/tests/threaderciser.c:474 (c-threaderciser+0x4aaf)
6:     #5 <null> <null> (libtsan.so.0+0x2d1af)
6: 
6:   Location is heap block of size 160 at 0x7b2800005000 allocated by thread T4:
6:     #0 calloc <null> (libtsan.so.0+0x305ca)
6:     #1 find_tslot /home/travis/build/apache/qpid-proton/c/src/proactor/epoll.c:2162 (libqpid-proton-proactor.so.1+0x11f82)
6:     #2 next_event_batch /home/travis/build/apache/qpid-proton/c/src/proactor/epoll.c:2408 (libqpid-proton-proactor.so.1+0x11f82)
6:     #3 pn_proactor_wait /home/travis/build/apache/qpid-proton/c/src/proactor/epoll.c:2654 (libqpid-proton-proactor.so.1+0x15256)
6:     #4 proactor_thread /home/travis/build/apache/qpid-proton/c/tests/threaderciser.c:474 (c-threaderciser+0x4aaf)
6:     #5 <null> <null> (libtsan.so.0+0x2d1af)
6: 
6:   Mutex M2 (0x7b6400000320) created at:
6:     #0 pthread_mutex_init <null> (libtsan.so.0+0x4a636)
6:     #1 pmutex_init /home/travis/build/apache/qpid-proton/c/src/proactor/epoll-internal.h:319 (libqpid-proton-proactor.so.1+0xe222)
6:     #2 pn_proactor /home/travis/build/apache/qpid-proton/c/src/proactor/epoll.c:1945 (libqpid-proton-proactor.so.1+0xe222)
6:     #3 global_init /home/travis/build/apache/qpid-proton/c/tests/threaderciser.c:336 (c-threaderciser+0x4351)
6:     #4 main /home/travis/build/apache/qpid-proton/c/tests/threaderciser.c:565 (c-threaderciser+0x2a53)
6: 
6:   Thread T4 (tid=14204, running) created by main thread at:
6:     #0 pthread_create <null> (libtsan.so.0+0x5ea99)
6:     #1 main /home/travis/build/apache/qpid-proton/c/tests/threaderciser.c:573 (c-threaderciser+0x2b23)
6: 
6:   Thread T6 (tid=14206, running) created by main thread at:
6:     #0 pthread_create <null> (libtsan.so.0+0x5ea99)
6:     #1 main /home/travis/build/apache/qpid-proton/c/tests/threaderciser.c:573 (c-threaderciser+0x2b23)
6: 
6: SUMMARY: ThreadSanitizer: data race /home/travis/build/apache/qpid-proton/c/src/proactor/epoll.c:2410 in next_event_batch
6: ==================
6: ThreadSanitizer: reported 1 warnings
 6/45 Test  #6: c-threaderciser ..................***Failed    1.16 sec
{noformat}

> Valgrind and Sanitizer issues in c-threaderciser test
> -----------------------------------------------------
>
>                 Key: PROTON-2230
>                 URL: https://issues.apache.org/jira/browse/PROTON-2230
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>    Affects Versions: proton-c-0.31.0
>            Reporter: Jiri Daněk
>            Priority: Major
>
> As described in PROTON-2225, the test is not passing cleanly under Valgrind and Sanitizers. Currently, the issues are suppressed and the entries in suppression file are marked with TODO comments.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org