Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 344929 - USE='java' emerge app-office/openoffice-3.2.0 segfaults building testtools/source/bridgetest
Summary: USE='java' emerge app-office/openoffice-3.2.0 segfaults building testtools/so...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-10 14:29 UTC by csingley
Modified: 2011-08-04 16:32 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description csingley 2010-11-10 14:29:58 UTC
A working install of openoffice-3.2.0; rebuilding with java support fails to compile.

Reproducible: Always

Steps to Reproduce:
1. USE='java' emerge app-office/openoffice

Actual Results:  
: &&     LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}/tmp/portage/app-office/openoffice-3.2.0/work/ooo/build/OOO320_m12/solver/320/unxlngx6.pro/lib /tmp/portage/app-office/openoffice-3.2.0/work/ooo/build/OOO320_m12/solver/320/unxlngx6.pro/bin/regcomp -register  -br ../../unxlngx6.pro/misc/bridgetest/bootstrap.rdb -r ../../unxlngx6.pro/lib/uno_services.rdb -c \
        file:///tmp/portage/app-office/openoffice-3.2.0/work/ooo/build/OOO320_m12/testtools/source/bridgetest/../../unxlngx6.pro/class/testComponent.jar \
        -env:URE_INTERNAL_JAVA_DIR=file:///tmp/portage/app-office/openoffice-3.2.0/work/ooo/build/OOO320_m12/solver/320/unxlngx6.pro/bin
using loader com.sun.star.loader.Java2
file:///tmp/portage/app-office/openoffice-3.2.0/work/ooo/build/OOO320_m12/testtools/source/bridgetest/../../unxlngx6.pro/class/testComponent.jar
/bin/bash: line 1: 10964 Segmentation fault      LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}/tmp/portage/app-office/openoffice-3.2.0/work/ooo/build/OOO320_m12/solver/320/unxlngx6.pro/lib /tmp/portage/app-office/openoffice-3.2.0/work/ooo/build/OOO320_m12/solver/320/unxlngx6.pro/bin/regcomp -register -br ../../unxlngx6.pro/misc/bridgetest/bootstrap.rdb -r ../../unxlngx6.pro/lib/uno_services.rdb -c file:///tmp/portage/app-office/openoffice-3.2.0/work/ooo/build/OOO320_m12/testtools/source/bridgetest/../../unxlngx6.pro/class/testComponent.jar -env:URE_INTERNAL_JAVA_DIR=file:///tmp/portage/app-office/openoffice-3.2.0/work/ooo/build/OOO320_m12/solver/320/unxlngx6.pro/bin
dmake:  Error code 139, while making '../../unxlngx6.pro/lib/uno_services.rdb'
dmake:  '../../unxlngx6.pro/lib/uno_services.rdb' removed.

ERROR: Error 65280 occurred while making /tmp/portage/app-office/openoffice-3.2.0/work/ooo/build/OOO320_m12/testtools/source/bridgetest


!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.22"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER=""
and of course, the output of emerge --info


Expected Results:  
Successfully build openoffice

!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.22"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER=""
and of course, the output of emerge --info

======

Portage 2.1.9.24 (hardened/linux/amd64/10.0, gcc-4.4.5, glibc-2.11.2-r3, 2.6.34-hardened-r2 x86_64)
=================================================================
System uname: Linux-2.6.34-hardened-r2-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7100_@_1.80GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 09 Nov 2010 08:45:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.5, 4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /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"
CXXFLAGS="-march=core2 -O1"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j1"
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="/var/lib/layman/akoya /var/lib/layman/sunrise /var/lib/layman/kde"
SYNC="rsync://doppel/gentoo-portage"
USE="X acl acpi alsa amd64 bash-completion berkdb bzip2 cdr cjk cleartype cli consolekit cracklib crypt cups cxx dbus dga doc dri dvd dvdr flac gdbm gpm hal hardened iconv ieee1394 ipod java6 justify kde kerberos laptop lm_sensors mmx modules mp3 mudflap multilib ncurses nls nptl nptlonly nsplugin nspluginwrapper offensive ofx ogg opengl openmp pam pcmcia pcre perl pic png pppd python qt qt3support qt4 quotes readline session sip smp sse sse2 ssl ssse3 sysfs tcpd truetype unicode urandom usb vim-syntax vorbis webkit wifi xinerama xorg 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" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-2" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Onteria 2010-11-11 12:07:37 UTC
I was able to get this to compile okay with the setup indicated by emerge --info below. One thing I notice is that you're running a hardened setup. I would recommend trying a different jdk, such as icedtea6-bin or ibm-jdk to see if the results are the same. That will help isolate as to what's causing this issue. Another thing you could try is a non-hardened kernel and see what happens.

Portage 2.1.8.3 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.4, glibc-2.11.2-r3, 2.6.34-gentoo-r12 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r12-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5400+-with-gentoo-1.12.14
Timestamp of tree: Tue, 09 Nov 2010 17:45:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 IBM-J1.6 sun-bcla-java-vm"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ja"
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"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 anthy aspell berkdb bluetooth branding bzip2 cairo cdr cjk cli consolekit cracklib crypt cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif git gpm gtk hal ibus iconv jpeg kde lcms libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pch pcre pdf perl png ppds pppd python qt3support qt4 readline sdl semantic-desktop session spell sse sse2 ssl startup-notification svg sysfs tcpd threads tiff truetype unicode usb vorbis x264 xcb xinerama xml xorg 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" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ja" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvida" 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, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 csingley 2010-11-12 11:26:46 UTC
It bombs with icedtea6-bin as well.  I'll build a non-hardened kernel to confirm.
Comment 3 csingley 2010-11-12 19:20:00 UTC
USE='java' emerge app-office/openoffice builds fine and run under linux-2.6.34-gentoo-r12.  However, when booting back into the old hardened kernel, oobase crashes when trying to create a HSQLDB file, complaining:

OpenOffice.org(9250): couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol ''.
" 
Inconsistency detected by ld.so: dl-open.c: 221: dl_open_worker: Assertion `_dl_debug_initialize (0, args->nsid)->r_state == RT_CONSISTENT' failed!

Comment 4 Onteria 2010-11-12 21:00:29 UTC
Looks like this was mentioned on the Gentoo hardened mailing list:

http://www.mail-archive.com/gentoo-hardened@lists.gentoo.org/msg02747.html

Unfortunately the fix is somewhat beyond my expertise, so someone from hardened will have to speak on this.
Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2011-08-04 16:32:43 UTC
This should be fixed by the -avx patchset added to 3.4.2.3