From owner-freebsd-gnome@FreeBSD.ORG Fri Mar 28 21:50:12 2008 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B848106566C for ; Fri, 28 Mar 2008 21:50:12 +0000 (UTC) (envelope-from redchin@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.185]) by mx1.freebsd.org (Postfix) with ESMTP id 88E2A8FC1D for ; Fri, 28 Mar 2008 21:50:11 +0000 (UTC) (envelope-from redchin@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so600744fka.11 for ; Fri, 28 Mar 2008 14:50:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=gVMA54kRewlZOtB/2uCSTpQbfQSf4sZkH0fEyvhQME0=; b=RXIebgeszy8Gok513JQ21zcaSe9eoCAAzfAUQSwcTuG9cAlGbNNFj8A3f0atEBUhyRY40vm4OS/uqOeLIqCfI2TvwiqrLRZV1+wMbyI7DLLqD2VGy62t3s0XIaChfw6/orZLbLKeI5mjGJFpxC6FVjyXbtKKsPvxfdWm1mtOExY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GltFAWAZ475Ral66lwgcrMhrP+xHiMGTwatJWprOI1sQEd3ou25apH4bMUbVYUeKhSgkaM2nPTQ6yU6ifOgV3UWjYzPx7HXisX6mKS/hHzeYr7i8z2PJWtpwhiveWeyMmItidjZO+bpHQnvpET6YgVk7vPQF/FAD+QgP8UdvQs0= Received: by 10.82.105.1 with SMTP id d1mr6879467buc.28.1206741009374; Fri, 28 Mar 2008 14:50:09 -0700 (PDT) Received: by 10.82.160.9 with HTTP; Fri, 28 Mar 2008 14:50:09 -0700 (PDT) Message-ID: <1d3ed48c0803281450l49040fa9w19daf908c7921b3f@mail.gmail.com> Date: Fri, 28 Mar 2008 14:50:09 -0700 From: "Kevin Downey" To: "Joe Marcus Clarke" In-Reply-To: <1206740888.2392.104.camel@shumai.marcuscom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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> Cc: freebsd-gnome@freebsd.org Subject: Re: java vs. procfs (was: consolekit/polkit problem) X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Mar 2008 21:50:12 -0000 On Fri, Mar 28, 2008 at 2:48 PM, Joe Marcus Clarke 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 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