Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210177 - dev-java/sun-jdk-1.6.0.03 - libjavaplugin_oji.so: undefined symbol: PR_NewMonitor
Summary: dev-java/sun-jdk-1.6.0.03 - libjavaplugin_oji.so: undefined symbol: PR_NewMon...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major with 1 vote (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-14 19:44 UTC by crusaderky
Modified: 2011-01-19 03:33 UTC (History)
2 users (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 crusaderky 2008-02-14 19:44:52 UTC
Azureus-3.0.4.2-r1 crashes randomly with the following message:

/usr/lib/jvm/sun-jdk-1.6/bin/java: symbol lookup error: /opt/sun-jdk-1.6.0.03/jre/plugin/i386/ns7/libjavaplugin_oji.so: undefined symbol: PR_NewMonitor


Relevant lines from package.keywords:

net-p2p/azureus
=dev-util/eclipse-sdk-3.3.1.1
=dev-java/cldc-api-1.1
=dev-java/junit-4.4-r1
=dev-java/hamcrest-core-1.1
=dev-java/swt-3.3.1.1 
=dev-java/commons-logging-1.1-r4
=dev-java/jsch-0.1.37
=dev-java/icu4j-3.6.1-r1
=dev-java/lucene-1.9.1
=dev-java/commons-el-1.0-r2

# emerge --info
Portage 2.1.3.19 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo i686)
=================================================================
System uname: 2.6.24-gentoo i686 Intel(R) Celeron(R) M CPU 420 @ 1.60GHz
Timestamp of tree: Wed, 30 Jan 2008 06:16:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4m -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium4m -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sanbox sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.muntinternet.net/pub/gentoo/ http://mirror.bih.net.ba/gentoo/"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LINGUAS="it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cddb cdparanoia cdr cjk cli cracklib crypt cups curl dbus dri dts dvd dvdr dvdread eds emboss encode exif fam ffmpeg firefox flac fortran ftp gcj gd gdbm gif gimp gnutls gpm gtk hal iconv ipv6 isdnlog java jpeg kerberos lcms ldap libnotify lm_sensors lzo mad matroska midi mikmod mmx mng mp3 mpeg mtp mudflap musepack mysql ncurses nls nptl nptlonly nsplugin obex ogg opengl openmp pam pcmcia pcre pda pdf perl png pppd python qt3support quicktime raw readline reflection samba sdl session slp speex spl sse sse2 ssl startup-notification svg tcl tcpd theora threads tiff tk truetype truetype-fonts type1-fonts unicode usb vorbis wifi win32codecs wmf wxwindows x264 x86 xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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 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" CAMERAS="fuji" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-02-15 18:28:37 UTC
What version of nspr is installed? Was it upgraded recently? Run revdep-rebuild? Reinstall swt?
Comment 2 crusaderky 2008-02-20 19:28:08 UTC
(In reply to comment #1)
> What version of nspr is installed? Was it upgraded recently? 
# genlop --list | grep nspr
     Sun Dec  2 17:48:34 2007 >>> dev-libs/nspr-4.6.7

> Run revdep-rebuild? Reinstall swt?
Done & done. no improvement.


Comment 3 Peng Liu 2008-10-23 09:45:41 UTC
I too, get the exactly same problem. I am using sun-jdk-1.6.0.07, and Azureus 3.1.1.0. I suspect it is something I unmasked to install eclipse 3.4. 

Here is something I think is revelant from package.keywords:
dev-util/eclipse-sdk
dev-java/junit
dev-java/ant
dev-java/ant-antlr
dev-java/ant-apache-bcel
dev-java/ant-apache-bsf
dev-java/ant-jsch
dev-java/ant-apache-log4j
dev-java/ant-apache-oro
dev-java/ant-apache-regexp
dev-java/ant-apache-resolver
dev-java/ant-commons-net
dev-java/ant-commons-logging
dev-java/ant-core
dev-java/ant-javamail
dev-java/ant-jdepend
dev-java/ant-junit
dev-java/ant-nodeps
dev-java/ant-swing
dev-java/ant-trax
dev-java/lucene-analyzers
dev-java/sat4j-core
dev-java/sat4j-pseudo
dev-java/lucene
dev-java/ant-eclipse-ecj
dev-java/eclipse-ecj
dev-java/json-simple
dev-java/javatoolkit
dev-java/swt
dev-libs/nspr
dev-libs/nss
net-p2p/azureus

And my emerge --info
Portage 2.1.4.5 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r8 i686)
=================================================================
System uname: 2.6.25-gentoo-r8 i686 Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz
Timestamp of tree: Thu, 23 Oct 2008 02:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /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/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.pacific.net.au/linux/Gentoo http://distfiles.gentoo.org "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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="/usr/local/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="X acl alsa automount avahi berkdb bzip2 cdr cjk cli cracklib crypt cups dbus dri dvb dvd dvdr encode firefox gdbm gif gnome gpm gtk hal iconv isdnlog java jpeg lm_sensors midi mmx mp2 mp3 mudflap nautilus ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp oss pam pcre pdf perl png pppd python readline reflection ruetype samba session spell spl sse sse2 sse3 ssl svg sysfs tcpd tiff unicode vorbis x264 x86 xinerama xorg xsrceensaver xulrunner xv xvmc zlib" ALSA_CARDS="hda-intel" 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 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" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

If need anything else, I am more than happy to help.
Comment 4 Serkan Kaba (RETIRED) gentoo-dev 2008-12-21 20:06:59 UTC
Can you test with latest sun-jdk?
Comment 5 Peng Liu 2008-12-22 10:03:35 UTC
(In reply to comment #4)
> Can you test with latest sun-jdk?
> 
Tested today with 1.6.0.11 and Azureus 4.0.0.4, same as before, it is actually not really a random crash to me, as it always crashed instantaneously after Azureus finished start up.  

(SWT:28987): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width 250 and height -1
/usr/lib/jvm/sun-jdk-1.6/bin/java: symbol lookup error: /opt/sun-jdk-1.6.0.11/jre/plugin/i386/ns7/libjavaplugin_oji.so: undefined symbol: PR_NewMonitor

is the last line from terminal output.

Also I tried to test with current stable version of Azureus (3.0.4.2-r1), but it
wouldn't emerge successfully, complaining about swt need embedded browser USE flag enabled, but I already had xurlrunner enabled globally. I am using swt 3.4, and that might be the reason?
Comment 6 Silvan Heintze 2009-02-18 22:31:08 UTC
dev-java/sun-jdk-1.6 seems to be shipped with two different javaplugin files. sun-jdk-1.6 fails while sun-jdk-1.6-plugin2 works fine for me.

# sudo eselect java-nsplugin set sun-jdk-1.6-plugin2

is all that I needed to do.

I have not looked out for side effects though, so obviously this is more of a workaround, rather than a fix.
Comment 7 Miroslav Šulc gentoo-dev 2011-01-19 03:33:52 UTC
none of the mentioned versions is in tree. reopen with current versions mentioned if the problem still persists.