From owner-freebsd-jail@freebsd.org Tue Aug 2 21:02:58 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 94463BAD8E0 for ; Tue, 2 Aug 2016 21:02:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 83D4917BD for ; Tue, 2 Aug 2016 21:02:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u72L2vix097534 for ; Tue, 2 Aug 2016 21:02:58 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-jail@FreeBSD.org Subject: [Bug 211353] sendmail failing during staging under poudriere FreeBSD 11+ Date: Tue, 02 Aug 2016 21:02:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Tue, 02 Aug 2016 21:02:58 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211353 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |freebsd-jail@FreeBSD.org --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-jail@freebsd.org Tue Aug 2 21:03:07 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 ABFEDBAD90B for ; Tue, 2 Aug 2016 21:03:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9B7C317F0 for ; Tue, 2 Aug 2016 21:03:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u72L37eX097758 for ; Tue, 2 Aug 2016 21:03:07 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-jail@FreeBSD.org Subject: [Bug 211353] mail/sendmail failing during staging under poudriere FreeBSD 11+ Date: Tue, 02 Aug 2016 21:03:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Tue, 02 Aug 2016 21:03:07 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211353 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|sendmail failing during |mail/sendmail failing |staging under poudriere |during staging under |FreeBSD 11+ |poudriere FreeBSD 11+ --=20 You are receiving this mail because: You are on the CC list for the bug.= 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 From owner-freebsd-jail@freebsd.org Fri Aug 5 08:15:16 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 2779ABAFD16 for ; Fri, 5 Aug 2016 08:15:16 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B76A21315 for ; Fri, 5 Aug 2016 08:15:15 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id u758F91k009247 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 5 Aug 2016 11:15:10 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua u758F91k009247 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id u758F9J6009243; Fri, 5 Aug 2016 11:15:09 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 5 Aug 2016 11:15:09 +0300 From: Konstantin Belousov To: Rudy Cc: freebsd-jail@freebsd.org Subject: Re: spontaneously exiting Jail -- jexec or ssh -- FreeBSD 10.3 Message-ID: <20160805081509.GB83214@kib.kiev.ua> References: <57A3A508.2020400@monkeybrains.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57A3A508.2020400@monkeybrains.net> User-Agent: Mutt/1.6.1 (2016-04-27) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home 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: Fri, 05 Aug 2016 08:15:16 -0000 On Thu, Aug 04, 2016 at 01:26:48PM -0700, Rudy wrote: > > 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. Jails has no concept of 'exiting with error code'. Is your shell exits, instead ? What is the version of the jailed userspace ? Do you use nss ? This smells like the issue fixed by r296416/r297673. From owner-freebsd-jail@freebsd.org Fri Aug 5 08:33:52 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 1B8DFBAE27D for ; Fri, 5 Aug 2016 08:33:52 +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-CAMELLIA256-SHA (256/256 bits)) (Client CN "mail.monkeybrains.net", Issuer "RapidSSL CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0342E1CB9 for ; Fri, 5 Aug 2016 08:33:51 +0000 (UTC) (envelope-from crapsh@monkeybrains.net) Received: from [192.168.9.190] (104-244-27-44.PUBLIC.monkeybrains.net [104.244.27.44]) (authenticated bits=0) by mail.monkeybrains.net (8.15.2/8.15.2) with ESMTPSA id u758Xo2Q067562 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 5 Aug 2016 01:33:50 -0700 (PDT) (envelope-from crapsh@monkeybrains.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=monkeybrains.net; s=dkim; t=1470386030; bh=vjXdMB2UKmLc35argx3WWXZ5Rs6VcuaH5oupDyOWoos=; h=Subject:To:References:Cc:From:Date:In-Reply-To; b=uC6CIMp+/Q9nBljoFcDWjv6NYqZJ2YyB2Nn1mu16h06eSg4E2jtqhMdjjL842uqSJ FUiaRecW7TZfekSYzyE6sImddlUGn216ZPRqzadMIdc6whSzcjsawmGwDPs8CXcE9w VnlCIIp7TInSQvmx2PJ/zQz0KcCH0O7UgA/DqMFA= X-Authentication-Warning: mail.monkeybrains.net: Host 104-244-27-44.PUBLIC.monkeybrains.net [104.244.27.44] claimed to be [192.168.9.190] Subject: Re: spontaneously exiting Jail -- jexec or ssh -- FreeBSD 10.3 To: Konstantin Belousov References: <57A3A508.2020400@monkeybrains.net> <20160805081509.GB83214@kib.kiev.ua> Cc: freebsd-jail@freebsd.org From: Rudy Message-ID: <66d6dd2e-baab-894d-2015-a28887776121@monkeybrains.net> Date: Fri, 5 Aug 2016 01:32:20 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20160805081509.GB83214@kib.kiev.ua> Content-Type: text/plain; charset=windows-1252; 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: Fri, 05 Aug 2016 08:33:52 -0000 > Jails has no concept of 'exiting with error code'. > Is your shell exits, instead ? > > What is the version of the jailed userspace ? Do you use nss ? 10.3 for userspace... Some nss... # $FreeBSD: src/etc/nsswitch.conf,v 1.3.2.1 2011/09/23 00:51:37 kensmith Exp $ #passwd: compat passwd: mysql [success=return notfound=continue unavail=continue tryagain=continue] files > This smells like the issue fixed by r296416/r297673. > I'll check it out. Thanks, Rudy