ea9c80b588
==6642==ERROR: AddressSanitizer: odr-violation (0x0000024db3a0): [1] size=4 'SigUtil::SigHandlerTrap::SigHandling' ../common/SigUtil.cpp:113:38 [2] size=4 'SigUtil::SigHandlerTrap::SigHandling' common/SigUtil.cpp:113:38 These globals were registered at these points: [1]: #0 0x68d7d8 in __asan_register_globals.part.13 lode/packages/llvm-472c6ef8b0f53061b049039f9775ab127beafbe4.src/compiler-rt/lib/asan/asan_globals.cc:365 #1 0x7f4b7eeed83b in asan.module_ctor (online-san/test/../test/.libs/unit-base.so+0x6fd83b) [2]: #0 0x68d7d8 in __asan_register_globals.part.13 lode/packages/llvm-472c6ef8b0f53061b049039f9775ab127beafbe4.src/compiler-rt/lib/asan/asan_globals.cc:365 #1 0x104590e in asan.module_ctor (online-san/loolwsd+0x104590e) No need to include SigUtil for unit-base (invoked during 'make check'), it's only needed for unittest_SOURCES (invoked during 'make'). Same for Log::IsShutdown(), 'vtable for Session', 'typeinfo name for TileQueue', 'JWTAuth::_key', 'vtable for ClientSession', 'UnitBase::Global', 'SocketPoll::DefaultPollTimeoutMs' and 'SslContext::Instance'. But don't just remove all wsd_sources from the new-style unit tests, as that would lead to missing symbols: [ loolwsd ] ERR Failed to load online-san/test/../test/.libs/unit-base.so: online-san/test/../test/.libs/unit-base.so: undefined symbol: _Z20documentViewCallbackiPKcPv| common/Unit.cpp:40 (Seen during make check's unit-base.) Change-Id: I305185f6437c5b4887d8e09a592e578a94f2659c Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87323 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com> |
||
---|---|---|
.. | ||
data | ||
.gitignore | ||
countloolkits.hpp | ||
DeltaTests.cpp | ||
fakesockettest.cpp | ||
helpers.hpp | ||
httpcrashtest.cpp | ||
httpwstest.cpp | ||
integration-http-server.cpp | ||
Makefile.am | ||
run_unit.sh.in | ||
test.cpp | ||
test.hpp | ||
TileCacheTests.cpp | ||
TileQueueTests.cpp | ||
UnitAdmin.cpp | ||
UnitBadDocLoad.cpp | ||
UnitCalc.cpp | ||
UnitClient.cpp | ||
UnitClose.cpp | ||
UnitConvert.cpp | ||
UnitCopyPaste.cpp | ||
UnitCursor.cpp | ||
UnitEachView.cpp | ||
UnitFuzz.cpp | ||
UnitHosting.cpp | ||
UnitHTTP.cpp | ||
UnitInsertDelete.cpp | ||
UnitLargePaste.cpp | ||
UnitLoad.cpp | ||
UnitLoadTorture.cpp | ||
UnitOAuth.cpp | ||
UnitOOB.cpp | ||
UnitPasswordProtected.cpp | ||
UnitPaste.cpp | ||
UnitPrefork.cpp | ||
UnitRenderingOptions.cpp | ||
UnitRenderShape.cpp | ||
UnitSession.cpp | ||
UnitStorage.cpp | ||
UnitTiffLoad.cpp | ||
UnitTileCache.cpp | ||
UnitTimeout.cpp | ||
UnitTyping.cpp | ||
UnitUNOCommand.cpp | ||
UnitWOPI.cpp | ||
UnitWOPIDocumentConflict.cpp | ||
UnitWOPILoadEncoded.cpp | ||
UnitWopiOwnertermination.cpp | ||
UnitWOPIRenameFile.cpp | ||
UnitWOPISaveAs.cpp | ||
UnitWOPITemplate.cpp | ||
UnitWOPIVersionRestore.cpp | ||
UnitWOPIWatermark.cpp | ||
WhiteBoxTests.cpp | ||
WopiTestServer.hpp |