Re: truss

From: Mikolaj Golub <trociny_at_freebsd.org>
Date: Sun, 18 Sep 2011 16:46:01 +0300
On Wed, 14 Sep 2011 06:17:45 +0000 (UTC) Anton Yuzhaninov wrote to Xin LI:

 AY> On Fri, 09 Sep 2011 15:56:41 -0700, Xin LI wrote:
 XL>> -----BEGIN PGP SIGNED MESSAGE-----
 XL>> Hash: SHA256
 XL>> 
 XL>> On 08/31/11 07:35, Anton Yuzhaninov wrote:
 >>> It seems to be truss(1) is broken on current
 >>> 
 >>> :~> truss /bin/echo x x truss: can not get etype: No such process
 >>> 
 >>> FreeBSD 9.0-BETA1 #0 r224884M i386
 >>> 
 >>> from ktrace of turss
 >>> 
 >>> 3162 truss    CALL
 >>> __sysctl(0xbfbfea00,0x4,0xbfbfe9e0,0xbfbfea10,0,0) 3162 truss
 >>> SCTL  "kern.proc.sv_name.3163" 3162 truss    RET   __sysctl -1
 >>> errno 3 No such process
 XL>> 
 XL>> Can't seem to be reproducable here, did I missed anything?  (note that
 XL>> you may need a full world/kernel build).
 XL>> 

 AY> Problem still here after svn up and rebuild world/kernel

 AY> :~> ktrace -t+ truss /usr/bin/true
 AY> truss: can not get etype: No such process

Could you please run ktrace with -i option? The behavior is like if
ptrace(PT_TRACE_ME) failed in the child by some reason. Unfortunately, truss
does not check this.

 AY> Full ktrace:
 AY> http://dl.dropbox.com/u/8798217/tmp/truss_ktrace.txt

 AY> FreeBSD 9.0-BETA2 #1 r225504M
 AY> i386

 AY> Kernel config is not GENERIC - main difference - DTrace added:
 AY> http://dl.dropbox.com/u/8798217/tmp/kernconf.txt

 AY> -- 
 AY>  Anton Yuzhaninov

 AY> _______________________________________________
 AY> freebsd-current_at_freebsd.org mailing list
 AY> http://lists.freebsd.org/mailman/listinfo/freebsd-current
 AY> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"

-- 
Mikolaj Golub
Received on Sun Sep 18 2011 - 12:12:36 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:18 UTC