Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Oct 2006 20:26:50 +0300
From:      "Vladimir Grebenschikov" <vova@fbsd.ru>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Subject:   kern/104938: readlink("/proc/curproc/file") does not works above unllfs
Message-ID:  <1162229210.51920@vbook.fbsd.ru>
Resent-Message-ID: <200610301730.k9UHUOhG023098@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         104938
>Category:       kern
>Synopsis:       readlink("/proc/curproc/file") does not works above unllfs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 30 17:30:24 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Vladimir Grebenschikov
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
SWsoft 
>Environment:


System: FreeBSD 7.0-CURRENT #0: Tue Sep 19 19:42:28 MSD 2006
    root@vbook.fbsd.ru:/usr/obj/usr/src/sys/VBOOK



>Description:


triing to find reason why jdk1.5 stop working, I have found that readlink for /proc/curproc/file returns "unknown"

$ truss java
...
readlink("/proc/curproc/file","unknown",1024)    = 7 (0x7)
Error: could not find libjava.so
write(2,"Error: could not find libjava.so"...,33) = 33 (0x21)
Error: could not find Java 2 Runtime Environment.
write(2,"Error: could not find Java 2 Run"...,50) = 50 (0x32)
exit(0x2)
$

$ ps ax | fgrep java
49210  p0  S+     0:00.07 gdb /usr/local/jdk1.5.0/bin/java
49214  p0  TX     0:00.02 /usr/local/jdk1.5.0/bin/java
49224  p4  R+     0:00.00 fgrep java
$ ll /proc/49214/file 
lr--r--r--  1 vova  vova  0 Oct 30 20:16 /proc/49214/file -> unknown
$



>How-To-Repeat:


Just try to start jdk1.5 from nullfs-mounted partition


>Fix:





>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1162229210.51920>