Bug 116896 - Segfaulting test-case with -flto
Summary: Segfaulting test-case with -flto
Status: RESOLVED MOVED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-09 08:57 UTC by Martin Liška
Modified: 2018-04-09 21:28 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Liška 2018-04-09 08:57:40 UTC
Following test-case is failing with --enable-lto:

[ 7806s] /bin/sh: line 1:  1652 Segmentation fault      (core dumped) (
LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$I/program:$I/pro
gram":$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" "-
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
[ 7806s]
ToxTextGeneratorTest::EmptyStringIsReturnedForPageNumberPlaceholderOfZe
roItems finished in: 0ms
[ 7806s]
ToxTextGeneratorTest::OneAtSignIsReturnedForPageNumberPlaceholderOfOneI
tem finished in: 0ms
[ 7806s]
ToxTextGeneratorTest::TwoAtSignsAreReturnedForPageNumberPlaceholderOfOn
eItem finished in: 0ms
[ 7806s]
ToxTextGeneratorTest::EmptyStringIsReturnedAsNumStringIfNoTextMarkIsSet
finished in: 0ms
[ 7806s]
ToxTextGeneratorTest::EmptyStringIsReturnedAsNumStringIfToxSourcesIsEmp
ty finished in: 0ms
[ 7806s] which: no gdb in
(/usr/local/bin:/usr/bin:/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/l
ib64/jvm/java/bin)
[ 7806s] You need gdb in your path to show backtraces
[ 7806s] 
[ 7806s] Error: a unit test failed, please do one of:
[ 7806s] 
[ 7806s] make CppunitTest_sw_uwriter CPPUNITTRACE="gdb --args"
[ 7806s]     # for interactive debugging on Linux
[ 7806s] make CppunitTest_sw_uwriter VALGRIND=memcheck
[ 7806s]     # for memory checking
[ 7806s] make CppunitTest_sw_uwriter DEBUGCPPUNIT=TRUE
[ 7806s]     # for exception catching
Comment 1 Xisco Faulí 2018-04-09 21:28:26 UTC
Hello,
Thanks for reporting it.
Since this is build issue and not a software issue, would you mind sending an
email to the dev list instead? ->
https://wiki.documentfoundation.org/Development/Mailing_List
Closing as RESOLVED MOVED