kern/104938: readlink("/proc/curproc/file") does not works above unllfs

Vladimir Grebenschikov vova at fbsd.ru
Mon Oct 30 17:30:26 UTC 2006


>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 at 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:


More information about the freebsd-bugs mailing list