Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 474690 - app-office/libreoffice-4.1.0.1: loading failed: file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/sw/qa/extras/odfexport/data/fdo60769.odt
Summary: app-office/libreoffice-4.1.0.1: loading failed: file:///var/tmp/portage/app-o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-25 08:26 UTC by Juergen Rose
Modified: 2013-09-15 10:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
bzip2ed /var/tmp/portage/app-office/libreoffice-4.1.0.1/temp/build.log (build.log.bz2,465.72 KB, application/x-bzip2)
2013-06-25 08:26 UTC, Juergen Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2013-06-25 08:26:24 UTC
Created attachment 351878 [details]
bzip2ed /var/tmp/portage/app-office/libreoffice-4.1.0.1/temp/build.log

'emerge libreoffice' fails with:
...
[build CUT] sw_ww8export
File tested,Execution Time (ms)
fdo38244.odt,1567
first-header-footer.odt,506
textframe-gradient.odt,574
fdo60769.odt,macros_test.cxx:43:Assertion
Test name: Test::run
assertion failed
- Expression: xComponent.is()
- loading failed: file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/l
ibreoffice-4.1.0.1/sw/qa/extras/odfexport/data/fdo60769.odt

Failures !!!
Run: 1   Failure total: 1   Failures: 1   Errors: 0

Error: a unit test failed, please do one of:

export DEBUGCPPUNIT=TRUE            # for exception catching
export GDBCPPUNITTRACE="gdb --args" # for interactive debugging
export VALGRIND=memcheck            # for memory checking


The file .../data/fdo60769.odt exists:

root@impala:/root(40)# ll /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/sw/qa/extras/odfexport/data/fdo60769.odt
-rw-r--r-- 1 root root 9482 Jun 20 09:13 /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/sw/qa/extras/odfexport/data/fdo60769.odt




root@impala:/root(41)# emerge --info '=app-office/libreoffice-4.1.0.1'
Portage 2.1.12.10 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.9.7-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.9.7-gentoo-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.2
KiB Mem:     8165512 total,   1735152 free
KiB Swap:   50347696 total,  50290460 free
Timestamp of tree: Tue, 25 Jun 2013 04:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5, 3.2.5, 3.3.2
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.4, 4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x11 science sage-on-gentoo sunrise x-portage x-cpan g-octave
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL Intel-SDP dlj-1.1 skype-eula skype-4.0.0.7-copyright googleearth AdobeFlash-11.x cadsoft Oracle-BCLA-JavaSE MakeMKV-EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11 /var/lib/layman/science /var/lib/layman/sage-on-gentoo /var/lib/layman/sunrise /usr/local/portage /var/lib/cpan /var/lib/g-octave"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit R X Xaw3d a52 aac accessibility acl acpi admin afs alsa amd64 ao apache2 apng applet archive armadillo arpack asf aspell atlas audacious audiofile automap automount bash-completion berkdb blas blast bluetooth bluray boost bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cg cgi chm cli cmake consolekit cracklib crypt css cuda cups curl cxx daap db dbi dbm dbus declarative designer devhelp device-mapper dga dia dirac djvu doc dot dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds egl elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras faac faad fam ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpm fpx fuse g3dvl gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp git glade glib glpk gml gmp gnome gnome-keyring gnome-print gnuplot gnutls gold gphoto2 gpm grammar graphics graphtft graphviz grass gsl gsm gstreamer gtk gtk3 gudev guile hddtemp hdf hdf5 hdri html http httpd hvm hwdb iconv icq icu id3 id3tag ide imagemagick imap inotify introspection ipod ipv6 ithreads jabber jadetex java java6 jbig john jpeg jpeg2k kate kde kdepim kdrive kerberos keymap kpathsea kvm ladspa lame lapack latex lcms ldap lensfun libffi libkms libnotify libsamplerate live lm_sensors lua lzo mad mail maildir mapnik math matroska media-library mercurial mikmod mkl mmx mmxext mng mod modules mono motif mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib multimedia musepack musicbrainz mysql mysqli nautilus ncurses netcdf netpbm network networking networkmanager nfs nls nntp nptl nsplugin ntfs ntp numpy nvidia obex objc ocaml ocr octave odbc ofa ogdi ogg openexr opengl openmp pam pcre pda pdf perl plasma plotutils plugins png podcast policykit portaudio posix postgres postscript ppds preview-latex proj projectm projectx pstricks pulseaudio python python-bindings q16 q32 qemu qhull qt3support qt4 quicktime raw readline real reiserfs reports rhythmbox rle romio rpc rrdcgi rrdtool sage samba sasl schroedinger science sdk sdl secure-delete semantic-desktop server session shout sip slang slp smart smbclient smp sms sndfile snmp soap sockets sound soup sox speex spell sql sqlite sse sse2 ssl stlport subtitles subversion sudo suexec svg svm swig szip t1lib tcl tcpd tex tex4ht texmacs tgif theora thesaurus threads thunderbird tidy tiff tk tools truetype udev udisks unicode usb userlocales utempter v4l vaapi vala valgrind vdpau video virt-network virtualbox visio vorbis vpx wav webdav webdav-serf webkit wmf wxwidgets x264 xa xattr xcb xemacs xetex xext xft xine xml xmlreader xmlrpc xpm xv xvid xvmc yaml youtube zlib zvbi" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_core authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" DRACUT_MODULES="caps lvm mdraid syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev void" KERNEL="linux" LCD_DEVICES="cfontz hd44780 mtxorb ncurses X lcd2usb lcdlinux png usblcd" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de fr ru" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau displaylink" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON



