Date: prev next · Thread: first prev next last
2020 Archives by date, by thread · List index


Hi,

On 17.05.2020 17:36, newbie-02@gmx.de wrote:
not experienced with lists i was urged by @Mike to send this question here:

is it possible to compile / build libreoffice 'single threaded' or
with '--disable-threads' to ease debugging? <<<

more background there:
https://ask.libreoffice.org/en/question/244584/compile-build-lo-single-threaded/

There's no '--disable-threads' configure for LibreOffice build as far as
I know - reading through the options mentioned by './autogen.sh --help'.

Still, as far as I understand the task, the problem is not *building*
it, but debugging, which implies that you possibly want to disable
threaded calculations in the built LibreOffice instance config. To do
that, make sure that you do not enable OpenCL
(Options->LibreOffice->OpenCL) and multi-threaded calculation (the
bottom of Options->LibreOffice Calc->Calculate).

Yet, you should be aware that some of the problems that you might want
to debug *could* be related to the calculation mode; and choosing a
different calculation mode (or building with specific configuration, if
it would be possible) could change the end result and prevent you from
successfully debugging. In that case, you might still need to find ways
to debug multi-threaded processing; e.g., finding problematic routines
by reading the code or watching how threads are created, and putting
breakpoints in relevant places before the calculation starts, so that
gdb could break into it correctly.

Hope this helps; possibly you would like to come with a specific example
where you debug (a place in the source code), which steps you would like
to enter, and what happens for you actually - that could enable to
suggest what to do in a specific case, and learn by example.

-- 
Best regards,
Mike Kaganski

Attachment: pEpkey.asc
Description: application/pgp-keys


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.