-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Problem with truss, won't start. Please advise me what to do. truss /bin/echo hello truss: truss: cannot open /proc/42520/mem cannot open /proc/curproc/mem: : No such file or directory No such file or directory uname -a output: FreeBSD mars.mysite.com 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #2: Thu Nov 2 13:58:09 UTC 2006 root@mars.mysite.com :/usr/obj/usr/src/sys/MARS amd64 Thank you. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFiXw2bE0+gtjqpZoRAlmyAJ9OdDYEM9Xb+7BEa1fbTczSD3gZ2QCglO6o BFyyVbvagNCyJ2CjuID1Yug=EjVP -----END PGP SIGNATURE-----
Ilya Vishnyakov wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Problem with truss, won't start. Please advise me what to do. > > truss /bin/echo hello truss: truss: cannot open /proc/42520/mem cannot > open /proc/curproc/mem: : No such file or directory > No such file or directory > > > uname -a output: > > FreeBSD mars.mysite.com 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #2: > Thu Nov 2 13:58:09 UTC 2006 root@mars.mysite.com > :/usr/obj/usr/src/sys/MARS amd64 > > Thank you.You should do mount_procfs procfs /proc before doing truss. Cheers, -- Xin LI <delphij@delphij.net> http://www.delphij.net/ FreeBSD - The Power to Serve!
On Wed, Dec 20, 2006 at 01:08:54PM -0500, Ilya Vishnyakov wrote:> Problem with truss, won't start. Please advise me what to do. > > truss /bin/echo hello truss: truss: cannot open /proc/42520/mem cannot > open /proc/curproc/mem: : No such file or directory > No such file or directory >Do you have /proc mounted? # mount -t procfs proc /proc/ -erwin -- Erwin Lansing http://droso.org Security is like an onion. (o_ _o) It's made up of several layers \\\_\ /_/// erwin@FreeBSD.org And it makes you cry. <____) (____> erwin@aauug.dk -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20061220/bc4e5feb/attachment.pgp
On Wed, 2006-12-20 at 13:08 -0500, Ilya Vishnyakov wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Problem with truss, won't start. Please advise me what to do. > > truss /bin/echo hello truss: truss: cannot open /proc/42520/mem cannot > open /proc/curproc/mem: : No such file or directory > No such file or directorymount /proc In /etc/fstab: proc /proc procfs rw 0 0 -- Frank Mayhar frank@exit.com http://www.exit.com/ Exit Consulting http://www.gpsclock.com/ http://www.exit.com/blog/frank/