Date: Fri, 28 Mar 2008 17:54:38 -0400 From: Joe Marcus Clarke <marcus@marcuscom.com> To: Kevin Downey <redchin@gmail.com> Cc: freebsd-gnome@freebsd.org Subject: Re: java vs. procfs (was: consolekit/polkit problem) Message-ID: <1206741278.2392.107.camel@shumai.marcuscom.com> In-Reply-To: <1d3ed48c0803281450l49040fa9w19daf908c7921b3f@mail.gmail.com> References: <200803281749.m2SHnuDh030298@multi.usr.ch> <1206727968.2392.39.camel@shumai.marcuscom.com> <1d3ed48c0803281229h3bee1c4emae5188107f67de7d@mail.gmail.com> <1206732644.2392.79.camel@shumai.marcuscom.com> <1d3ed48c0803281238q4b60eb43i37600aa2a7c40543@mail.gmail.com> <1206733611.2392.85.camel@shumai.marcuscom.com> <1d3ed48c0803281338t64b5619aha094324bcc4c089c@mail.gmail.com> <1206739251.2392.97.camel@shumai.marcuscom.com> <1d3ed48c0803281436o6d471e5cg14f6e33576c2544e@mail.gmail.com> <1206740888.2392.104.camel@shumai.marcuscom.com> <1d3ed48c0803281450l49040fa9w19daf908c7921b3f@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-7vNin5DeLhrY08ePL/oV Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2008-03-28 at 14:50 -0700, Kevin Downey wrote: > On Fri, Mar 28, 2008 at 2:48 PM, Joe Marcus Clarke <marcus@marcuscom.com>= wrote: > > > > On Fri, 2008-03-28 at 14:36 -0700, Kevin Downey wrote: > > > On Fri, Mar 28, 2008 at 2:20 PM, Joe Marcus Clarke <marcus@marcuscom= .com> wrote: > > > > On Fri, 2008-03-28 at 13:38 -0700, Kevin Downey wrote: > > > > > > That said, I do see the JVM access /proc/curproc/file. Righ= t after > > > > > > this, it tries to access /usr/local/jdk1.5.0/lib/i386/libjav= a.so which > > > > > > fails. But then right after that, it successfully > > > > > > accesses /usr/local/jdk1.5.0/jre/lib/i386/libjava.so. I'd b= e interested > > > > > > to see what your ktrace -d -i looks like. > > > > > > > > > > > > > > > > > > > > > > > > Joe > > > > > > > > > > > > -- > > > > > > PGP Key : http://www.marcuscom.com/pgp.asc > > > > > > > > > > > http://www.thelastcitadel.com/lab/java-ktrace.txt > > > > > here is the last bit: > > > > > > > > > > > > > > > 7578 java CALL readlink(0x80515e5,0xbfbfdd68,0x400) > > > > > 7578 java NAMI "/proc/curproc/file" > > > > > 7578 java RET readlink 7 > > > > > > > > That's weird. readlink() returns a 28-byte path for me > > > > (/usr/local/jdk1.5.0/bin/java). When you run "java" what command= is > > > > that actually running? My "java" points to /usr/local/bin/java w= hich is > > > > actually javawrapper.sh. I suspect your "java" is either a link = or an > > > > alias to something else which is causing the file symlink not to = point > > > > to the fully-qualified path to the VM. > > > > > > > > Joe > > > > > > > > -- > > > > PGP Key : http://www.marcuscom.com/pgp.asc > > > > > > > > > > % file /usr/local/bin/java > > > /usr/local/bin/java: symbolic link to `/usr/local/bin/javavm' > > > % file /usr/local/bin/javavm > > > /usr/local/bin/javavm: Bourne shell script text executable > > > % pkg_info -W /usr/local/bin/javavm > > > /usr/local/bin/javavm was installed by package javavmwrapper-2.3 > > > > But what about "which java"? > > >=20 >=20 > % which java > /usr/local/bin/java Same thing here. You might ask Greg Lewis (Java maintainer) about this. Joe --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-7vNin5DeLhrY08ePL/oV Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEABECAAYFAkftaR4ACgkQb2iPiv4Uz4cfMwCdGqhjQ9mmD7aRxmrFUbRNzJE5 tO0An1g+N+qFRb5KAd28PRY4K8cqKNVy =LuD7 -----END PGP SIGNATURE----- --=-7vNin5DeLhrY08ePL/oV--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1206741278.2392.107.camel>