[sal][MSVC] Wrong global variable initialization order

Egor Pugin egor.pugin at gmail.com
Tue Apr 9 11:22:43 UTC 2019


Hi,

I'm doing custom builds (not wiki workflow) on VS2019.
So, the first target to build is sal, then codemaker and it does not
start because of an error during globals initialization by CRT (before
main call).

(sal/rtl/strimp.cxx) rtl_allocateStringFn rtl_allocateString = malloc;
is initialized after const OUString BACKSLASH ("\\");
(sal/osl/w32/path_helper.cxx), so it calls 0 address during dll
initialization.

Any chances to fix this?

See https://bugs.documentfoundation.org/show_bug.cgi?id=124611

-- 
Egor Pugin


More information about the LibreOffice mailing list