java vs. procfs (was: consolekit/polkit problem)

Kevin Downey redchin at gmail.com
Fri Mar 28 14:50:12 PDT 2008


On Fri, Mar 28, 2008 at 2:48 PM, Joe Marcus Clarke <marcus at 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 at 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.  Right after
>  > >  > >  this, it tries to access /usr/local/jdk1.5.0/lib/i386/libjava.so which
>  > >  > >  fails.  But then right after that, it successfully
>  > >  > >  accesses /usr/local/jdk1.5.0/jre/lib/i386/libjava.so.  I'd be 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 which 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"?
>


% which java
/usr/local/bin/java


-- 
The Mafia way is that we pursue larger goals under the guise of
personal relationships.
 Fisheye


More information about the freebsd-gnome mailing list