From owner-freebsd-current@FreeBSD.ORG Wed May 27 06:01:24 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 55942479 for ; Wed, 27 May 2015 06:01:24 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 12B6877F for ; Wed, 27 May 2015 06:01:23 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [82.113.106.185] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1YxUOw-0003qt-DU for freebsd-current@freebsd.org; Wed, 27 May 2015 08:01:14 +0200 Received: from localhost.my.domain (c720-r276659 [127.0.0.1]) by localhost.unixarea.de (8.14.9/8.14.9) with ESMTP id t4R61Dnr002241 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 27 May 2015 08:01:13 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.9/8.14.9/Submit) id t4R61DH6002240 for freebsd-current@freebsd.org; Wed, 27 May 2015 08:01:13 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Wed, 27 May 2015 08:01:13 +0200 From: Matthias Apitz To: freebsd-current@freebsd.org Subject: after login through serial line, open(2) on /dev/tty hangs Message-ID: <20150527060113.GA2166@c720-r276659> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD 11.0-CURRENT r269739 (i386) User-Agent: Mutt/1.5.23 (2014-03-12) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 82.113.106.185 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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, 27 May 2015 06:01:24 -0000 Hello, I'm preparing something for an exposition on some Vintage Computer Event and connected an old original VT102 to my netbook running CURRENT. See here: http://www.unixarea.de/freebsd-vt102.jpg The system is r276659 on i386. The VT102 is connected through an USB-serial adapter and getty spawns nicely login: to /dev/cuaU0. Login works as well, but only with /bin/csh as login-shell, not with /bin/sh. After some digging, I figured out that the real problem is the hanging open(2) syscall on /dev/tty: no proc can't open this file after login through /dev/cuaU0.. More details in the issue in bugzilla: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200445 What part of the kernel should I instrument with more debugging log to get light into this problem? Any other ideas? Thanks matthias -- Matthias Apitz, guru@unixarea.de, http://www.unixarea.de/ +49-170-4527211 +49-176-38902045 "Wenn der Mensch von den Umständen gebildet wird, so muß man die Umstände menschlich bilden." "Si el hombre es formado por las circunstancias entonces es necesario formar humanamente las circunstancias", Karl Marx in Die heilige Familie / La sagrada familia (MEW 2, 138)