From owner-freebsd-stable@FreeBSD.ORG Thu Jul 2 06:27:41 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 667C11065672 for ; Thu, 2 Jul 2009 06:27:41 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr15.xs4all.nl (smtp-vbr15.xs4all.nl [194.109.24.35]) by mx1.freebsd.org (Postfix) with ESMTP id ED42D8FC17 for ; Thu, 2 Jul 2009 06:27:40 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr15.xs4all.nl (8.13.8/8.13.8) with ESMTP id n626RcQb089179; Thu, 2 Jul 2009 08:27:38 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 0FFE1BA9D; Thu, 2 Jul 2009 08:27:38 +0200 (CEST) Date: Thu, 2 Jul 2009 08:27:38 +0200 From: Roland Smith To: Sagara Wijetunga Message-ID: <20090702062738.GA58158@slackbox.xs4all.nl> References: <20090701070409.7740.qmail@us1.tomahawkonline.net> <20090701174930.GC37269@slackbox.xs4all.nl> <20090702012352.17934.qmail@us1.tomahawkonline.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ikeVEW9yuYc//A+q" Content-Disposition: inline In-Reply-To: <20090702012352.17934.qmail@us1.tomahawkonline.net> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-stable@freebsd.org Subject: Re: FreeBSD child process die for root X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jul 2009 06:27:41 -0000 --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 01, 2009 at 08:23:52PM -0500, Sagara Wijetunga wrote: > Roland Smith writes:=20 >=20 > > On Wed, Jul 01, 2009 at 02:04:09AM -0500, Sagara Wijetunga wrote: > >> Hi =20 > >>=20 > >> I'm Sagara Wijetunga from Tomahawk Computers from Singapore, makers of= the=20 > >> Tomahawk Desktop, a FreeBSD based desktop operating system=20 > >> (http://www.tomahawkcomputers.com/) which is free for personal use. = =20 > >>=20 > >> Ever since we upgraded our Tomahawk Core OS to the FreeBSD 7.2 sources= , we=20 > >> experienced a strange issue as follows: =20 > >>=20 > >> 1. The root cannot login from the console, child process forked die= with=20 > >> =E2=80=9Cuid 0: exited on signal 11=E2=80=9D. > >> 2. Normal users can log in, no issue. > >> 3. Normal users can type =E2=80=9Csu=E2=80=9D and become root, but = =E2=80=9Csu -l=E2=80=9D=20 > >> results child process forked die with =E2=80=9Cuid 0: exited on signal= 11=E2=80=9D. > >> 4. The /var/log/messages shows =E2=80=9C(cron), uid 0: exited on si= gnal 11=20 > >> (core dumped)=E2=80=9D=20 > >=20 > > Based on your symptoms, it looks like something in the restart commands > > file for root causes the shell to crash...=20 > >=20 > > What shell are you using for root?=20 > >=20 >=20 > Hi Roland, thank you for the reply.=20 >=20 > I have tested with bash, sh and csh. It seems the child process forked=20 > simply die irrespective of the shell.=20 Ok, so it's probably not a shell problem =20 > There is no change in the dot files for root: > [root@tds sagara]# diff /root/.cshrc /usr/src/etc/root/dot.cshrc > [root@tds sagara]# diff /root/.login /usr/src/etc/root/dot.login > [root@tds sagara]# diff /root/.profile /usr/src/etc/root/dot.profile=20 /root/.login executes the fortune program. Can you su to root and then run '/usr/games/fortune -s'? > Here is the log message for "su -l": > Jul 2 12:38:17 tds kernel: pid 943 (su), uid 0: exited on signal 11=20 It could be a hardware problem. Signal 11 can be a sign of bad memory. Can you reproduce the problem on multiple machines? > Btw, what is "restart commands file for root"?=20 The "rc" in .shrc stands for restart commands. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --ikeVEW9yuYc//A+q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkpMU1kACgkQEnfvsMMhpyWtSQCdHURdAwFWV29XWNEkgs51RP15 BDAAoJWz7U+v65E2Pg6hhj9YklVmEW+f =yrWw -----END PGP SIGNATURE----- --ikeVEW9yuYc//A+q--