From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 12 10:42:09 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 1410210656C6 for ; Thu, 12 Mar 2009 10:42:09 +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 989A08FC1C for ; Thu, 12 Mar 2009 10:42:08 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (pD9E2E424.dip.t-dialin.net [217.226.228.36]) by redbull.bpaserver.net (Postfix) with ESMTP id 5F0B12E0F8; Thu, 12 Mar 2009 11:41:59 +0100 (CET) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 344C7127A80; Thu, 12 Mar 2009 11:41:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1236854516; bh=fcmh2ZtaEeNqjTw7J0y8Y+9UrqEzP9s2G zcoghszKwA=; h=Message-ID:Date:From:To:Cc:Subject:References: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Dtz02AaO+DZRC7sr7nSGAu5UgZ9fz3gbVHYNs08QnTE1LIVEq23A3oSanBggYqU2K g+5dVyAh4O4U1qbsXcABbKbretfQX+cudD0vJ4Z3J5OqYCvBUCrry3pQJ7mqR6KhwL8 y21Uj8j7sVSw74hHyqvRA+yRd5Vv3u318eTiZsOYPVxsDd8RVAxLOAH7AGoG+sTKkv4 zleqLzw1uxL/OJArinrjSrwjC4DbKeSmHF7NHGtBku5vy58aeF2X3/+OW7hPOzb/gZV 1xUs+Dm5SfmzSIGUslq9g1Y+GoYeiXNQTuI9J52Qz/v2cRTTwhdw4apD/YzlMc2TojA dtzV0wxOQ== Received: (from www@localhost) by webmail.leidinger.net (8.14.3/8.13.8/Submit) id n2CAftf9008498; Thu, 12 Mar 2009 11:41:55 +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; Thu, 12 Mar 2009 11:41:55 +0100 Message-ID: <20090312114155.19306tatpgd1ebk0@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Thu, 12 Mar 2009 11:41:55 +0100 From: Alexander Leidinger To: Marius =?utf-8?b?TsO8bm5lcmljaA==?= References: <20090311085138.23982deb8g8234w0@webmail.leidinger.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: 5F0B12E0F8.D3011 X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-13.204, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, MIME_8BIT_HEADER 0.30, MIME_QP_LONG_LINE 1.40, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No X-Mailman-Approved-At: Thu, 12 Mar 2009 11:35:54 +0000 Cc: Nate Eldredge , 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: Thu, 12 Mar 2009 10:42:10 -0000 Quoting Marius N=C3=BCnnerich (from Wed, 11 Mar 2009 = =20 15:54:44 +0100): > On Wed, Mar 11, 2009 at 08:51, Alexander Leidinger > wrote: >> 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 i= t >>>> throws >>> >>> As others mentioned, this is explicitly disabled. =C2=A0You could re-ena= ble 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? =C2=A0It'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 opt= ion >> (I don't know if it special-cases init or not). >> > > DTrace is not available for userland processes yet. Depending on what is needed (it may not be needed to attach gdb, it =20 may be sufficient to have something like ktrace, the OP didn't specify =20 the problem), DTrace may suit the needs. Bye, Alexander. --=20 Your true value depends entirely on what you are compared with. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137