From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 18 16:11:28 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49AC61065672 for ; Sat, 18 Sep 2010 16:11:28 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id B04698FC08 for ; Sat, 18 Sep 2010 16:11:27 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id o8IGBNxk080340 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 18 Sep 2010 19:11:23 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id o8IGBNAr037222; Sat, 18 Sep 2010 19:11:23 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id o8IGBMjR037221; Sat, 18 Sep 2010 19:11:22 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 18 Sep 2010 19:11:22 +0300 From: Kostik Belousov To: Mateusz Guzik Message-ID: <20100918161122.GU2389@deviant.kiev.zoral.com.ua> References: <4C8A81D9.5020905@rawbw.com> <20100910194600.GB60815@stack.nl> <20100912130801.GA23538@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Wlbg71WMOPzcvmIn" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_20, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: Alexander Best , freebsd-hackers@freebsd.org, Jilles Tjoelker , Yuri Subject: Re: Why I can't trace linux process's childs with truss? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Sep 2010 16:11:28 -0000 --Wlbg71WMOPzcvmIn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 12, 2010 at 05:01:09PM +0200, Mateusz Guzik wrote: > On Sun, Sep 12, 2010 at 3:08 PM, Alexander Best wro= te: > > there's a PR related to this "issue" [1]. so is truss missing this > > functionality or is this in fact a feature, because truss musn't be use= d on > > any non freebsd executable? > > >=20 > Actually truss handles linux processes just fine, except for their childr= en. :) > Linux process can create a child using linux_clone syscall, but truss doe= s not > handle that case and this can be the problem that Yuri reported (since > no log was > provided, I can only guess). >=20 > This trivial patch should fix this: > http://student.agh.edu.pl/~mjguzik/truss-linux-forks.patch This is too trivial, IMO. linux_clone() does not neccessary cause new process to be created, I think. >=20 > Tested on this simple program: > http://student.agh.edu.pl/~mjguzik/fork.c >=20 > If it still does not work, log generated by truss would be helfpul. --Wlbg71WMOPzcvmIn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkyU5KoACgkQC3+MBN1Mb4gHLwCgmhPxYKiowkOfNguiKSZ3pY6X cBAAn2eQ4uOkvtH2s58PkJls7s3SbipN =VDPi -----END PGP SIGNATURE----- --Wlbg71WMOPzcvmIn--