From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 10 20:13:51 2009 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 E39F91065672 for ; Tue, 10 Mar 2009 20:13:51 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id 70DC48FC1C for ; Tue, 10 Mar 2009 20:13:51 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so834941fgb.35 for ; Tue, 10 Mar 2009 13:13:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=9aU9RzDtKSET9O4LC2Pn4OwgwJNrs5J/3hbzXnQeb4Y=; b=Pmtncs1WGhaEdEZuFIorQzTky2z3guBFZk7ebn+0yg1tkoFGCRWiPQGXZRiOlFb9gr 7kORTU0InoMphZ/Zf892T4F5VfVUjNH1fTGlZazs5z9F66XPo3d2cIXAwCzmUNB7Ybay EPm+QJxBnk61M0ytsxyWiV1ArAnsd+adKmcQs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=FbwWin2UFMlET1GNT+J1dZ+joeHwjMnaUWG++FUWx8NZ+Am2lMRGIEf7cCJG+en3yn S7qv82EjJNcuCcZ5amI4RWv9dJSL+1szhcgxLZMCSTytUtTcCi2Hc+PFpBclpbiaaM+T soIZPhySAy5X+vVYmMZJyU4Tkwpz5ThLhBcMY= MIME-Version: 1.0 Received: by 10.86.98.18 with SMTP id v18mr5324705fgb.46.1236716030408; Tue, 10 Mar 2009 13:13:50 -0700 (PDT) In-Reply-To: References: Date: Tue, 10 Mar 2009 23:13:50 +0300 Message-ID: From: pluknet To: vasanth raonaik Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Debugging init process. 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: Tue, 10 Mar 2009 20:13:52 -0000 2009/3/10 vasanth raonaik : > Hello Team, > > I need to debug init process. I am not able to attach init to gdb and it > throws > That is because init is a system process, which you cannot trace by design (see ptrace(2)). $ ps -o flags -p 1 F 10004200 , where from ps(1): P_SYSTEM 0x00200 System proc: no sigs, stats or swapping -- wbr, pluknet