Re: Two unit-tests fail by segmentation fault when using clang

2014-11-28 Thread Michael Stahl
On 28.11.2014 00:57, Jean-Baptiste Faure wrote:
 Hi,
 
 Le 26/11/2014 13:33, Michael Stahl a écrit :
 On 24.11.2014 06:20, Jean-Baptiste Faure wrote:
 Hi,

 I try to build LibreOffice 4.4 and master on Ubuntu 14.10 x86-64 using
 clang (version 3.5.0) instead of gcc (version 4.9).
 I get two unit-test fails by segmentation fault:
 CppunitTest_basic_enable
 CppunitTest_basic_nested_struct

 It worked with gcc, so I guess the errors are related to the use of
 clang. Is there something I can do from my side?

 please (turn on --enable-debug or --enable-dbgutil if you haven't
 already and) run the tests in a debugger with:

 CPPUNITTRACE=gdb --args  make CppunitTest_basic_enable

 and when it crashes use bt to get a backtrace and post it here.
 
 I first did a complete rebuild with --enable-debug turned on and all
 went fine, no crash.
 Then I did a complete rebuild with --enable-debug turned off and it
 failed CppunitTest_basic_enable with segmentation fault.
 So I turned on --enable-debug again, set export CPPUNITTRACE=gdb
 --args and did only make CppunitTest_basic_enable
 
 The gdb session gave that:

 Program received signal SIGSEGV, Segmentation fault.
 0x2aaabbf34464 in SbClassFactory::RemoveClassModule(SbModule*) ()
from [...]/LibO/master/instdir/program/libsblo.so
 (gdb) bt
 #0  0x2aaabbf34464 in SbClassFactory::RemoveClassModule(SbModule*) ()
from [...]/LibO/master/instdir/program/libsblo.so
 #1  0x2aaabbf6d8d0 in SbiCodeGen::Save() () from
 [...]/LibO/master/instdir/program/libsblo.so
 #2  0x2aaabbf797fe in SbModule::Compile() () from
 [...]/LibO/master/instdir/program/libsblo.so
 #3  0x2aaabbca69ae in MacroSnippet::Compile() ()
from
 [...]/LibO/master/workdir/LinkTarget/CppunitTest/libtest_basic_enable.so

it's possible that this is a bug in clang's optimizer, you may try to
touch basic/source/sbx/sbxobj.cxx and rebuild it with debug and see if
that works.  or perhaps the problem is with another cxx file in basic.


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Two unit-tests fail by segmentation fault when using clang

2014-11-27 Thread Jean-Baptiste Faure
Hi,

Le 26/11/2014 13:33, Michael Stahl a écrit :
 On 24.11.2014 06:20, Jean-Baptiste Faure wrote:
 Hi,

 I try to build LibreOffice 4.4 and master on Ubuntu 14.10 x86-64 using
 clang (version 3.5.0) instead of gcc (version 4.9).
 I get two unit-test fails by segmentation fault:
 CppunitTest_basic_enable
 CppunitTest_basic_nested_struct

 It worked with gcc, so I guess the errors are related to the use of
 clang. Is there something I can do from my side?
 
 please (turn on --enable-debug or --enable-dbgutil if you haven't
 already and) run the tests in a debugger with:
 
 CPPUNITTRACE=gdb --args  make CppunitTest_basic_enable
 
 and when it crashes use bt to get a backtrace and post it here.

I first did a complete rebuild with --enable-debug turned on and all
went fine, no crash.
Then I did a complete rebuild with --enable-debug turned off and it
failed CppunitTest_basic_enable with segmentation fault.
So I turned on --enable-debug again, set export CPPUNITTRACE=gdb
--args and did only make CppunitTest_basic_enable

The gdb session gave that:

Reading symbols from
[...]/LibO/master/workdir/LinkTarget/Executable/cppunittester...(no
debugging symbols found)...done.
(gdb) run
Starting program:
[...]/LibO/master/workdir/LinkTarget/Executable/cppunittester
[...]/LibO/master/workdir/LinkTarget/CppunitTest/libtest_basic_enable.so
--headless -env:BRAND_BASE_DIR=file://[...]/LibO/master/instdir
-env:BRAND_SHARE_SUBDIR=share
-env:UserInstallation=file://[...]/LibO/master/workdir/CppunitTest/basic_enable.test.user
-env:CONFIGURATION_LAYERS=xcsxcu:file://[...]/LibO/master/instdir/share/registry
-env:UNO_TYPES=file://[...]/LibO/master/instdir/program/types/offapi.rdb\ 
file://[...]/LibO/master/instdir/ure/share/misc/types.rdb
-env:UNO_SERVICES=file://[...]/LibO/master/workdir/Rdb/ure/services.rdb\
file://[...]/LibO/master/workdir/ComponentTarget/configmgr/source/configmgr.component\
file://[...]/LibO/master/workdir/ComponentTarget/i18npool/util/i18npool.component
-env:URE_INTERNAL_LIB_DIR=file://[...]/LibO/master/instdir/ure/lib
-env:LO_LIB_DIR=file://[...]/LibO/master/instdir/program
-env:LO_JAVA_DIR=file://[...]/LibO/master/instdir/program/classes
--protector
[...]/LibO/master/workdir/LinkTarget/Library/unoexceptionprotector.so
unoexceptionprotector --protector
[...]/LibO/master/workdir/LinkTarget/Library/unobootstrapprotector.so
unobootstrapprotector --protector
[...]/LibO/master/workdir/LinkTarget/Library/libvclbootstrapprotector.so
vclbootstrapprotector
[Thread debugging using libthread_db enabled]
Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1.
[New Thread 0x2c5e2700 (LWP 15364)]

