From owner-freebsd-current@FreeBSD.ORG Wed Apr 20 23:03:33 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE59E16A4CE for ; Wed, 20 Apr 2005 23:03:33 +0000 (GMT) Received: from lakermmtao02.cox.net (lakermmtao02.cox.net [68.230.240.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 300C643D2F for ; Wed, 20 Apr 2005 23:03:33 +0000 (GMT) (envelope-from conrads@cox.net) Received: from dolphin.local.net ([68.11.70.216]) by lakermmtao02.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050420230330.WNMZ6521.lakermmtao02.cox.net@dolphin.local.net>; Wed, 20 Apr 2005 19:03:30 -0400 Received: from dolphin.local.net (conrads@localhost.local.net [127.0.0.1]) by dolphin.local.net (8.13.3/8.13.3) with ESMTP id j3KN3N4B035749; Wed, 20 Apr 2005 18:03:27 -0500 (CDT) (envelope-from conrads@cox.net) Date: Wed, 20 Apr 2005 18:03:23 -0500 From: "Conrad J. Sabatier" To: Eric Anderson Message-ID: <20050420180323.6d2ef473@dolphin.local.net> In-Reply-To: <4265AA6D.5070406@centtech.com> References: <48D44BB27BDE3840BDF18E59CB169A5C83A02E@bcs-mail3.internal.cacheflow.com> <4265AA6D.5070406@centtech.com> X-Mailer: Sylpheed-Claws 1.0.4 (GTK+ 1.2.10; amd64-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: "Li, Qing" cc: freebsd-current@freebsd.org Subject: Locale weirdness after latest upgrade (was Re: cannot log on as root after upgrade) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2005 23:03:33 -0000 On Tue, 19 Apr 2005 20:03:41 -0500, Eric Anderson wrote: > Li, Qing wrote: > > I performed a cvs sync today and buildworld. After the system > > reboot > > I cannot log on as root, the error message that is shown on > > console > > is "login: pam_acct_mgmt(): authentication error". > > I can still log on as a normal user. > > > > What do I need to do to fix this? Did I screw something up > > during mergemaster ? > > Sounds like it - can you boot into single user mode and check out your > passwd file? I suspect he may be encountering the same problem I'm seeing here after my latest upgrade today, namely, locale weirdness. If I set any locale-related environment variables (LANG, LC_ALL, or whatever) in my .bashrc, I can't login. Bash just core dumps immediately (even after rebuilding bash). I had the same problem with kdm. I had to change the LANG=en_US default setting in kdmrc to LANG=C. Setting it to null also produced the same behavior, by the way. I discovered the problem by running gdb on the core dumps I was getting from bash and kdm_greet. Here's the head of a backtrace from bash: #0 strcpy () at /usr/src/lib/libc/amd64/string/strcpy.S:52 #1 0x0000000800be2413 in __collate_load_tables ( encoding=0x800d41a80 "en_US.ISO8859-1") at /usr/src/lib/libc/locale/collate.c:86 #2 0x0000000800bb59d8 in loadlocale (category=1) at /usr/src/lib/libc/locale/setlocale.c:283 #3 0x0000000800bb5741 in setlocale (category=0, locale=0x5a2580 "en_US.ISO8859-1") at /usr/src/lib/libc/locale/setlocale.c:198 (the rest has no symbols) This is very strange. -- Conrad J. Sabatier -- "In Unix veritas"