Date: Mon, 13 May 2002 12:14:10 -0700 (PDT) From: Reinier Bezuidenhout <rbezuide@yahoo.com> To: freebsd-emulation@freebsd.org Subject: Missing entries in linprocfs Message-ID: <20020513191411.68928.qmail@web11107.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
--0-1952802508-1021317250=:63167 Content-Type: text/plain; charset=us-ascii Hi ... I'm running 4.5 release and I'm seeing some strange behaviour with the linprocfs. I start a linux process, but when I look in the /proc file system (chrooted under linux with "chroot /compat/linux /bin/sh" the pid entries are missing ... if however I do a ls from FreeBSD (not chroot) it shows up. Seems like linux executed programs that read the /proc doesn't se all the entries ? Anyone got any ideas why ? Find below the two ls outputs one "/bin/ls /compat/linux/proc" and "/compat/linux/bin/ls /compat/linux/proc" Thanks - please reply to me directly, I'm not subscribed Reinier as you can see, there are 4 entries missing ??? /bin/ls /compat/linux/proc total 22 dr-xr-xr-x 1 root wheel 512 Jan 27 22:40 . drwxr-xr-x 13 root wheel 512 Jan 14 19:02 .. dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 0 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 1 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 105 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 123 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 124 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 125 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 126 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 127 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 18434 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 2 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 20738 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 26 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 3 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 37205 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 4 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 46474 dr-xr-xr-x 7 admin admin 512 Jan 27 22:40 46475 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 46478 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 46480 dr-xr-xr-x 7 admin admin 512 Jan 27 22:40 46481 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 46484 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 47519 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 47520 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 48731 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 48732 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 49429 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 5 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 53188 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 54330 dr-xr-xr-x 7 10 14 512 Jan 27 22:40 54372 dr-xr-xr-x 7 10 14 512 Jan 27 22:40 54373 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 54382 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 6 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 61215 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 66 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 73 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 75 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 77 dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 79 -r--r--r-- 1 root wheel 0 Jan 27 22:40 cpuinfo -r--r--r-- 1 root wheel 0 Jan 27 22:40 loadavg -r--r--r-- 1 root wheel 0 Jan 27 22:40 meminfo lr--r--r-- 1 root wheel 5 Jan 27 22:40 self -> 54382 -r--r--r-- 1 root wheel 0 Jan 27 22:40 stat -r--r--r-- 1 root wheel 0 Jan 27 22:40 uptime -r--r--r-- 1 root wheel 0 Jan 27 22:40 version /compat/linux/bin/ls -al /compat/linux/proc total 17 dr-xr-xr-x 1 root root 512 Jan 27 22:41 . drwxr-xr-x 13 root root 512 Jan 14 19:02 .. dr-xr-xr-x 7 root root 512 Jan 27 22:41 0 dr-xr-xr-x 7 root root 512 Jan 27 22:41 1 dr-xr-xr-x 7 root root 512 Jan 27 22:41 105 dr-xr-xr-x 7 root root 512 Jan 27 22:41 123 dr-xr-xr-x 7 root root 512 Jan 27 22:41 124 dr-xr-xr-x 7 root root 512 Jan 27 22:41 125 dr-xr-xr-x 7 root root 512 Jan 27 22:41 126 dr-xr-xr-x 7 root root 512 Jan 27 22:41 127 dr-xr-xr-x 7 root root 512 Jan 27 22:41 18434 dr-xr-xr-x 7 root root 512 Jan 27 22:41 2 dr-xr-xr-x 7 root root 512 Jan 27 22:41 20738 dr-xr-xr-x 7 root root 512 Jan 27 22:41 26 dr-xr-xr-x 7 root root 512 Jan 27 22:41 3 dr-xr-xr-x 7 root root 512 Jan 27 22:41 37205 dr-xr-xr-x 7 root root 512 Jan 27 22:41 4 dr-xr-xr-x 7 root root 512 Jan 27 22:41 46474 dr-xr-xr-x 7 root root 512 Jan 27 22:41 48731 dr-xr-xr-x 7 root root 512 Jan 27 22:41 48732 dr-xr-xr-x 7 root root 512 Jan 27 22:41 49429 dr-xr-xr-x 7 root root 512 Jan 27 22:41 5 dr-xr-xr-x 7 root root 512 Jan 27 22:41 53188 dr-xr-xr-x 7 root root 512 Jan 27 22:41 54384 dr-xr-xr-x 7 root root 512 Jan 27 22:41 6 dr-xr-xr-x 7 root root 512 Jan 27 22:41 61215 dr-xr-xr-x 7 root root 512 Jan 27 22:41 66 dr-xr-xr-x 7 root root 512 Jan 27 22:41 73 dr-xr-xr-x 7 root root 512 Jan 27 22:41 75 dr-xr-xr-x 7 root root 512 Jan 27 22:41 77 dr-xr-xr-x 7 root root 512 Jan 27 22:41 79 -r--r--r-- 1 root root 0 Jan 27 22:41 cpuinfo -r--r--r-- 1 root root 0 Jan 27 22:41 loadavg -r--r--r-- 1 root root 0 Jan 27 22:41 meminfo lr--r--r-- 1 root root 5 Jan 27 22:41 self -> 54384 -r--r--r-- 1 root root 0 Jan 27 22:41 stat -r--r--r-- 1 root root 0 Jan 27 22:41 uptime -r--r--r-- 1 root root 0 Jan 27 22:41 version --------------------------------- Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience --0-1952802508-1021317250=:63167 Content-Type: text/html; charset=us-ascii <P>Hi ...</P> <P>I'm running 4.5 release and I'm seeing some strange behaviour with the linprocfs.</P> <P>I start a linux process, but when I look in the /proc file system (chrooted under linux with "chroot /compat/linux /bin/sh" the pid entries are missing ... if however I do a ls from FreeBSD (not chroot) it shows up. Seems like linux executed programs that read the /proc doesn't se all the entries ?</P> <P>Anyone got any ideas why ? Find below the two ls outputs one "/bin/ls /compat/linux/proc" and "/compat/linux/bin/ls /compat/linux/proc"</P> <P>Thanks - please reply to me directly, I'm not subscribed</P> <P>Reinier</P> <P> </P> <P>as you can see, there are 4 entries missing ???</P> <P>/bin/ls /compat/linux/proc</P> <P>total 22<BR>dr-xr-xr-x 1 root wheel 512 Jan 27 22:40 .<BR>drwxr-xr-x 13 root wheel 512 Jan 14 19:02 ..<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 0<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 1<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 105<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 123<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 124<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 125<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 126<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 127<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 18434<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 2<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 20738<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 26<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 3<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 37205<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 4<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 46474<BR>dr-xr-xr-x 7 admin admin 512 Jan 27 22:40 46475<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 46478<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 46480<BR>dr-xr-xr-x 7 admin admin 512 Jan 27 22:40 46481<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 46484<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 47519<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 47520<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 48731<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 48732<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 49429<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 5<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 53188<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 54330<BR>dr-xr-xr-x 7 10 14 512 Jan 27 22:40 54372<BR>dr-xr-xr-x 7 10 14 512 Jan 27 22:40 54373<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 54382<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 6<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 61215<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 66<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 73<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 75<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 77<BR>dr-xr-xr-x 7 root wheel 512 Jan 27 22:40 79<BR>-r--r--r-- 1 root wheel 0 Jan 27 22:40 cpuinfo<BR>-r--r--r-- 1 root wheel 0 Jan 27 22:40 loadavg<BR>-r--r--r-- 1 root wheel 0 Jan 27 22:40 meminfo<BR>lr--r--r-- 1 root wheel 5 Jan 27 22:40 self -> 54382<BR>-r--r--r-- 1 root wheel 0 Jan 27 22:40 stat<BR>-r--r--r-- 1 root wheel 0 Jan 27 22:40 uptime<BR>-r--r--r-- 1 root wheel 0 Jan 27 22:40 version<BR></P> <P>/compat/linux/bin/ls -al /compat/linux/proc</P> <P>total 17<BR>dr-xr-xr-x 1 root root 512 Jan 27 22:41 .<BR>drwxr-xr-x 13 root root 512 Jan 14 19:02 ..<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 0<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 1<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 105<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 123<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 124<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 125<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 126<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 127<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 18434<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 2<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 20738<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 26<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 3<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 37205<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 4<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 46474<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 48731<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 48732<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 49429<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 5<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 53188<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 54384<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 6<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 61215<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 66<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 73<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 75<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 77<BR>dr-xr-xr-x 7 root root 512 Jan 27 22:41 79<BR>-r--r--r-- 1 root root 0 Jan 27 22:41 cpuinfo<BR>-r--r--r-- 1 root root 0 Jan 27 22:41 loadavg<BR>-r--r--r-- 1 root root 0 Jan 27 22:41 meminfo<BR>lr--r--r-- 1 root root 5 Jan 27 22:41 self -> 54384<BR>-r--r--r-- 1 root root 0 Jan 27 22:41 stat<BR>-r--r--r-- 1 root root 0 Jan 27 22:41 uptime<BR>-r--r--r-- 1 root root 0 Jan 27 22:41 version<BR></P><p><br><hr size=1><b>Do You Yahoo!?</b><br> <a href="http://rd.yahoo.com/welcome/*http://launch.yahoo.com">LAUNCH</a> - Your Yahoo! Music Experience --0-1952802508-1021317250=:63167-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020513191411.68928.qmail>