[Libreoffice] Unit tests - cppunit crashing with debug build

Caolán McNamara caolanm at redhat.com
Fri Jul 22 03:31:43 PDT 2011


On Thu, 2011-07-21 at 16:30 -0600, Tor Lillqvist wrote:
> Ha, I just came across this type of crash (initially seemed very
> mysterious, some data on the stack being apparently randomly
> overwritten by unrelated code...) when running the
> sal_cppunittester_all test on the iOS simulator...  Luckily I didn't
> waste too much time going on some wild goose chase but remembered this
> thread.

Yeah, enough is enough. ENABLE_DEBUG_STL is ditched now.

> Surely the same .IF "$(ENABLE_DEBUG_STL)" == "TRUE" / CFLAGSCXX +=
>  -D_GLIBCXX_DEBUG / .ENDIF is needed for all gcc-based platforms, not
>  just in unxgcc.mk ? I.e. also in unxmacx.mk and unxiosr.mk, maybe also
>  unxandr.mk.

That there is unxgcc.mk at all is a good stop IMO, rather than 101 out
of sync slightly modified copies. Ideally we should split it further
into a gcc.mk base for the common-to-all-platforms gcc options with e.g.
an additional gnu-ld.mk or so to supply the linker options and so forth.

C.



More information about the LibreOffice mailing list