[Libreoffice] Unit tests - cppunit crashing with debug build

2011-07-11 Thread Lubos Lunak
Hello, do the attached patches look ok? With debug build I have unit tests failing because of _GLIBCXX_DEBUG mismatch (our code built with it, cppunit without), leading to CppUnit::Message dtor (not explicitly defined, thus generated by the compiler while compiling the unit test) accessing m

Re: [Libreoffice] Unit tests - cppunit crashing with debug build

2011-07-11 Thread Caolán McNamara
On Mon, 2011-07-11 at 20:49 +0200, Lubos Lunak wrote: > Hello, > > do the attached patches look ok? With debug build I have unit tests failing > because of _GLIBCXX_DEBUG mismatch (our code built with it, cppunit without), > leading to CppUnit::Message dtor (not explicitly defined, thus generat

Re: [Libreoffice] Unit tests - cppunit crashing with debug build

2011-07-12 Thread Lubos Lunak
On Monday 11 of July 2011, Caolán McNamara wrote: > I think the whole mixing code with and without -D_GLIBCXX_DEBUG is sadly > hopeless. "this flag changes the sizes and behavior of standard class > templates such as std::vector, and therefore you can only link code > compiled with debug mode and c

Re: [Libreoffice] Unit tests - cppunit crashing with debug build

2011-07-13 Thread Caolán McNamara
On Tue, 2011-07-12 at 10:35 +0200, Lubos Lunak wrote: > On Monday 11 of July 2011, Caolán McNamara wrote: > > I reckon we probably have to bite the bullet and drop -D_GLIBCXX_DEBUG > > from solenv ? > > I think we could simply force --without-system-libs (or at least for C++ > libs) when --enabl

Re: [Libreoffice] Unit tests - cppunit crashing with debug build

2011-07-14 Thread Lubos Lunak
On Wednesday 13 of July 2011, Caolán McNamara wrote: > On Tue, 2011-07-12 at 10:35 +0200, Lubos Lunak wrote: > > On Monday 11 of July 2011, Caolán McNamara wrote: > > > I reckon we probably have to bite the bullet and drop -D_GLIBCXX_DEBUG > > > from solenv ? > > > > I think we could simply force

Re: [Libreoffice] Unit tests - cppunit crashing with debug build

2011-07-21 Thread Tor Lillqvist
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

Re: [Libreoffice] Unit tests - cppunit crashing with debug build

2011-07-22 Thread Caolán McNamara
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... Luckil