From owner-freebsd-current@FreeBSD.ORG Fri Sep 7 15:35:27 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 E2A4D16A41B for ; Fri, 7 Sep 2007 15:35:27 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id 587B813C4B5 for ; Fri, 7 Sep 2007 15:35:26 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id l87F02Qo018991 for ; Fri, 7 Sep 2007 17:00:09 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id l87F02js018987 for freebsd-current@freebsd.org; Fri, 7 Sep 2007 17:00:02 +0200 (CEST) (envelope-from olli) From: Oliver Fromme Message-Id: <200709071500.l87F02js018987@lurza.secnetix.de> To: freebsd-current@freebsd.org Date: Fri, 7 Sep 2007 17:00:02 +0200 (CEST) X-Mailer: ELM [version 2.5 PL8] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Fri, 07 Sep 2007 17:00:10 +0200 (CEST) X-Mailman-Approved-At: Fri, 14 Sep 2007 11:00:11 +0000 Subject: /libexec/ld-elf.so.1: environment corrupt; missing value for X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-current@freebsd.org, olli@secnetix.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Sep 2007 15:35:28 -0000 Hi, 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$ 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 |~.| Sure enough, my environment _does_ seem to be corrupt when I look at the output of env(1): There are several empty lines and some lines with random garbage characters and control characters. However, after starting sh, the garbage is gone. So sh seems to "repair" it somehow. Is this a bug in -current's environment handling? Or is it a bug in zsh that has only been triggered by recent changes in FreeBSD -current? Note that I use exactly the same zsh version and exactly the same zsh start profiles (i.e. basically the same environment contents) on a large number of machines, FreeBSD and other, and this problem _only_ exists on a recent FreeBSD 7-current. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "I started using PostgreSQL around a month ago, and the feeling is similar to the switch from Linux to FreeBSD in '96 -- 'wow!'." -- Oddbjorn Steffensen