libreoffice-online/common
Michael Meeks 685709080d Revert attempts at re-using ostringstream
Cleaning up the thread variable with the shared string stream is
    something of a nightmare, for a rather marginal gain.

    ==9296== Invalid write of size 1
    ...
    ==9296==    by 0x738C092: str (sstream:195)
    ==9296==    by 0x738C092: std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::str(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (sstream:649)
    ==9296==    by 0x65383A: Log::beginLog[abi:cxx11](char const*) (Log.cpp:141)
    ==9296==    by 0x551823: Admin::~Admin() (Admin.cpp:381)
    ==9296==    by 0x7D9ECF7: __run_exit_handlers (exit.c:83)
    ==9296==    by 0x7D9ED49: exit (exit.c:105)
    ==9296==    by 0x7D86F50: (below main) (libc-start.c:342)
    ==9296==  Address 0x8ba41c0 is 0 bytes inside a block of size 513 free'd
    ==9296==    at 0x4C2FA1D: operator delete(void*) (vg_replace_malloc.c:576)
    ...
    ==9296==    by 0x738784A: ~basic_stringbuf (sstream:65)
    ==9296==    by 0x738784A: std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_ostringstream() (sstream:591)
    ==9296==    by 0x7D9F27E: __call_tls_dtors (cxa_thread_atexit_impl.c:155)
    ==9296==    by 0x7D9EC0A: __run_exit_handlers (exit.c:41)
    ==9296==    by 0x7D9ED49: exit (exit.c:105)
    ==9296==    by 0x7D86F50: (below main) (libc-start.c:342)

    Good to log during shutdown / exit.

This reverts commit c315d219d5967f23fb1769e78021f61b8f9da6ec.
This reverts commit ce78fec310.

Change-Id: Ia4a15be336d89d8d883530943724d48e4b0ec9fe
Reviewed-on: https://gerrit.libreoffice.org/71444
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2019-04-27 23:18:11 +02:00
..
Authorization.cpp Extract Authorization out of Auth and put it into common 2018-11-29 21:47:13 +01:00
Authorization.hpp Extract Authorization out of Auth and put it into common 2018-11-29 21:47:13 +01:00
Common.hpp Switch local prisoner sockets to abstract UDS 2019-03-30 16:51:06 +00:00
Crypto.cpp respond different logo brands when it has support 2018-05-24 15:10:45 -04:00
Crypto.hpp respond different logo brands when it has support 2018-05-24 15:10:45 -04:00
FileUtil.cpp android: #if(n)def MOBILEAPP -> #if (!)MOBILEAPP for better reliability. 2019-02-12 12:20:11 +01:00
FileUtil.hpp wsd: faster jail directory cleanup 2017-01-30 05:10:09 +00:00
IoUtil.cpp common: spell out non-trivial autos to improve readability 2018-02-07 10:18:12 +01:00
IoUtil.hpp remove obsolete Poco headers, and Poco SSL pieces. 2017-03-16 18:03:23 +00:00
JsonUtil.hpp wsd: don't warn on missing json 2018-10-16 20:12:23 -04:00
Log.cpp Revert attempts at re-using ostringstream 2019-04-27 23:18:11 +02:00
Log.hpp Revert attempts at re-using ostringstream 2019-04-27 23:18:11 +02:00
LOOLWebSocket.hpp Mark LOOLWebSocket as deprecated, and dung it out a bit. 2018-07-26 09:23:37 +01:00
Message.hpp common: spell out non-trivial autos to improve readability 2018-02-07 10:18:12 +01:00
MessageQueue.cpp Use getAbbreviatedMessage() for its intended purpose 2018-11-29 01:07:03 +02:00
MessageQueue.hpp TileCache: re-factor API to work in terms of vectors, not file references. 2019-02-14 21:46:39 +01:00
Png.hpp wsd: use fast deflate level for png 2019-04-23 03:00:31 +02:00
Protocol.cpp IME support 2018-02-08 14:16:34 +05:30
Protocol.hpp android: Fix minor build issues. 2019-02-12 10:50:40 +01:00
Rectangle.hpp Rectangle: make members private 2018-11-14 09:07:54 +01:00
Seccomp.cpp wsd: flush logs before existing 2018-10-16 20:12:23 -04:00
Seccomp.hpp wsd: always use signal-safe calls 2018-10-16 20:12:23 -04:00
security.h fuzzer: Make the shared loolwsd and loolforkit binary actually work. 2017-02-07 13:27:14 +01:00
Session.cpp WebSocket: make members private 2018-10-24 09:36:13 +02:00
Session.hpp Session: make members private 2018-11-13 09:04:19 +01:00
SigUtil.cpp Fix -Werror=stringop-truncation: Make sure FatalGdbString is NUL-terminated 2019-03-06 11:48:33 +02:00
SigUtil.hpp android: #if(n)def MOBILEAPP -> #if (!)MOBILEAPP for better reliability. 2019-02-12 12:20:11 +01:00
SpookyV2.cpp loplugin:includeform 2017-12-20 21:21:05 +05:30
SpookyV2.h loolwsd: use a better hash function for png caching 2016-11-28 05:00:37 +00:00
Unit.cpp TileCache: re-factor API to work in terms of vectors, not file references. 2019-02-14 21:46:39 +01:00
Unit.hpp TileCache: re-factor API to work in terms of vectors, not file references. 2019-02-14 21:46:39 +01:00
UnitHTTP.hpp Switch local prisoner sockets to abstract UDS 2019-03-30 16:51:06 +00:00
Util.cpp wsd: use thread_local instead of __thread 2019-04-23 03:00:44 +02:00
Util.hpp android: #if(n)def MOBILEAPP -> #if (!)MOBILEAPP for better reliability. 2019-02-12 12:20:11 +01:00