From owner-freebsd-current@FreeBSD.ORG Fri Sep 14 14:50:49 2007 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3784716A418 for ; Fri, 14 Sep 2007 14:50:49 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.freebsd.org (Postfix) with ESMTP id 102AE13C442 for ; Fri, 14 Sep 2007 14:50:48 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from thor.farley.org (thor.farley.org [192.168.1.5]) by mail.farley.org (8.14.1/8.14.1) with ESMTP id l8EEogIA012893; Fri, 14 Sep 2007 09:50:42 -0500 (CDT) (envelope-from scf@FreeBSD.org) Date: Fri, 14 Sep 2007 09:50:42 -0500 (CDT) From: "Sean C. Farley" To: freebsd-current@FreeBSD.org In-Reply-To: <200709121517.l8CFHK8L086335@lurza.secnetix.de> Message-ID: References: <200709121517.l8CFHK8L086335@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, FB_WORD1_END_DOLLAR autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on mail.farley.org Cc: sergei@FreeBSD.org Subject: Re: /libexec/ld-elf.so.1: environment corrupt; missing value for X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 14 Sep 2007 14:50:49 -0000 On Wed, 12 Sep 2007, Oliver Fromme wrote: > Hi, > > (I've already posted this a few days ago, but it didn't > seem to get through to the list. I have updated the > 7-current machine today, and the problem is still the > same.) > > This started to happen after updating to a recent 7-current > about one week ago (it was working fine with a previous 7- > current that was a few weeks older). The shell is zsh. > > zsh$ /usr/bin/su > /libexec/ld-elf.so.1: environment corrupt; missing value for > zsh$ Did you also upgrade zsh at the same time? You should have been having troubles with zsh much earlier since my change to the *env() function went in early July. :) zsh 4.3.4 has a bug where it was mixing calls to *env() functions with direct manipulation of environ. The CVS version of zsh is fixed. I created PR ports/115094[1] to patch it in the ports tree about a month ago. *nudging sergei* :) > So su(1) fails to start. Interestingly, when I first start > an sh shell, I still get the same error message, but the > shell starts anyway. Then I can use su(1) without problems: > > zsh$ sh > sh: environment corrupt; missing value for > $ /usr/bin/su > Password: > > It was my impression that there should be more printed in > the error message after "missing value for", so I made a > hexdump: > > 6e 67 20 76 61 6c 75 65 20 66 6f 72 20 1b 5b 34 |ng value for .[4| > 7e 0a |~.| There should be something besides ^[[4~ printed, but the internal function __merge_environ() has been presented with an environ it could not handle. Sean 1. http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/115094 -- scf@FreeBSD.org