Date: Wed, 11 Mar 2009 12:09:50 +1030 From: "Daniel O'Connor" <doconnor@gsoft.com.au> To: freebsd-hackers@freebsd.org Cc: pluknet <pluknet@gmail.com>, vasanth raonaik <vasanth.raonaik@gmail.com> Subject: Re: Debugging init process. Message-ID: <200903111209.58753.doconnor@gsoft.com.au> In-Reply-To: <a31046fc0903101313n5bbf11b4gc217c703154ebd88@mail.gmail.com> References: <d9f479c10903100953w4c600775oc06b997b67c472d6@mail.gmail.com> <a31046fc0903101313n5bbf11b4gc217c703154ebd88@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1378409.BqRvBF0HU1 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 11 March 2009 06:43:50 pluknet wrote: > 2009/3/10 vasanth raonaik <vasanth.raonaik@gmail.com>: > > 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)). Interesting, but it doesn't really help him debug it ;) Unless there is some other way around it you can stop the kernel making it = a=20 system process by editing /usr/src/sys/kern/init_main.c around line 730 (in= =20 create_init). Although some signal code seems to specialcase PID 1 so maybe that won't wo= rk=20 either.. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1378409.BqRvBF0HU1 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQBJtxZn5ZPcIHs/zowRAn8gAJ4rq4PGa9kAzjDnnz4XxTrSCcjwEQCgnV7U +4VAQgOGqgxyY9hVfcASiUQ= =EJg/ -----END PGP SIGNATURE----- --nextPart1378409.BqRvBF0HU1--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903111209.58753.doconnor>