clang tot bots red with thread safety annotation warnings |
|||
Issue descriptione.g. https://logs.chromium.org/v/?s=chromium%2Fbb%2Fchromium.clang%2FToTLinux%2F3675%2F%2B%2Frecipes%2Fsteps%2Fcompile%2F0%2Fstdout In file included from ../../net/third_party/quic/tools/quic_server.h:18: In file included from ../../net/third_party/quic/core/crypto/quic_crypto_server_config.h:18: In file included from ../../net/third_party/quic/core/crypto/crypto_secret_boxer.h:14: In file included from ../../net/third_party/quic/platform/api/quic_mutex.h:9: ../../net/third_party/quic/platform/impl/quic_mutex_impl.h:66:23: error: 'unlock_function' attribute without capability arguments refers to 'this', but 'QuicLockImpl' isn't annotated with 'capability' or 'scoped_lockable' attribute [-Werror,-Wthread-safety-attributes] void ReaderUnlock() UNLOCK_FUNCTION(); ^ clang regression range 342596:342610. Very likely due to http://llvm.org/viewvc/llvm-project?view=revision&revision=342605 lukasza, I'm guessing we're holding something wrong in the code added in issue 831825? Or is the warning wrong?
,
Sep 20
Internal CL with the fix uploaded here: cr/213856457. Let's discuss there (including whether a separate Chromium CL is needed, or if we can just wait for the regular/periodic quic roll).
,
Sep 21
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/eb0dd07017538e2bcbb0b649c6e407816b3bd69a commit eb0dd07017538e2bcbb0b649c6e407816b3bd69a Author: Lukasz Anforowicz <lukasza@chromium.org> Date: Fri Sep 21 17:18:30 2018 Add LOCKABLE annotation to QuicLockImpl. QuicLockImpl's methods had various lock annotations (e.g. EXCLUSIVE_LOCK_FUNCTION), but the class itself wasn't annotated as LOCKABLE. After a recent clang change this was causing compiler errors like the one reported in https://crbug.com/887610 . This CL fixes this by adding LOCKABLE annotation to QuicLockImpl. I've searched for other files under //net/third_party/quic that include LOCK_FUNCTION substring but do not include LOCKABLE substring. It seems that quic_mutex_impl.h was the only one. Merge internal change 213866214 Bug: 887610 Change-Id: Iddedd166a97cfe1f77ea2c14a6e98a836bdb08d8 Reviewed-on: https://chromium-review.googlesource.com/1237716 Reviewed-by: Zhongyi Shi <zhongyi@chromium.org> Commit-Queue: Zhongyi Shi <zhongyi@chromium.org> Cr-Commit-Position: refs/heads/master@{#593240} [modify] https://crrev.com/eb0dd07017538e2bcbb0b649c6e407816b3bd69a/net/third_party/quic/platform/impl/quic_mutex_impl.h
,
Sep 21
https://luci-milo.appspot.com/buildbot/chromium.clang/ToTLinux/3742 is the first build to include the fix from #c3 / r593240, but unfortunately it seems that another build error has creeped in in the meantime - even https://luci-milo.appspot.com/buildbot/chromium.clang/ToTLinux/3741 hits the other error (before even getting to the error being covered by the current bug). Given above, I think I will (speculatively) mark the current bug as fixed, and use another separate bug ( issue 888061 ) for the other problem.
,
Sep 24
|
|||
►
Sign in to add a comment |
|||
Comment 1 by lukasza@chromium.org
, Sep 20