Bug ID 1127857
Summary libreoffice fails to build against devel:gcc
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware x86-64
OS openSUSE Factory
Status NEW
Severity Normal
Priority P5 - None
Component Development
Assignee bnc-team-screening@forge.provo.novell.com
Reporter rguenther@suse.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

gcc8 slated for submission to Factory (SR#679161) fails to build libreoffice.
Local build of Factory status results in

[10399s] [build CUT] sw_uwriter
[10399s] /bin/sh: line 1:  6191 Segmentation fault      (
LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$I/program:$I/program":$W/UnpackedTarball/cppunit/src/cppunit/.libs
MALLOC_CHECK_=2 MALLOC_PERTURB_=153 $W/LinkTarget/Executable/cppunittester
$W/LinkTarget/CppunitTest/libtest_sw_uwriter.so --headless
"-env:BRAND_BASE_DIR=file://$S/instdir" "-env:BRAND_SHARE_SUBDIR=share"
"-env:BRAND_SHARE_RESOURCE_SUBDIR=program/resource"
"-env:UserInstallation=file://$W/CppunitTest/sw_uwriter.test.user"
"-env:CONFIGURATION_LAYERS=xcsxcu:file://$I/share/registry
xcsxcu:file://$W/unittest/registry" "-env:UNO_TYPES=file://$I/program/types.rdb
file://$I/program/types/offapi.rdb file://$I/program/types/oovbaapi.rdb"
"-env:UNO_SERVICES=file://$W/Rdb/ure/services.rdb
file://$W/ComponentTarget/comphelper/util/comphelp.component
file://$W/ComponentTarget/configmgr/source/configmgr.component
file://$W/ComponentTarget/framework/util/fwk.component
file://$W/ComponentTarget/i18npool/util/i18npool.component
file://$W/ComponentTarget/package/util/package2.component
file://$W/ComponentTarget/package/source/xstor/xstor.component
file://$W/ComponentTarget/sfx2/util/sfx.component
file://$W/ComponentTarget/ucb/source/core/ucb1.component
file://$W/ComponentTarget/ucb/source/ucp/file/ucpfile1.component
file://$W/ComponentTarget/unotools/util/utl.component
file://$W/ComponentTarget/unoxml/source/service/unoxml.component
file://$W/ComponentTarget/uui/util/uui.component"
-env:URE_INTERNAL_LIB_DIR=file://$I/program -env:LO_LIB_DIR=file://$I/program
-env:LO_JAVA_DIR=file://$I/program/classes --protector
$W/LinkTarget/Library/unoexceptionprotector.so unoexceptionprotector
--protector $W/LinkTarget/Library/unobootstrapprotector.so
unobootstrapprotector --protector
$W/LinkTarget/Library/libvclbootstrapprotector.so vclbootstrapprotector
"-env:CPPUNITTESTTARGET=$W/CppunitTest/sw_uwriter.test" ) >
$W/CppunitTest/sw_uwriter.test.log 2>&1
[10399s] ToxMiscTest::testTdf73162 finished in: 0ms
[10399s]
ToxTextGeneratorTest::EmptyStringIsReturnedForPageNumberPlaceholderOfZeroItems
finished in: 0ms
[10399s]
ToxTextGeneratorTest::OneAtSignIsReturnedForPageNumberPlaceholderOfOneItem
finished in: 0ms
[10399s]
ToxTextGeneratorTest::TwoAtSignsAreReturnedForPageNumberPlaceholderOfOneItem
finished in: 0ms
[10399s]
ToxTextGeneratorTest::TwoAtSignsAreReturnedForPageNumberPlaceholderOfOneItem
finished in: 0ms
[10399s]
ToxTextGeneratorTest::EmptyStringIsReturnedAsNumStringIfNoTextMarkIsSet
finished in: 0ms
[10399s]
ToxTextGeneratorTest::EmptyStringIsReturnedAsNumStringIfToxSourcesIsEmpty
finished in: 0ms
[10399s] which: no gdb in
(/usr/local/bin:/usr/bin:/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib64/jvm/java/bin)
[10399s] You need gdb in your path to show backtraces
[10400s]
[10400s] Error: a unit test failed, please do one of:
[10400s]
[10400s] make CppunitTest_sw_uwriter CPPUNITTRACE="gdb --args"
[10400s]     # for interactive debugging on Linux
[10400s] make CppunitTest_sw_uwriter VALGRIND=memcheck
[10400s]     # for memory checking
[10400s] make CppunitTest_sw_uwriter DEBUGCPPUNIT=TRUE
[10400s]     # for exception catching
[10400s]
[10400s] You can limit the execution to just one particular test by:
[10400s]
[10400s] make CPPUNIT_TEST_NAME="testXYZ" ...above mentioned params...
[10400s]
[10400s] make[1]: ***
[/home/abuild/rpmbuild/BUILD/libreoffice-6.2.0.3/solenv/gbuild/CppunitTest.mk:121:
/home/abuild/rpmbuild/BUILD/libreoffice-6.2.0.3/workdir/CppunitTest/sw_uwriter.test]
Error 1
[10400s] make[1]: *** Waiting for unfinished jobs....
[10425s] In member function '_ZN10ScDPSource17FillMemberResultsEv.part.548',
[10425s]     inlined from 'FillMemberResults' at
/home/abuild/rpmbuild/BUILD/libreoffice-6.2.0.3/sc/source/core/data/dptabsrc.cxx:1018:6,
[10425s]     inlined from 'getResults' at
/home/abuild/rpmbuild/BUILD/libreoffice-6.2.0.3/sc/source/core/data/dptabsrc.cxx:1063:22:
[10425s]
/home/abuild/rpmbuild/BUILD/libreoffice-6.2.0.3/sc/source/core/data/dptabsrc.cxx:1036:84:
warning: argument 1 value '18446744073709551615' exceeds maximum object size
9223372036854775807 [-Walloc-size-larger-than=]
[10425s]              pColResults.reset(new
uno::Sequence<sheet::MemberResult>[nColLevelCount]);
[10425s]                                                                       
             ^
[10425s]
/home/abuild/rpmbuild/BUILD/libreoffice-6.2.0.3/sc/source/core/data/dptabsrc.cxx:
In member function 'getResults':
[10425s] /usr/include/c++/8/new:122:7: note: in a call to allocation function
'operator new []' declared here
[10425s]  void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
[10425s]        ^
[10425s] In member function '_ZN10ScDPSource17FillMemberResultsEv.part.548',
[10425s]     inlined from 'FillMemberResults' at
/home/abuild/rpmbuild/BUILD/libreoffice-6.2.0.3/sc/source/core/data/dptabsrc.cxx:1018:6,
[10425s]     inlined from 'getResults' at
/home/abuild/rpmbuild/BUILD/libreoffice-6.2.0.3/sc/source/core/data/dptabsrc.cxx:1063:22:
[10425s]
/home/abuild/rpmbuild/BUILD/libreoffice-6.2.0.3/sc/source/core/data/dptabsrc.cxx:1050:85:
warning: argument 1 value '18446744073709551615' exceeds maximum object size
9223372036854775807 [-Walloc-size-larger-than=]
[10425s]              pRowResults.reset( new
uno::Sequence<sheet::MemberResult>[nRowLevelCount] );
[10425s]                                                                       
              ^
[10425s]
/home/abuild/rpmbuild/BUILD/libreoffice-6.2.0.3/sc/source/core/data/dptabsrc.cxx:
In member function 'getResults':
[10425s] /usr/include/c++/8/new:122:7: note: in a call to allocation function
'operator new []' declared here
[10425s]  void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
[10425s]        ^
[10425s] make: *** [Makefile:286: build] Error 2
[10425s] error: Bad exit status from /var/tmp/rpm-tmp.veZtng (%check)
[10425s]
[10425s]
[10425s] RPM build errors:
[10425s]     Macro expanded in comment on line 23: %define tarball_url
https://download.documentfoundation.org/libreoffice/src/6.1.0
[10425s]
[10425s]     Bad exit status from /var/tmp/rpm-tmp.veZtng (%check)
[10425s]
[10425s] murzim failed "build libreoffice.spec" at Mon Mar  4 16:22:26 UTC
2019.
[10425s]


I'm not sure whether the interleaved compiler warnings/notes have anything
to say or whether just the segmentation fault is the issue (I think that's it).
gdb is not in BuildRequires so we don't get a meaningful backtrace.


You are receiving this mail because: