Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 376953 - app-office/libreoffice-3.4.2.3 segmentation fault in solver test compilation
Summary: app-office/libreoffice-3.4.2.3 segmentation fault in solver test compilation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-29 15:12 UTC by Mark Kowarsky (RETIRED)
Modified: 2011-08-04 16:18 UTC (History)
0 users

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


Attachments
gzipped build.log for libreoffice-3.4.2.3 (build.log.gz,170.84 KB, application/octet-stream)
2011-07-29 15:15 UTC, Mark Kowarsky (RETIRED)
Details
configure-check-avx.patch (0001-Add-check-for-avx-support.patch,2.50 KB, patch)
2011-08-04 11:37 UTC, Tomáš Chvátal (RETIRED)
Details | Diff
makefile.mk-fix.patch (0001-Fix-segmentation-fault-when-linking-mavx-on-new-CPUs.patch,2.36 KB, patch)
2011-08-04 11:37 UTC, Tomáš Chvátal (RETIRED)
Details | Diff
configure-check-avx.patch (configure-ac.patch,1.87 KB, patch)
2011-08-04 13:33 UTC, Tomáš Chvátal (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Kowarsky (RETIRED) gentoo-dev 2011-07-29 15:12:41 UTC
Synced 4 hours ago, attempted to build libreoffice-3.4.2.3 with MAKEOPTS="-j1". Build failed, I can't seem to find any errors in the logs, but that's probably just my eyes.

Reproducible: Always




mark@ontario ~ $ emerge --info
Portage 2.2.0_alpha47 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.2, glibc-2.13-r4, 3.0.0-gentoo x86_64)
=================================================================
System uname: Linux-3.0.0-gentoo-x86_64-Intel-R-_Core-TM-_i3-2100_CPU_@_3.10GHz-with-gentoo-2.0.3
Timestamp of tree: Fri, 29 Jul 2011 11:00:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r2, 3.2-r2
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.swin.edu.au/gentoo ftp://mirror.aarnet.edu.au/pub/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gpm gtk iconv ipv6 jpeg kde kipi lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl phonon plasma png policykit ppds pppd python qt3support qt4 readline sdl semantic-desktop session spell sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

>>>  '/var/tmp/portage/app-office/libreoffice-3.4.2.3/temp/build.log'

 * Messages for package app-office/libreoffice-3.4.2.3:

 * Libreoffice compilation often fails on parallel issues
 * but the slowdown by enforcing MAKEOPTS=-j1 is too huge.
 * If you encounter errors try yourself to disable parallel build.
 * ERROR: app-office/libreoffice-3.4.2.3 failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 8833:  Called die
 * The specific snippet of code:
 *       make || die
 * 
 * If you need support, post the output of 'emerge --info =app-office/libreoffice-3.4.2.3',
 * the complete build log and the output of 'emerge -pqv =app-office/libreoffice-3.4.2.3'.
 * The complete build log is located at '/var/tmp/portage/app-office/libreoffice-3.4.2.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/libreoffice-3.4.2.3/temp/environment'.
 * S: '/var/tmp/portage/app-office/libreoffice-3.4.2.3/work/libreoffice-bootstrap-3.4.2.3'

[ebuild  N    #] app-office/libreoffice-3.4.2.3  USE="branding cups dbus gtk java kde ldap opengl python vba (-aqua) -binfilter -custom-cflags -debug -eds -gnome -graphite -gstreamer (-kdeenablefinal) -mysql -nsplugin -odk -offlinehelp -templates -test -webdav" LINGUAS="-af -ar -as -ast -be -bg -bn -bo -br -brx -bs -ca -ca_XV -cs -cy -da -de -dgo -dz -el -en -en_GB -en_ZA -eo -es -et -eu -fa -fi -fr -ga -gl -gu -he -hi -hr -hu -id -is -it -ja -ka -kk -km -kn -ko -kok -ks -ku -lo -lt -lv -mai -mk -ml -mn -mni -mr -my -nb -ne -nl -nn -nr -nso -oc -or -pa_IN -pl -pt -pt_BR -ro -ru -rw -sat -sd -sh -sk -sl -sq -sr -ss -st -sv -sw_TZ -ta -te -tg -th -tn -tr -ts -ug -uk -uz -ve -vi -xh -zh_CN -zh_TW -zu" 0 kB
Comment 1 Mark Kowarsky (RETIRED) gentoo-dev 2011-07-29 15:15:07 UTC
Created attachment 281471 [details]
gzipped build.log for libreoffice-3.4.2.3
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2011-07-29 18:32:24 UTC
/bin/cp /var/tmp/portage/app-office/libreoffice-3.4.2.3/work/libreoffice-bootstrap-3.4.2.3/solver/340/unxlngx6.pro/bin/udkapi.rdb ../../unxlngx6.pro/lib/uno_types.rdb
: &&     LD_LIBRARY_PATH=/var/tmp/portage/app-office/libreoffice-3.4.2.3/work/libreoffice-bootstrap-3.4.2.3/solver/340/unxlngx6.pro/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}  /var/tmp/portage/app-office/libreoffice-3.4.2.3/work/libreoffice-bootstrap-3.4.2.3/solver/340/unxlngx6.pro/bin/regmerge ../../unxlngx6.pro/lib/uno_types.rdb / ../../unxlngx6.pro/bin/bridgetest.rdb
echo \
        '<list><filename>bridgetest.component</filename> <filename>constructors.component</filename> <filename>cppobj.component</filename> <filename>testComponent.component</filename></list>' \
        > ../../unxlngx6.pro/misc/uno_services.input
