Subject: Re: kern/35368: Sun JDK 1.5.0 stopped working with -current kernel
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Brian de Alwis <bsd@cs.ubc.ca>
List: netbsd-bugs
Date: 01/06/2007 19:40:03
The following reply was made to PR kern/35368; it has been noted by GNATS.

From: Brian de Alwis <bsd@cs.ubc.ca>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/35368: Sun JDK 1.5.0 stopped working with -current kernel
Date: Sat, 6 Jan 2007 13:37:07 -0600

 I don't know why I never thought of it, but procfs's exe link
 is broken for all apps, and not just under Linux emulation.
 java is one of the few that rely on using .../exe to find its
 installation location.
 
 $ uname -a
 NetBSD monolith 4.99.7 NetBSD 4.99.7 (GENERIC.MPACPI) #0: Sat Jan  6 13:02:49 CS
 T 2007  bsd@monolith:/usr/obj/sys/arch/i386/compile/GENERIC.MPACPI i386
 
 $ mount
 /dev/wd0a on / type ffs (local)
 /dev/wd0i on /shared type msdos (local)
 kernfs on /kern type kernfs (local)
 procfs on /proc type procfs (local)
 procfs on /usr/pkg/emul/linux/proc type procfs (local)
 
 $ ls -l /proc/*/exe
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/0/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/1/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/10/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/11/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/1118/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/1130/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/1149/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/1173/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/1175/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/12/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/1244/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/13/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/1332/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/14/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/15/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/1534/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/1593/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/16/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/17/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/174/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/18/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/1947/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/1964/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/1980/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/2/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/2148/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/2239/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/2269/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/278/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/2802/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/2850/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/3/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/3354/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/3673/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/4/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/5/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/59/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/6/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/607/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/616/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/619/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/623/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/664/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/694/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/7/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/724/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/8/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/801/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/826/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/873/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/880/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/888/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/9/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/949/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/curproc/exe@ -> /
 lr-xr-xr-x  1 root  wheel  1 Jan  6 13:35 /proc/self/exe@ -> /
 $ 
 
 (spacing added for legibility)
 
 -- 
   Brian de Alwis | Software Practices Lab | UBC | http://www.cs.ubc.ca/~bsd/
       "Amusement to an observing mind is study." - Benjamin Disraeli