From owner-freebsd-jail@freebsd.org Thu Aug 4 20:44:37 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EEC75BAF779 for ; Thu, 4 Aug 2016 20:44:37 +0000 (UTC) (envelope-from crapsh@monkeybrains.net) Received: from mail.monkeybrains.net (mail.monkeybrains.net [208.69.40.19]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C216916F8 for ; Thu, 4 Aug 2016 20:44:37 +0000 (UTC) (envelope-from crapsh@monkeybrains.net) Received: from [10.2.86.14] (104-193-168-62.PUBLIC.monkeybrains.net [104.193.168.62]) (authenticated bits=0) by mail.monkeybrains.net (8.15.2/8.15.2) with ESMTPSA id u74KQmUe089314 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 4 Aug 2016 13:26:48 -0700 (PDT) (envelope-from crapsh@monkeybrains.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=monkeybrains.net; s=dkim; t=1470342408; bh=X8gZoW6SMhKkKA4m44X87cBmvJH96AVgdtLtktJ8DdQ=; h=To:From:Subject:Date; b=YeKAyqIv4miUcATqNuafZUoXDstMDZYxOX+s4hlyfcH54VG8nqsQwHuqn5cN5sgfz giPMVio4YfErbUfeIURUZAY2GrNr7B/MK33wqOXHDZtfSmwBqwiufM6jPqjj1svOd+ POyiNJ/cDr3LBXTrmN9spyENEOhtJZrdOEe9oNHk= X-Authentication-Warning: mail.monkeybrains.net: Host 104-193-168-62.PUBLIC.monkeybrains.net [104.193.168.62] claimed to be [10.2.86.14] To: freebsd-jail@freebsd.org From: Rudy Subject: spontaneously exiting Jail -- jexec or ssh -- FreeBSD 10.3 Message-ID: <57A3A508.2020400@monkeybrains.net> Date: Thu, 4 Aug 2016 13:26:48 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.98.7 at mail.monkeybrains.net X-Virus-Status: Clean X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2016 20:44:38 -0000 I have an odd issue, and I'm writing to see if anyone has seen the same issue. If I use "jexec 4 tcsh" or ssh into the jail, some sequences on the command line kick me out (spontaneously exit) everytime. For example, I run a couple of commands, then go to the /usr/local folder, hit mv TAB (file name completion) realize I am in the wrong folder, hit ^C, and the jail boots me. I've set the 'prompt' to be HOST and GUEST for the main install and jail. HOST%jexec 4 tcsh GUEST%date Thu Aug 4 13:21:13 PDT 2016 GUEST%ls .cshrc etc-lavash .profile home .rnd lib COPYRIGHT libexec Dec31.2012 media Dec31.2013 mnt Dec31.2014 proc Dec31.2015 rescue INSTALL-NOTES-MONKEYBRAINS root basejail sbin bin sys boot tmp data usr dev var etc www etc-injera GUEST%cd /usr/local/ GUEST%mv [hit TAB for completion] bin/ libdata/ dcc/ libexec/ etc-BACKUP/ man/ etc-dist/ openssl/ etc-injera/ sbin/ etc-lavash/ share/ etc/ tests/ include/ var/ info/ www/ lib/ x86_64-portbld-freebsd10.1/ GUEST%mv {^C}HOST% Here is a TRUSS on the last command: truss jexec 4 tcsh GUEST%mv write(17,"GUEST%mv ",9) = 9 (0x9) read(16,0x7fffffffe0d2,1) ERR#4 'Interrupted system call' SIGNAL 2 (SIGINT) sigprocmask(SIG_SETMASK,{ SIGINT },0x0) = 0 (0x0) process exit, rval = 1 Oddly, if I don't do a couple of seemingly arbitrary commands first (ls and date in the example above), but go straight to the cd and then mv command, the jail does exit with the ERR#4. Rudy