root@impala:/root(42)# emerge -pqv '=app-office/libreoffice-4.1.0.1'
[ebuild     U ] app-office/libreoffice-4.1.0.1 [4.0.4.2] USE="bluetooth branding cups dbus eds gnome gstreamer gtk gtk3%* java kde mysql opengl postgres vba webdav (-aqua) -debug -jemalloc -odk -telepathy {-test}" LIBREOFFICE_EXTENSIONS="presenter-minimizer -nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python2_7 -python3_3" PYTHON_TARGETS="python2_7 -python3_3"
Comment 1 Juergen Rose 2013-06-25 08:35:38 UTC
If I set the variables:
export DEBUGCPPUNIT=TRUE
export GDBCPPUNITTRACE="gdb --args"
export VALGRIND=memcheck

and run make CppunitTest_sw_odfexport in /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1 it hangs at:
...
S=/var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1 && O=$S/solver/unxlngx6.pro && W=$S/workdir/unxlngx6.pro &&  mkdir -p $W/CppunitTest/ &&   rm -fr $W/CppunitTest/sw_odfexport.test.core && mkdir $W/CppunitTest/sw_odfexport.test.core && cd $W/CppunitTest/sw_odfexport.test.core && (LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$O/lib:$S/instdir/unxlngx6.pro/program":$O/lib/sqlite G_SLICE=always-malloc GLIBCXX_FORCE_NEW=1 DBGSV_ERROR_OUT=shell DISABLE_SAL_DBGBOX=t   gdb -nx -ex "add-auto-load-safe-path $O/lib" --command=$S/solenv/bin/gdbtrycatchtrace-stdout -return-child-result --args valgrind --tool=memcheck --num-callers=50 --error-exitcode=1 --trace-children=yes --leak-check=no $O/bin/cppunit/cppunittester $W/LinkTarget/CppunitTest/libtest_sw_odfexport.so --headless "-env:BRAND_BASE_DIR=file://$O/unittest/install"   "-env:CONFIGURATION_LAYERS=xcsxcu:file://$O/xml/registry module:file://$O/xml/registry/spool xcsxcu:file://$O/unittest/registry"  "-env:UNO_TYPES=file://$O/bin/offapi.rdb file://$O/bin/udkapi.rdb"  "-env:UNO_SERVICES=file://$O/xml/ure/services.rdb file://$O/xml/component/basic/util/sb.component file://$O/xml/component/comphelper/util/comphelp.component file://$O/xml/component/configmgr/source/configmgr.component file://$O/xml/component/embeddedobj/util/embobj.component file://$O/xml/component/fileaccess/source/fileacc.component file://$O/xml/component/filter/source/config/cache/filterconfig1.component file://$O/xml/component/framework/util/fwk.component file://$O/xml/component/i18npool/util/i18npool.component file://$O/xml/component/linguistic/source/lng.component file://$O/xml/component/oox/util/oox.component file://$O/xml/component/package/source/xstor/xstor.component file://$O/xml/component/package/util/package2.component file://$O/xml/component/sax/source/expatwrap/expwrap.component file://$O/xml/component/sax/source/fastparser/fastsax.component file://$O/xml/component/sfx2/util/sfx.component file://$O/xml/component/starmath/util/sm.component file://$O/xml/component/svl/source/fsstor/fsstorage.component file://$O/xml/component/svtools/util/svt.component file://$O/xml/component/sw/util/sw.component file://$O/xml/component/sw/util/swd.component file://$O/xml/component/toolkit/util/tk.component file://$O/xml/component/ucb/source/core/ucb1.component file://$O/xml/component/ucb/source/ucp/file/ucpfile1.component file://$O/xml/component/unotools/util/utl.component file://$O/xml/component/unoxml/source/service/unoxml.component file://$O/xml/component/uui/util/uui.component file://$O/xml/component/writerfilter/util/writerfilter.component file://$O/xml/component/xmlhelp/util/ucpchelp1.component file://$O/xml/component/xmloff/util/xo.component"  -env:URE_INTERNAL_LIB_DIR=file://$O/lib  -env:LO_LIB_DIR=file://$O/lib --protector unoexceptionprotector.so unoexceptionprotector --protector unobootstrapprotector.so unobootstrapprotector    > $W/CppunitTest/sw_odfexport.test.log 2>&1 || (RET=$? && cat $W/CppunitTest/sw_odfexport.test.log && printf '\nError: a unit test failed, please do one of:\n\nexport DEBUGCPPUNIT=TRUE            # for exception catching\nexport GDBCPPUNITTRACE="gdb --args" # for interactive debugging\nexport VALGRIND=memcheck            # for memory checking\n\nand retry using: make %sTest_%s\n\n' Cppunit sw_odfexport  && $S/solenv/bin/gdb-core-bt.sh $O/bin/cppunit/cppunittester $W/CppunitTest/sw_odfexport.test.core $RET && false))
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2013-06-25 11:21:15 UTC
Could you try to sed out that single '{"fdo60769.odt", &Test::testFdo60769},' line from sw/qa/extras/odfexport/odfexport.cxx, and once the build completed, open the bugdoc manually to see if it's just the testcase that fails.
Comment 3 Juergen Rose 2013-06-26 11:33:46 UTC
After recompiling glibc with debugging options:
FEATURES="splitdebug noclean nostrip"
'emerge -uvDN libreoffice' fails now with:
 ...
[build CUT] sal_osl_file
S=/var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1 && O=$S/solver/unxlngx6.pro && W=$S/workdir/unxlngx6.pro &&  mkdir -p $W/CppunitTest/ &&   rm -fr $W/CppunitTest/sal_osl_file.test.core && mkdir $W/CppunitTest/sal_osl_file.test.core && cd $W/CppunitTest/sal_osl_file.test.core && (LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$O/lib:$S/instdir/unxlngx6.pro/program":$O/lib/sqlite G_SLICE=always-malloc GLIBCXX_FORCE_NEW=1 DBGSV_ERROR_OUT=shell DISABLE_SAL_DBGBOX=t   gdb -nx -ex "add-auto-load-safe-path $O/lib" --command=$S/solenv/bin/gdbtrycatchtrace-stdout -return-child-result --args valgrind --tool=memcheck --num-callers=50 --error-exitcode=1 --trace-children=yes --leak-check=no $O/bin/cppunit/cppunittester $W/LinkTarget/CppunitTest/libtest_sal_osl_file.so --headless "-env:BRAND_BASE_DIR=file://$O/unittest/install"    > $W/CppunitTest/sal_osl_file.test.log 2>&1 || (RET=$? && cat $W/CppunitTest/sal_osl_file.test.log && printf '\nError: a unit test failed, please do one of:\n\nexport DEBUGCPPUNIT=TRUE            # for exception catching\nexport GDBCPPUNITTRACE="gdb --args" # for interactive debugging\nexport VALGRIND=memcheck            # for memory checking\n\nand retry using: make %sTest_%s\n\n' Cppunit sal_osl_file  && $S/solenv/bin/gdb-core-bt.sh $O/bin/cppunit/cppunittester $W/CppunitTest/sal_osl_file.test.core $RET && false))
GNU gdb (Gentoo 7.6 p1) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/valgrind...(no debugging symbols found)...done.
Function "__cxa_throw" not defined.
Catchpoint 1 (throw)
Function "__cxa_begin_catch" not defined.
Catchpoint 2 (catch)
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?

Program received signal SIGCONT, Continued.
0x00007ffff784bb37 in kill () from /lib64/libc.so.6
#0  0x00007ffff784bb37 in kill () from /lib64/libc.so.6
#1  <signal handler called>
#2  0x00007ffff78d050d in fork () from /lib64/libc.so.6
#3  0x00007ffff7bcbad0 in fork () from /usr/lib64/libsandbox.so
#4  0x00007ffff7bc824d in ?? () from /usr/lib64/libsandbox.so
#5  0x00007ffff7bc8e63 in ?? () from /usr/lib64/libsandbox.so
#6  0x00007ffff7bcb17b in execve () from /usr/lib64/libsandbox.so
#7  0x0000000000401047 in ?? ()
#8  0x00007ffff7837c15 in __libc_start_main () from /lib64/libc.so.6
#9  0x0000000000401269 in ?? ()
A debugging session is active.

        Inferior 1 [process 23140] will be killed.

Quit anyway? (y or n) [answered Y; input not from terminal]
[build CUT] sal_osl_module

Error: a unit test failed, please do one of:

export DEBUGCPPUNIT=TRUE            # for exception catching
export GDBCPPUNITTRACE="gdb --args" # for interactive debugging
export VALGRIND=memcheck            # for memory checking

and retry using: make CppunitTest_sal_osl_condition


No core file identified in directory /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CppunitTest/sal_osl_condition.test.core
To show backtraces for crashes during test execution,
enable core files with:

   ulimit -c unlimited

make[1]: *** [/var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CppunitTest/sal_osl_condition.test] Error 1
make[1]: *** Waiting for unfinished jobs....
GNU gdb (Gentoo 7.6 p1) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/valgrind...(no debugging symbols found)...done.
Function "__cxa_throw" not defined.
Catchpoint 1 (throw)
Function "__cxa_begin_catch" not defined.
Catchpoint 2 (catch)
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
==23112== Memcheck, a memory error detector
==23112== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==23112== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==23112== Command: /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/bin/cppunit/cppunittester /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/LinkTarget/CppunitTest/libtest_sal_osl_process.so --headless -env:BRAND_BASE_DIR=file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/unittest/install
==23112== 
==23132== Memcheck, a memory error detector
==23132== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==23132== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==23132== Command: /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/LinkTarget/Executable/osl_process_child -env /var/tmp/portage/app-office/libreoffice-4.1.0.1/temp/XI55tw
==23132== 
==23132== 
==23132== HEAP SUMMARY:
==23132==     in use at exit: 32 bytes in 1 blocks
==23132==   total heap usage: 4 allocs, 3 frees, 41,600 bytes allocated
==23132== 
==23132== For a detailed leak analysis, rerun with: --leak-check=full
==23132== 
==23132== For counts of detected and suppressed errors, rerun with: -v
==23132== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==23151== Memcheck, a memory error detector
==23151== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==23151== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==23151== Command: /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/LinkTarget/Executable/osl_process_child -env /var/tmp/portage/app-office/libreoffice-4.1.0.1/temp/DZVbbQ
==23151== 
==23151== 
==23151== HEAP SUMMARY:
==23151==     in use at exit: 32 bytes in 1 blocks
==23151==   total heap usage: 4 allocs, 3 frees, 41,600 bytes allocated
==23151== 
==23151== For a detailed leak analysis, rerun with: --leak-check=full
==23151== 
==23151== For counts of detected and suppressed errors, rerun with: -v
==23151== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==23171== Memcheck, a memory error detector
==23171== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==23171== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==23171== Command: /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/LinkTarget/Executable/batch.sh
==23171== 
Hello world
==23171== 
==23171== HEAP SUMMARY:
==23171==     in use at exit: 270,590 bytes in 7,503 blocks
==23171==   total heap usage: 7,614 allocs, 111 frees, 299,443 bytes allocated
==23171== 
==23171== For a detailed leak analysis, rerun with: --leak-check=full
==23171== 
==23171== For counts of detected and suppressed errors, rerun with: -v
==23171== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
osl_process.cxx:597:Assertion
Test name: Test_osl_executeProcess::osl_execProc_parent_equals_child_environment
assertion failed
- Expression: compare_environments()
- Parent and child environment not equal

osl_process.cxx:656:Assertion
Test name: Test_osl_executeProcess::osl_execProc_merged_child_environment
assertion failed
- Expression: compare_merged_environments(different_child_env_vars)
- osl_execProc_merged_child_environment

Failures !!!
Run: 3   Failure total: 2   Failures: 2   Errors: 0
==23112== 
==23112== HEAP SUMMARY:
==23112==     in use at exit: 980 bytes in 7 blocks
==23112==   total heap usage: 8,972 allocs, 8,965 frees, 702,484 bytes allocated
==23112== 
==23112== For a detailed leak analysis, rerun with: --leak-check=full
==23112== 
==23112== For counts of detected and suppressed errors, rerun with: -v
==23112== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
[Inferior 1 (process 23101) exited with code 01]
/var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solenv/bin/gdbtrycatchtrace-stdout:13: Error in sourced command file:
No stack.
(gdb) quit

Error: a unit test failed, please do one of:

export DEBUGCPPUNIT=TRUE            # for exception catching
export GDBCPPUNITTRACE="gdb --args" # for interactive debugging
export VALGRIND=memcheck            # for memory checking

and retry using: make CppunitTest_sal_osl_process
Comment 4 Juergen Rose 2013-06-26 11:42:05 UTC
The 'make CppunitTest_sal_osl_condition' hangs immediately at:

root@impala:/var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1(114)# make CppunitTest_sal_osl_condition
/usr/bin/make -j 5 -r -f /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/Makefile.gbuild CppunitTest_sal_osl_condition
[build CUT] sal_osl_condition
make[1]: Entering directory `/var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1'
S=/var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1 && O=$S/solver/unxlngx6.pro && W=$S/workdir/unxlngx6.pro &&  mkdir -p $W/CppunitTest/ &&   rm -fr $W/CppunitTest/sal_osl_condition.test.core && mkdir $W/CppunitTest/sal_osl_condition.test.core && cd $W/CppunitTest/sal_osl_condition.test.core && (LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$O/lib:$S/instdir/unxlngx6.pro/program":$O/lib/sqlite G_SLICE=always-malloc GLIBCXX_FORCE_NEW=1 DBGSV_ERROR_OUT=shell DISABLE_SAL_DBGBOX=t   gdb -nx -ex "add-auto-load-safe-path $O/lib" --command=$S/solenv/bin/gdbtrycatchtrace-stdout -return-child-result --args valgrind --tool=memcheck --num-callers=50 --error-exitcode=1 --trace-children=yes --leak-check=no $O/bin/cppunit/cppunittester $W/LinkTarget/CppunitTest/libtest_sal_osl_condition.so --headless "-env:BRAND_BASE_DIR=file://$O/unittest/install"    > $W/CppunitTest/sal_osl_condition.test.log 2>&1 || (RET=$? && cat $W/CppunitTest/sal_osl_condition.test.log && printf '\nError: a unit test failed, please do one of:\n\nexport DEBUGCPPUNIT=TRUE            # for exception catching\nexport GDBCPPUNITTRACE="gdb --args" # for interactive debugging\nexport VALGRIND=memcheck            # for memory checking\n\nand retry using: make %sTest_%s\n\n' Cppunit sal_osl_condition  && $S/solenv/bin/gdb-core-bt.sh $O/bin/cppunit/cppunittester $W/CppunitTest/sal_osl_condition.test.core $RET && false))


If I look in an other terminal window for running make processes, I find:

root@impala:/usr/local/portage/app-doc(119)# ps -ef | grep  make | grep -v grep 
root     23384  2034  0 13:36 pts/3    00:00:00 make CppunitTest_sal_osl_condition
root     23385 23384  3 13:36 pts/3    00:00:08 /usr/bin/make -j 5 -r -f /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/Makefile.gbuild CppunitTest_sal_osl_condition
root     23400 23385  0 13:36 pts/3    00:00:00 /bin/sh -c S=/var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1 && O=$S/solver/unxlngx6.pro && W=$S/workdir/unxlngx6.pro &&  mkdir -p $W/CppunitTest/ &&   rm -fr $W/CppunitTest/sal_osl_condition.test.core && mkdir $W/CppunitTest/sal_osl_condition.test.core && cd $W/CppunitTest/sal_osl_condition.test.core && (LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$O/lib:$S/instdir/unxlngx6.pro/program":$O/lib/sqlite G_SLICE=always-malloc GLIBCXX_FORCE_NEW=1 DBGSV_ERROR_OUT=shell DISABLE_SAL_DBGBOX=t   gdb -nx -ex "add-auto-load-safe-path $O/lib" --command=$S/solenv/bin/gdbtrycatchtrace-stdout -return-child-result --args valgrind --tool=memcheck --num-callers=50 --error-exitcode=1 --trace-children=yes --leak-check=no $O/bin/cppunit/cppunittester $W/LinkTarget/CppunitTest/libtest_sal_osl_condition.so --headless "-env:BRAND_BASE_DIR=file://$O/unittest/install"    > $W/CppunitTest/sal_osl_condition.test.log 2>&1 || (RET=$? && cat $W/CppunitTest/sal_osl_condition.test.log && printf '\nError: a unit test failed, please do one of:\n\nexport DEBUGCPPUNIT=TRUE            # for exception catching\nexport GDBCPPUNITTRACE="gdb --args" # for interactive debugging\nexport VALGRIND=memcheck            # for memory checking\n\nand retry using: make %sTest_%s\n\n' Cppunit sal_osl_condition  && $S/solenv/bin/gdb-core-bt.sh $O/bin/cppunit/cppunittester $W/CppunitTest/sal_osl_condition.test.core $RET && false))
root     23404 23400  0 13:36 pts/3    00:00:00 /bin/sh -c S=/var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1 && O=$S/solver/unxlngx6.pro && W=$S/workdir/unxlngx6.pro &&  mkdir -p $W/CppunitTest/ &&   rm -fr $W/CppunitTest/sal_osl_condition.test.core && mkdir $W/CppunitTest/sal_osl_condition.test.core && cd $W/CppunitTest/sal_osl_condition.test.core && (LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$O/lib:$S/instdir/unxlngx6.pro/program":$O/lib/sqlite G_SLICE=always-malloc GLIBCXX_FORCE_NEW=1 DBGSV_ERROR_OUT=shell DISABLE_SAL_DBGBOX=t   gdb -nx -ex "add-auto-load-safe-path $O/lib" --command=$S/solenv/bin/gdbtrycatchtrace-stdout -return-child-result --args valgrind --tool=memcheck --num-callers=50 --error-exitcode=1 --trace-children=yes --leak-check=no $O/bin/cppunit/cppunittester $W/LinkTarget/CppunitTest/libtest_sal_osl_condition.so --headless "-env:BRAND_BASE_DIR=file://$O/unittest/install"    > $W/CppunitTest/sal_osl_condition.test.log 2>&1 || (RET=$? && cat $W/CppunitTest/sal_osl_condition.test.log && printf '\nError: a unit test failed, please do one of:\n\nexport DEBUGCPPUNIT=TRUE            # for exception catching\nexport GDBCPPUNITTRACE="gdb --args" # for interactive debugging\nexport VALGRIND=memcheck            # for memory checking\n\nand retry using: make %sTest_%s\n\n' Cppunit sal_osl_condition  && $S/solenv/bin/gdb-core-bt.sh $O/bin/cppunit/cppunittester $W/CppunitTest/sal_osl_condition.test.core $RET && false))
Comment 5 Juergen Rose 2013-06-26 12:27:47 UTC
root@impala:/root(117)# grep fdo60769.odt /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/sw/qa/extras/odfexport/odfexport.cxx
        //  {"fdo60769.odt", &Test::testFdo60769},
(In reply to Tomáš Chvátal from comment #2)
> Could you try to sed out that single '{"fdo60769.odt",
> &Test::testFdo60769},' line from sw/qa/extras/odfexport/odfexport.cxx, and
> once the build completed, open the bugdoc manually to see if it's just the
> testcase that fails.


After commenting out the fdo60769.odt line:

root@impala:/root(117)# grep fdo60769.odt /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/sw/qa/extras/odfexport/odfexport.cxx
        //  {"fdo60769.odt", &Test::testFdo60769},

'make CppunitTest_sw_odfexport' fails now after several minutes of compiling with Segfault:

root@impala:/var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1(119)# make CppunitTest_sw_odfexport
/usr/bin/make -j 5 -r -f /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/Makefile.gbuild CppunitTest_sw_odfexport
...
S=/var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1 && O=$S/solver/unxlngx6.pro && W=$S/workdir/unxlngx6.pro &&  mkdir -p $W/CppunitTest/ &&   rm -fr $W/CppunitTest/sw_odfexport.test.core && mkdir $W/CppunitTest/sw_odfexport.test.core && cd $W/CppunitTest/sw_odfexport.test.core && (LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$O/lib:$S/instdir/unxlngx6.pro/program":$O/lib/sqlite G_SLICE=always-malloc GLIBCXX_FORCE_NEW=1 DBGSV_ERROR_OUT=shell DISABLE_SAL_DBGBOX=t   gdb -nx -ex "add-auto-load-safe-path $O/lib" --command=$S/solenv/bin/gdbtrycatchtrace-stdout -return-child-result --args valgrind --tool=memcheck --num-callers=50 --error-exitcode=1 --trace-children=yes --leak-check=no $O/bin/cppunit/cppunittester $W/LinkTarget/CppunitTest/libtest_sw_odfexport.so --headless "-env:BRAND_BASE_DIR=file://$O/unittest/install"   "-env:CONFIGURATION_LAYERS=xcsxcu:file://$O/xml/registry module:file://$O/xml/registry/spool xcsxcu:file://$O/unittest/registry"  "-env:UNO_TYPES=file://$O/bin/offapi.rdb file://$O/bin/udkapi.rdb"  "-env:UNO_SERVICES=file://$O/xml/ure/services.rdb file://$O/xml/component/basic/util/sb.component file://$O/xml/component/comphelper/util/comphelp.component file://$O/xml/component/configmgr/source/configmgr.component file://$O/xml/component/embeddedobj/util/embobj.component file://$O/xml/component/fileaccess/source/fileacc.component file://$O/xml/component/filter/source/config/cache/filterconfig1.component file://$O/xml/component/framework/util/fwk.component file://$O/xml/component/i18npool/util/i18npool.component file://$O/xml/component/linguistic/source/lng.component file://$O/xml/component/oox/util/oox.component file://$O/xml/component/package/source/xstor/xstor.component file://$O/xml/component/package/util/package2.component file://$O/xml/component/sax/source/expatwrap/expwrap.component file://$O/xml/component/sax/source/fastparser/fastsax.component file://$O/xml/component/sfx2/util/sfx.component file://$O/xml/component/starmath/util/sm.component file://$O/xml/component/svl/source/fsstor/fsstorage.component file://$O/xml/component/svtools/util/svt.component file://$O/xml/component/sw/util/sw.component file://$O/xml/component/sw/util/swd.component file://$O/xml/component/toolkit/util/tk.component file://$O/xml/component/ucb/source/core/ucb1.component file://$O/xml/component/ucb/source/ucp/file/ucpfile1.component file://$O/xml/component/unotools/util/utl.component file://$O/xml/component/unoxml/source/service/unoxml.component file://$O/xml/component/uui/util/uui.component file://$O/xml/component/writerfilter/util/writerfilter.component file://$O/xml/component/xmlhelp/util/ucpchelp1.component file://$O/xml/component/xmloff/util/xo.component"  -env:URE_INTERNAL_LIB_DIR=file://$O/lib  -env:LO_LIB_DIR=file://$O/lib --protector unoexceptionprotector.so unoexceptionprotector --protector unobootstrapprotector.so unobootstrapprotector    > $W/CppunitTest/sw_odfexport.test.log 2>&1 || (RET=$? && cat $W/CppunitTest/sw_odfexport.test.log && printf '\nError: a unit test failed, please do one of:\n\nexport DEBUGCPPUNIT=TRUE            # for exception catching\nexport GDBCPPUNITTRACE="gdb --args" # for interactive debugging\nexport VALGRIND=memcheck            # for memory checking\n\nand retry using: make %sTest_%s\n\n' Cppunit sw_odfexport  && $S/solenv/bin/gdb-core-bt.sh $O/bin/cppunit/cppunittester $W/CppunitTest/sw_odfexport.test.core $RET && false))
GNU gdb (Gentoo 7.6 p1) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/valgrind...(no debugging symbols found)...done.
Function "__cxa_throw" not defined.
Catchpoint 1 (throw)
Function "__cxa_begin_catch" not defined.
Catchpoint 2 (catch)
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
process 5435 is executing new program: /usr/lib64/valgrind/memcheck-amd64-linux
==5435== Memcheck, a memory error detector
==5435== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==5435== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==5435== Command: /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/bin/cppunit/cppunittester /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/LinkTarget/CppunitTest/libtest_sw_odfexport.so --headless -env:BRAND_BASE_DIR=file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/unittest/install -env:CONFIGURATION_LAYERS=xcsxcu:file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/registry\ module:file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/registry/spool\ xcsxcu:file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/unittest/registry -env:UNO_TYPES=file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/bin/offapi.rdb\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/bin/udkapi.rdb -env:UNO_SERVICES=file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/ure/services.rdb\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/basic/util/sb.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/comphelper/util/comphelp.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/configmgr/source/configmgr.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/embeddedobj/util/embobj.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/fileaccess/source/fileacc.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/filter/source/config/cache/filterconfig1.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/framework/util/fwk.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/i18npool/util/i18npool.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/linguistic/source/lng.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/oox/util/oox.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/package/source/xstor/xstor.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/package/util/package2.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/sax/source/expatwrap/expwrap.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/sax/source/fastparser/fastsax.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/sfx2/util/sfx.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/starmath/util/sm.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/svl/source/fsstor/fsstorage.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/svtools/util/svt.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/sw/util/sw.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/sw/util/swd.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/toolkit/util/tk.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/ucb/source/core/ucb1.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/ucb/source/ucp/file/ucpfile1.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/unotools/util/utl.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/unoxml/source/service/unoxml.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/uui/util/uui.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/writerfilter/util/writerfilter.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/xmlhelp/util/ucpchelp1.component\ file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/xml/component/xmloff/util/xo.component -env:URE_INTERNAL_LIB_DIR=file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/lib -env:LO_LIB_DIR=file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/lib --protector unoexceptionprotector.so unoexceptionprotector --protector unobootstrapprotector.so unobootstrapprotector
==5435== 

Program received signal SIGSEGV, Segmentation fault.
0x00000004031a64f4 in ?? ()
#0  0x00000004031a64f4 in ?? ()
#1  0x0000000402899ee0 in ?? ()
#2  0x0000000000000001 in ?? ()
#3  0x000000000000edd2 in ?? ()
#4  0x0000000004008442 in ?? ()
#5  0x0000000000001bf0 in ?? ()
#6  0x0000000000000000 in ?? ()
A debugging session is active.

        Inferior 1 [process 5435] will be killed.

Quit anyway? (y or n) [answered Y; input not from terminal]

Error: a unit test failed, please do one of:

export DEBUGCPPUNIT=TRUE            # for exception catching
export GDBCPPUNITTRACE="gdb --args" # for interactive debugging
export VALGRIND=memcheck            # for memory checking

and retry using: make CppunitTest_sw_odfexport


No core file identified in directory /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CppunitTest/sw_odfexport.test.core
To show backtraces for crashes during test execution,
enable core files with:

   ulimit -c unlimited

make[1]: *** [/var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CppunitTest/sw_odfexport.test] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1'
make: *** [CppunitTest_sw_odfexport] Error 2
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2013-06-26 12:45:40 UTC
Another ideas:

Try to compile it with -march=native or something else than amdfam10.

Try to configure and build libreoffice with --enable-symbols when building (edit the ebuild to write it there).
Comment 7 Juergen Rose 2013-06-26 15:36:45 UTC
(In reply to Tomáš Chvátal from comment #6)
> Another ideas:
> 
> Try to compile it with -march=native or something else than amdfam10.
> 
> Try to configure and build libreoffice with --enable-symbols when building
> (edit the ebuild to write it there).

I added --enable-symbols to econf in src_configure(), I hope that it is the right place. Then I tried to emerge libreoffice once more. It seems to fail at the same place, but now I get less output than before:
...
[build CUT] sal_rtl_uuid
S=/var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1 && O=$S/solver/unxlngx6.pro && W=$S/workdir/unxlngx6.pro &&  mkdir -p $W/CppunitTest/ &&   rm -fr $W/CppunitTest/sal_rtl_uuid.test.core && mkdir $W/CppunitTest/sal_rtl_uuid.test.core && cd $W/CppunitTest/sal_rtl_uuid.test.core && (LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$O/lib:$S/instdir/unxlngx6.pro/program":$O/lib/sqlite G_SLICE=always-malloc GLIBCXX_FORCE_NEW=1 DBGSV_ERROR_OUT=shell DISABLE_SAL_DBGBOX=t   gdb -nx -ex "add-auto-load-safe-path $O/lib" --command=$S/solenv/bin/gdbtrycatchtrace-stdout -return-child-result --args valgrind --tool=memcheck --num-callers=50 --error-exitcode=1 --trace-children=yes --leak-check=no $O/bin/cppunit/cppunittester $W/LinkTarget/CppunitTest/libtest_sal_rtl_uuid.so --headless "-env:BRAND_BASE_DIR=file://$O/unittest/install"    > $W/CppunitTest/sal_rtl_uuid.test.log 2>&1 || (RET=$? && cat $W/CppunitTest/sal_rtl_uuid.test.log && printf '\nError: a unit test failed, please do one of:\n\nexport DEBUGCPPUNIT=TRUE            # for exception catching\nexport GDBCPPUNITTRACE="gdb --args" # for interactive debugging\nexport VALGRIND=memcheck            # for memory checking\n\nand retry using: make %sTest_%s\n\n' Cppunit sal_rtl_uuid  && $S/solenv/bin/gdb-core-bt.sh $O/bin/cppunit/cppunittester $W/CppunitTest/sal_rtl_uuid.test.core $RET && false))
[build CUT] sal_tcwf
GNU gdb (Gentoo 7.6 p1) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/valgrind...(no debugging symbols found)...done.
Function "__cxa_throw" not defined.
Catchpoint 1 (throw)
Function "__cxa_begin_catch" not defined.
Catchpoint 2 (catch)
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?

Program received signal SIGCONT, Continued.
0x00007ffff784bb37 in kill () from /lib64/libc.so.6
#0  0x00007ffff784bb37 in kill () from /lib64/libc.so.6
#1  <signal handler called>
#2  0x00007ffff78d050d in fork () from /lib64/libc.so.6
#3  0x00007ffff7bcbad0 in fork () from /usr/lib64/libsandbox.so
#4  0x00007ffff7bc824d in ?? () from /usr/lib64/libsandbox.so
#5  0x00007ffff7bc8e63 in ?? () from /usr/lib64/libsandbox.so
#6  0x00007ffff7bcb17b in execve () from /usr/lib64/libsandbox.so
#7  0x0000000000401047 in ?? ()
#8  0x00007ffff7837c15 in __libc_start_main () from /lib64/libc.so.6
#9  0x0000000000401269 in ?? ()
A debugging session is active.

        Inferior 1 [process 16803] will be killed.

Quit anyway? (y or n) [answered Y; input not from terminal]
==16825== Memcheck, a memory error detector
==16825== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==16825== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==16825== Command: /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/bin/cppunit/cppunittester /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/LinkTarget/CppunitTest/libtest_sal_rtl_oustringbuffer.so --headless -env:BRAND_BASE_DIR=file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/unittest/install
==16825== 
GNU gdb (Gentoo 7.6 p1) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/valgrind...(no debugging symbols found)...done.
Function "__cxa_throw" not defined.
Catchpoint 1 (throw)
Function "__cxa_begin_catch" not defined.
Catchpoint 2 (catch)
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?

Program received signal SIGCONT, Continued.
0x00007ffff784bb37 in kill () from /lib64/libc.so.6
#0  0x00007ffff784bb37 in kill () from /lib64/libc.so.6
#1  <signal handler called>
#2  0x00007ffff78d050d in fork () from /lib64/libc.so.6
#3  0x00007ffff7bcbad0 in fork () from /usr/lib64/libsandbox.so
#4  0x00007ffff7bc824d in ?? () from /usr/lib64/libsandbox.so
#5  0x00007ffff7bc8e63 in ?? () from /usr/lib64/libsandbox.so
#6  0x00007ffff7bcb17b in execve () from /usr/lib64/libsandbox.so
#7  0x0000000000401047 in ?? ()
#8  0x00007ffff7837c15 in __libc_start_main () from /lib64/libc.so.6
#9  0x0000000000401269 in ?? ()
A debugging session is active.

        Inferior 1 [process 16806] will be killed.

Quit anyway? (y or n) [answered Y; input not from terminal]
==16824== Memcheck, a memory error detector
==16824== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==16824== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==16824== Command: /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/bin/cppunit/cppunittester /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/LinkTarget/CppunitTest/libtest_sal_rtl_uri.so --headless -env:BRAND_BASE_DIR=file:///var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/solver/unxlngx6.pro/unittest/install
==16824== 

Error: a unit test failed, please do one of:

export DEBUGCPPUNIT=TRUE            # for exception catching
export GDBCPPUNITTRACE="gdb --args" # for interactive debugging
export VALGRIND=memcheck            # for memory checking

and retry using: make CppunitTest_sal_rtl_oustringbuffer


Error: a unit test failed, please do one of:

export DEBUGCPPUNIT=TRUE            # for exception catching
export GDBCPPUNITTRACE="gdb --args" # for interactive debugging
export VALGRIND=memcheck            # for memory checking

and retry using: make CppunitTest_sal_rtl_uri


No core file identified in directory /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CppunitTest/sal_rtl_uri.test.core
To show backtraces for crashes during test execution,
enable core files with:

   ulimit -c unlimited


No core file identified in directory /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CppunitTest/sal_rtl_oustringbuffer.test.core
To show backtraces for crashes during test execution,
enable core files with:

   ulimit -c unlimited

make[1]: *** [/var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CppunitTest/sal_rtl_uri.test] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [/var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CppunitTest/sal_rtl_oustringbuffer.test] Error 1
rm /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/count_word.txt /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word_nodash.brk /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/char.brk /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word.brk /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/count_word_fi.brk /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word.txt /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word_he.brk /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word_hu.brk /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word_fi.brk /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/edit_word.txt /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/edit_word.brk /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/sent.brk /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/char_in.brk /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word_nodash.txt /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/count_word.brk /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/ExternalHeaders/StaticLibrary/libxmlsec1-nss.a /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word_fi.txt /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word_he.txt /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/line.brk /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word_prepostdash.txt /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/edit_word_he.txt /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/edit_word_he.brk /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/edit_word_hu.txt /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/char.txt /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/edit_word_hu.brk /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/line.txt /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/sent.txt /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/ExternalHeaders/StaticLibrary/libxmlsec1.a /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/count_word_fi.txt /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word_prepostdash.brk /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/dict_word_hu.txt /var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1/workdir/unxlngx6.pro/CustomTarget/i18npool/breakiterator/char_in.txt
make[1]: Leaving directory `/var/tmp/portage/app-office/libreoffice-4.1.0.1/work/libreoffice-4.1.0.1'
make: *** [build] Error 2
Comment 8 Tomáš Chvátal (RETIRED) gentoo-dev 2013-06-27 07:08:29 UTC
The trace seems to be related to sandbox.

Like sandbox kills libreoffice when they try to do something with that package.
It does not happen here on my pc with sandbox-2.5. You seem to have 2.6-r1, could you try downgrade please?
Comment 9 Juergen Rose 2013-06-27 07:51:03 UTC
Downgrading to sandbox-2.5 fails with:

root@impala:/usr/local/portage/app-office/libreoffice(178)# emerge -v1 sandbox

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     UD ] sys-apps/sandbox-2.5 [2.6-r1] USE="(multilib)" 348 kB
[blocks B      ] <sys-apps/sandbox-2.6-r1 ("<sys-apps/sandbox-2.6-r1" is hard blocking dev-lang/python-3.3.2)

Total: 1 package (1 downgrade), Size of downloads: 348 kB
Conflict: 1 block (1 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.


Should I mask >python-3.2 too?
Comment 10 Juergen Rose 2013-07-01 11:02:41 UTC
Today 'emerge libreoffice' worked for libreoffice-4.1.0.1. Before I emerged libreoffice, I removed sun-jdk (1.6.0.45). Could it be that sun-jdk-1.6.0.45 was responsible for the SIGSEGV in the past?
Comment 11 Tomáš Chvátal (RETIRED) gentoo-dev 2013-07-01 11:26:23 UTC
(In reply to Juergen Rose from comment #10)
> Today 'emerge libreoffice' worked for libreoffice-4.1.0.1. Before I emerged
> libreoffice, I removed sun-jdk (1.6.0.45). Could it be that sun-jdk-1.6.0.45
> was responsible for the SIGSEGV in the past?

It might be because it is used when enabled for uno loading.
But really not sure. If you verify it is really fine for you just close the bug as I am unable to reproduce it anywhere.
Comment 12 Tomáš Chvátal (RETIRED) gentoo-dev 2013-09-15 10:48:09 UTC
This seems fixed in latest 4.1 build so closing as fixed.