From owner-freebsd-current@FreeBSD.ORG Wed Oct 17 19:51:57 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 20C2116A421 for ; Wed, 17 Oct 2007 19:51:57 +0000 (UTC) (envelope-from askbill@conducive.net) Received: from conducive.net (conducive.net [203.194.153.81]) by mx1.freebsd.org (Postfix) with ESMTP id DB91B13C459 for ; Wed, 17 Oct 2007 19:51:56 +0000 (UTC) (envelope-from askbill@conducive.net) Received: from cm218-253-81-177.hkcable.com.hk ([218.253.81.177]:60379 helo=pb.local) by conducive.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1IiEvr-0001WJ-NG for freebsd-current@freebsd.org; Wed, 17 Oct 2007 19:51:55 +0000 Message-ID: <471667DB.1010601@conducive.net> Date: Wed, 17 Oct 2007 15:51:55 -0400 From: =?UTF-8?B?6Z+T5a625qiZIEJpbGwgSGFja2Vy?= User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.2) Gecko/20070221 SeaMonkey/1.1.1 MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <00bd01c810ec$10371230$0c00a8c0@Artem> <8cb6106e0710171143m3dff7546o457192ede76e6598@mail.gmail.com> <012c01c810f3$aafeecf0$0c00a8c0@Artem> <20071017193615.GO9006@server.vk2pj.dyndns.org> In-Reply-To: <20071017193615.GO9006@server.vk2pj.dyndns.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Broken su in current - trying to fix myself, help needed! 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: Wed, 17 Oct 2007 19:51:57 -0000 Peter Jeremy wrote: > On Wed, Oct 17, 2007 at 11:26:48PM +0400, Artem Kuchin wrote: >> I have rerun all configs and started jails - still works. Then i >> remembered >> that i have always run this script fro midnight commander. >> Started mc >> Pressed ENTER on this script and it got suspended. >> >> Now i am lost, whose problem is this? su's or mc's? or both? >> If i remove su from the script and run simply >> system('echo heck'); >>from mc it work fine. With su it gets suspended. > > This bug (or another one with identical symptoms) affects the 'su' > commands within the ports build system if you are using tcsh or zsh > and maybe related to the gdb-with-tcsh problems that have been > reported. It appeared in -current in the middle of 2006. The > suggestions to date have been that there's something wrong with the > signal handling in the kernel but you have opened a new line of attack. > It doesn't seem to 'bite' when invoking a build from a 'seat' using bash or csh or sh. Keeping in mind that scripting WITIHIN Makefiles always has its own specification as to which shell is wanted, I wouldn't expect it to matter. Unless the sh and csh binaries have been removed or over-written? If someone can tell me which ports exhibit the alleged problem, I'll try it and see what happens (no 5.X, but otherwise have 4.11 thru 8-CURRENT ready to hand).. I will not be surprised if it occurs when building as an 'ordinary user' and does NOT occur when building as root.... BNL (BSD's Not Linux).... Bill