Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Sep 2011 16:46:01 +0300
From:      Mikolaj Golub <trociny@freebsd.org>
To:        Anton Yuzhaninov <citrin@citrin.ru>
Cc:        freebsd-current@freebsd.org
Subject:   Re: truss
Message-ID:  <864o0adkva.fsf@kopusha.home.net>
In-Reply-To: <j4pgu9$m94$1@dough.gmane.org> (Anton Yuzhaninov's message of "Wed, 14 Sep 2011 06:17:45 %2B0000 (UTC)")
References:  <4E5E46A4.3060705@citrin.ru> <4E6A99A9.1000204@delphij.net> <j4pgu9$m94$1@dough.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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@freebsd.org mailing list
 AY> http://lists.freebsd.org/mailman/listinfo/freebsd-current
 AY> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"

-- 
Mikolaj Golub



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?864o0adkva.fsf>