: &&     LD_LIBRARY_PATH=/var/tmp/portage/app-office/libreoffice-3.4.2.3/work/libreoffice-bootstrap-3.4.2.3/solver/340/unxlngx6.pro/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} xsltproc --nonet --stringparam uri './bridgetest.uno.so' -o ../../unxlngx6.pro/misc/bridgetest.component \
        /var/tmp/portage/app-office/libreoffice-3.4.2.3/work/libreoffice-bootstrap-3.4.2.3/solenv/bin/createcomponent.xslt bridgetest.component
: &&     LD_LIBRARY_PATH=/var/tmp/portage/app-office/libreoffice-3.4.2.3/work/libreoffice-bootstrap-3.4.2.3/solver/340/unxlngx6.pro/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} xsltproc --nonet --stringparam uri './constructors.uno.so' -o ../../unxlngx6.pro/misc/constructors.component \
        /var/tmp/portage/app-office/libreoffice-3.4.2.3/work/libreoffice-bootstrap-3.4.2.3/solenv/bin/createcomponent.xslt constructors.component
: &&     LD_LIBRARY_PATH=/var/tmp/portage/app-office/libreoffice-3.4.2.3/work/libreoffice-bootstrap-3.4.2.3/solver/340/unxlngx6.pro/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} xsltproc --nonet --stringparam uri './cppobj.uno.so' -o ../../unxlngx6.pro/misc/cppobj.component \
        /var/tmp/portage/app-office/libreoffice-3.4.2.3/work/libreoffice-bootstrap-3.4.2.3/solenv/bin/createcomponent.xslt cppobj.component
: &&     LD_LIBRARY_PATH=/var/tmp/portage/app-office/libreoffice-3.4.2.3/work/libreoffice-bootstrap-3.4.2.3/solver/340/unxlngx6.pro/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} xsltproc --nonet --stringparam uri \
        'vnd.sun.star.expand:${MY_CLASSDIR_URL}testComponent.jar' -o ../../unxlngx6.pro/misc/testComponent.component \
        /var/tmp/portage/app-office/libreoffice-3.4.2.3/work/libreoffice-bootstrap-3.4.2.3/solenv/bin/createcomponent.xslt testComponent.component
: &&     LD_LIBRARY_PATH=/var/tmp/portage/app-office/libreoffice-3.4.2.3/work/libreoffice-bootstrap-3.4.2.3/solver/340/unxlngx6.pro/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} xsltproc --nonet --stringparam prefix /var/tmp/portage/app-office/libreoffice-3.4.2.3/work/libreoffice-bootstrap-3.4.2.3/testtools/source/bridgetest/../../unxlngx6.pro/misc/ -o ../../unxlngx6.pro/lib/uno_services.rdb \
        /var/tmp/portage/app-office/libreoffice-3.4.2.3/work/libreoffice-bootstrap-3.4.2.3/solenv/bin/packcomponents.xslt ../../unxlngx6.pro/misc/uno_services.input
cd ../../unxlngx6.pro/lib && : &&     LD_LIBRARY_PATH=/var/tmp/portage/app-office/libreoffice-3.4.2.3/work/libreoffice-bootstrap-3.4.2.3/solver/340/unxlngx6.pro/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} /var/tmp/portage/app-office/libreoffice-3.4.2.3/work/libreoffice-bootstrap-3.4.2.3/solver/340/unxlngx6.pro/bin/uno \
        -ro uno_services.rdb -ro uno_types.rdb \
        -s com.sun.star.test.bridge.BridgeTest -- \
        com.sun.star.test.bridge.CppTestObject
/bin/sh: line 1:  4987 Segmentation fault      LD_LIBRARY_PATH=/var/tmp/portage/app-office/libreoffice-3.4.2.3/work/libreoffice-bootstrap-3.4.2.3/solver/340/unxlngx6.pro/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} /var/tmp/portage/app-office/libreoffice-3.4.2.3/work/libreoffice-bootstrap-3.4.2.3/solver/340/unxlngx6.pro/bin/uno -ro uno_services.rdb -ro uno_types.rdb -s com.sun.star.test.bridge.BridgeTest -- com.sun.star.test.bridge.CppTestObject
dmake:  Error code 139, while making 'runtest'
Comment 3 Hanno Zysik (geki) 2011-07-30 10:43:01 UTC
I had that seggfault, too. New Intel Core iX CPUs with -march=native add flag -mavx. Module bridges' evil c++/assembler code needs flag -mno-avx to succeed. See:

http://code.google.com/p/gekis-playground/source/browse/trunk/eclass/libreoffice.eclass#353
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2011-08-02 07:10:21 UTC
This bug is fixed in main tree as of yesterday.
Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2011-08-04 11:36:51 UTC
Reopening the bug as I have updated patchset that needs testing.
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2011-08-04 11:37:18 UTC
Created attachment 282043 [details, diff]
configure-check-avx.patch
Comment 7 Tomáš Chvátal (RETIRED) gentoo-dev 2011-08-04 11:37:40 UTC
Created attachment 282045 [details, diff]
makefile.mk-fix.patch
Comment 8 Tomáš Chvátal (RETIRED) gentoo-dev 2011-08-04 13:33:42 UTC
Created attachment 282061 [details, diff]
configure-check-avx.patch
Comment 9 Tomáš Chvátal (RETIRED) gentoo-dev 2011-08-04 16:18:08 UTC
New patchset added to main tree.