Program received signal SIGSEGV, Segmentation fault.
0x2aaabbf34464 in SbClassFactory::RemoveClassModule(SbModule*) ()
   from [...]/LibO/master/instdir/program/libsblo.so
(gdb) bt
#0  0x2aaabbf34464 in SbClassFactory::RemoveClassModule(SbModule*) ()
   from [...]/LibO/master/instdir/program/libsblo.so
#1  0x2aaabbf6d8d0 in SbiCodeGen::Save() () from
[...]/LibO/master/instdir/program/libsblo.so
#2  0x2aaabbf797fe in SbModule::Compile() () from
[...]/LibO/master/instdir/program/libsblo.so
#3  0x2aaabbca69ae in MacroSnippet::Compile() ()
   from
[...]/LibO/master/workdir/LinkTarget/CppunitTest/libtest_basic_enable.so
#4  0x2aaabbca5d87 in (anonymous
namespace)::EnableTest::testEnableRuntime() ()
   from
[...]/LibO/master/workdir/LinkTarget/CppunitTest/libtest_basic_enable.so
#5  0x2ad2876e in CppUnit::TestCaseMethodFunctor::operator()()
const ()
   from
[...]/LibO/master/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0
#6  0x2ad251a8 in
CppUnit::ProtectorChain::ProtectFunctor::operator()() const ()
   from
[...]/LibO/master/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0
#7  0x2ad251a8 in
CppUnit::ProtectorChain::ProtectFunctor::operator()() const ()
   from
[...]/LibO/master/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0
#8  0x2cb6d6a3 in (anonymous
namespace)::Prot::protect(CppUnit::Functor const,
CppUnit::ProtectorContext const) () from
[...]/LibO/master/workdir/LinkTarget/Library/unoexceptionprotector.so
#9  0x2ad251a8 in
CppUnit::ProtectorChain::ProtectFunctor::operator()() const ()
   from
[...]/LibO/master/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0
#10 0x2ad17620 in
CppUnit::DefaultProtector::protect(CppUnit::Functor const,
CppUnit::ProtectorContext const)
() from
[...]/LibO/master/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0
#11 0x2ad251a8 in
CppUnit::ProtectorChain::ProtectFunctor::operator()() const ()
   from
[...]/LibO/master/workdir/UnpackedTarball/cppunit/src/cppunit/.libs/libcppunit-1.13.so.0
#12 0x2ad2265e in
CppUnit::ProtectorChain::protect(CppUnit::Functor const,
CppUnit::ProtectorContext const)
---Type return to continue, or q return to quit---
() from

Two unit-tests fail by segmentation fault when using clang

2014-11-26 Thread Jean-Baptiste Faure
Hi,

I try to build LibreOffice 4.4 and master on Ubuntu 14.10 x86-64 using
clang (version 3.5.0) instead of gcc (version 4.9).
I get two unit-test fails by segmentation fault:
CppunitTest_basic_enable
CppunitTest_basic_nested_struct

It worked with gcc, so I guess the errors are related to the use of
clang. Is there something I can do from my side?

Best regards.
JBF
-- 
Seuls des formats ouverts peuvent assurer la pérennité de vos documents.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Two unit-tests fail by segmentation fault when using clang

2014-11-26 Thread Michael Stahl
On 24.11.2014 06:20, Jean-Baptiste Faure wrote:
 Hi,
 
 I try to build LibreOffice 4.4 and master on Ubuntu 14.10 x86-64 using
 clang (version 3.5.0) instead of gcc (version 4.9).
 I get two unit-test fails by segmentation fault:
 CppunitTest_basic_enable
 CppunitTest_basic_nested_struct
 
 It worked with gcc, so I guess the errors are related to the use of
 clang. Is there something I can do from my side?

please (turn on --enable-debug or --enable-dbgutil if you haven't
already and) run the tests in a debugger with:

CPPUNITTRACE=gdb --args  make CppunitTest_basic_enable

and when it crashes use bt to get a backtrace and post it here.

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Two unit-tests fail by segmentation fault when using clang

2014-11-23 Thread Jean-Baptiste Faure
Hi,

I try to build LibreOffice 4.4 and master on Ubuntu 14.10 x86-64 using
clang (version 3.5.0) instead of gcc (version 4.9).
I get two unit-test fails by segmentation fault:
CppunitTest_basic_enable
CppunitTest_basic_nested_struct

It worked with gcc, so I guess the errors are related to the use of
clang. Is there something I can do from my side?

Best regards.
JBF
-- 
Seuls des formats ouverts peuvent assurer la pérennité de vos documents.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice