2 # This file is part of the LibreOffice project.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 # Use via environment variable TSAN_OPTIONS=suppressions=.../tsan-suppress.txt
11 # There looks to be a lock ordering problem here, but I can't see how it could
12 # actually be hit in practice.
13 deadlock:cppuhelper::ServiceManager::disposing()
14 deadlock:cppuhelper::ServiceManager::loadImplementation
15 deadlock:AffineBridge::v_callInto_v
17 # Ignore stuff in external DBUS library.
18 # Some kind of dbus lock issue when we call it from psp::CUPSManager.
20 race:g_dbus_connection_signal_unsubscribe
21 race:g_path_get_basename
22 race:g_date_time_format_iso8601
25 # inside an assert so I don't care.
26 race:cppu::OWeakConnectionPoint::acquire
27 race:AffineBridge::v_enter
30 # right now, I'm not interested in deadlocks at all, too many false+
33 # This is checking SAL_STRING_IS_STATIC, which is safe because that is written at compile time.
34 # Depending on the optimisation/debug level, the call stack may have different leaves, hence
35 # specifying this in more than one way.
36 race:rtl::str::acquire<_rtl_uString>
37 race:rtl::str::release<_rtl_uString>
38 race:rtl_uString_acquire
39 race:rtl_uString_release
40 race:rtl_uString_assign
42 # I've convinced myself this is a false+, caused by ping-ponging the buffer between two
43 # threads, but I might be wrong.
44 race:XBufferedThreadedStream::getNextBlock
46 # I am not interested in stuff the embedded JVM does.
49 # I think this is OK, because at this point we are doing
51 # and we know from our callers that the refcount must be at least one
52 # so there is no failure mode.
55 # TODO There appears to be a race here, initialising the
56 # ::com::sun::star::uno::Sequence< T >::s_pType
57 # field. But no idea at all how to fix it.
58 race:cppu::getTypeFavourUnsigned
61 # This is all inside GIO/Glib, no idea what it is doing.
63 race:slab_allocator_alloc_chunk
64 race:g_source_destroy_internal
65 race:g_source_unref_internal
67 race:g_socket_send_message_with_timeout
68 race:g_idle_source_new
75 # Python build, lock order inversion
78 # Not interested in deadlock issues when they involve the shutdown path
79 # - the shutdown path is special, so if we see a lock-ordering here that conflicts with
80 # a "normal" lock-ordering path, that is highly unlikely to result in a real issue.
83 # Sometimes tsan will report data-races in these, who knows why, they should be thread-safe
88 # There is a lock-cycle here, together with the mutexes acquired in
89 # SvtSysLocaleOptions::SvtSysLocaleOptions
90 # SvtSysLocale::SvtSysLocale
91 # but I can't see how it could lead to a problem in practice
92 deadlock:ItemHolder1::impl_addItem
94 # ignore warning about nRefCount in sal_Sequence.
95 # <sberg> noelgrandin, we generally assume that sal_Int32 is small enough, and hardware sane enough,
96 # that reading it will always give a sane value, i.e., if the read happens in parallel with a write,
97 # the read produces either the old, original value, or the newly written one.
98 race:cppu::createEmptySequence
99 race:uno_type_sequence_reference2One
101 # ignore harmless data race on m_nTimeoutMS
102 race:GtkSalTimer::Start
104 # TODO data-race with fields on salhelper::Timer, but I see no way of fixing this because this class
106 race:salhelper::Timer
108 # TODO LanguageTag is copying data around without any locking at all, but it seems to be touched
109 # from multiple threads. I am nervous to randomly add locks because it is performance sensitive.
112 # harmless race on m_storedTypeRefs
113 race:cppu::getTypeEntries
115 # double-checked locking in our
116 # inline ::css::uno::Type const & cppu_detail_getUnoType(css:uno:Foo const *)
118 race:typelib_typedescription_newEmpty
119 race:typelib_typedescriptionreference_getByName
121 # harmless race where two fields are sharing an address slot/word
122 race:ScFormulaCell::GetMatrixFlag
123 race:ScFormulaCell::InterpretTail