From owner-freebsd-emulation Mon May 13 12:14:18 2002 Delivered-To: freebsd-emulation@freebsd.org Received: from web11107.mail.yahoo.com (web11107.mail.yahoo.com [216.136.131.154]) by hub.freebsd.org (Postfix) with SMTP id 1A64237B401 for ; Mon, 13 May 2002 12:14:11 -0700 (PDT) Message-ID: <20020513191411.68928.qmail@web11107.mail.yahoo.com> Received: from [65.211.103.2] by web11107.mail.yahoo.com via HTTP; Mon, 13 May 2002 12:14:10 PDT Date: Mon, 13 May 2002 12:14:10 -0700 (PDT) From: Reinier Bezuidenhout Subject: Missing entries in linprocfs To: freebsd-emulation@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1952802508-1021317250=:63167" Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --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

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-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message