office-gobmx/external/redland
Noel Grandin fa50b71fb8 tsan: use of freed mutex
Because the mutex has already been freed because raptor calls
xmlCleanupParser

I have logged a feature request against raptor for a flag to turn off
this behaviour, but until that lands, this will have to do.

-----

make CppunitTest_filter_pdf results in

WARNING: ThreadSanitizer: use of an invalid mutex (e.g. uninitialized or
destroyed) (pid=330602)
0 pthread_mutex_lock
/home/noel/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1371
(discriminator 8) (cppunittester+0x7e1be)
1 xmlDictFree ??:? (libxml2.so.2+0x3404b) (BuildId:
14c9410dbe8278dfa121dabc48c9ae25eac169d1)
2 lt_xml_unref
/home/noel/libo-tsan/workdir/UnpackedTarball/liblangtag/liblangtag/lt-xml.c:351
(liblangtag-lo.so.1+0x1fc6a)
3 lt_db_finalize
/home/noel/libo-tsan/workdir/UnpackedTarball/liblangtag/liblangtag/lt-database.c:144
(liblangtag-lo.so.1+0xac22)
4 (anonymous namespace)::LiblangtagDataRef::teardown()
/home/noel/libo-tsan/i18nlangtag/source/languagetag/languagetag.cxx:219
(libi18nlangtag.so+0x20951)
5 (anonymous namespace)::LiblangtagDataRef::~LiblangtagDataRef()
/home/noel/libo-tsan/i18nlangtag/source/languagetag/languagetag.cxx:204
(libi18nlangtag.so+0x20951)
6 cxa_at_exit_callback_installed_at(void*)
/home/noel/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:445
(cppunittester+0x6e3af)
7 LanguageTagImpl::canonicalize()
/home/noel/libo-tsan/i18nlangtag/source/languagetag/languagetag.cxx:190
(libi18nlangtag.so+0xe370)
8 main /home/noel/libo-tsan/sal/cppunittester/cppunittester.cxx:482
(cppunittester+0x10cf6c)

Change-Id: I5d9ff1c5667f8e19e5858cd5a408e8f95d2a98e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177320
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-27 09:57:07 +01:00
..
raptor
rasqal
redland
ExternalPackage_raptor.mk
ExternalPackage_rasqal.mk
ExternalPackage_redland.mk
ExternalProject_raptor.mk
ExternalProject_rasqal.mk
ExternalProject_redland.mk
Library_raptor.mk
Library_rasqal.mk
Library_rdf.mk
Makefile
Module_redland.mk
README
UnpackedTarball_raptor.mk
UnpackedTarball_rasqal.mk
UnpackedTarball_redland.mk

Redland RDF library (librdf) from [https://librdf.org/]

== License ==
[git:redland/LICENSE.txt]
Triple-licensed: LGPL v2+/GPL v2+/Apache v2

== Description ==
This module contains the third-party Redland RDF / librdf library, which
is needed to support data in RDF (Resource Description Framework) format.
It consists of 3 parts:
- raptor:  parsers and serializers for numerous RDF file formats
- rasqal:  query engine which supports SPARQL queries
- redland: librdf integrates raptor and rasqal, and provides numerous storage
           engines for storing RDF graphs (in memory, SQL, ...)

Libraries: libraptor, librasqal, librdf

== Patches ==
There are several patches, most of which contain only hacks to get it to
build with the LO build system.

Upstream may merge patches that are attached to the bug tracker, but don't
send patches to the mailing list, those will most likely be ignored.