From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 11 07:51:50 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 4EDC7106564A for ; Wed, 11 Mar 2009 07:51:50 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id EC2DE8FC1A for ; Wed, 11 Mar 2009 07:51:49 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (pD9E2E7B0.dip.t-dialin.net [217.226.231.176]) by redbull.bpaserver.net (Postfix) with ESMTP id 7CA902E252; Wed, 11 Mar 2009 08:51:42 +0100 (CET) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id EBE151B6C0B; Wed, 11 Mar 2009 08:51:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1236757899; bh=tllSPbzI/PUf8BIshRBG4AJwH7QQ4gQaO vwP5x4yYs4=; h=Message-ID:Date:From:To:Cc:Subject:References: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=X9vkWfnCRsqAV3MZ4y2MvNpYJVA9rBArmBuftEts969mzIVbd/IktQA6/lT75YyIB Gt/VVi1wyG+EnRmBqRuTfD9NbV7SRB1Fkji+ibm3BaW4S2pABpIQrVsDkx6lbdmfJ5z 3WJVqr5KZNWMKPLNwGufmdwj7JzOOwuwLlXzOGFo+X7oqYecx0dAIMamzTztYCR/c3G M/LADBRIP1HigDLz3sGFMZuvjyZ0ZlYnSworkJB6NDobqrf9E9MLta+RfwF6ngDkJXt Xdc7ZthGckk0/3zMpvHd42ON1UcP8PkioL1UgikJx3eraXZoCxsDdM4HMlg5hwcWGDo hT3+msctw== Received: (from www@localhost) by webmail.leidinger.net (8.14.3/8.13.8/Submit) id n2B7pcYk097199; Wed, 11 Mar 2009 08:51:38 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Wed, 11 Mar 2009 08:51:38 +0100 Message-ID: <20090311085138.23982deb8g8234w0@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Wed, 11 Mar 2009 08:51:38 +0100 From: Alexander Leidinger To: Nate Eldredge References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.3) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: 7CA902E252.5774B X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-14.9, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No X-Mailman-Approved-At: Wed, 11 Mar 2009 11:20:21 +0000 Cc: freebsd-hackers@freebsd.org, vasanth raonaik 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: Wed, 11 Mar 2009 07:51:50 -0000 Quoting Nate Eldredge (from Tue, 10 Mar 2009 19:02:16 -0700 (PDT)): > On Tue, 10 Mar 2009, vasanth raonaik wrote: > >> Hello Team, >> >> I need to debug init process. I am not able to attach init to gdb and it >> throws > > As others mentioned, this is explicitly disabled. You could > re-enable it by hacking the kernel, but it could cause other > unexpected problems. > > Alternatively, there's always "printf debugging". > > What is wrong with init, that you need to debug it? It's a fairly > simple program that's been around for a long time and should be > pretty stable. If this is on -current and depending on the problem, dtrace may be an option (I don't know if it special-cases init or not). Bye, Alexander. -- Don't interfere with the stranger's style. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137