From owner-freebsd-java@FreeBSD.ORG Tue May 29 12:05:10 2012 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0F031065813 for ; Tue, 29 May 2012 12:05:10 +0000 (UTC) (envelope-from Kustaa.Nyholm@planmeca.com) Received: from fsmsg.planmeca.com (fsmsg.planmeca.com [193.94.173.206]) by mx1.freebsd.org (Postfix) with ESMTP id 037538FC1B for ; Tue, 29 May 2012 12:05:09 +0000 (UTC) Received: from srvfihkiexh01.pmgroup.local ([172.26.0.107]) by fsmsg.planmeca.com (8.14.5/8.14.5) with ESMTP id q4TC58OL005589 for ; Tue, 29 May 2012 15:05:08 +0300 Received: from SRVFIHKIEXB01.pmgroup.local ([172.26.0.201]) by srvfihkiexh01.pmgroup.local ([172.26.0.107]) with mapi; Tue, 29 May 2012 15:05:07 +0300 From: Kustaa Nyholm To: "freebsd-java@freebsd.org" Date: Tue, 29 May 2012 15:05:05 +0300 Thread-Topic: tcgetattr hangs Thread-Index: Ac09k0miVQ1dONPGRGKNRnSJqPCdGg== Message-ID: In-Reply-To: <20120529110220.GI2358@deviant.kiev.zoral.com.ua> Accept-Language: en-US, fi-FI Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.0.0.100825 acceptlanguage: en-US, fi-FI Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.6.7580, 1.0.260, 0.0.0000 definitions=2012-05-29_03:2012-05-21, 2012-05-29, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1112030000 definitions=main-1205290093 Subject: Re: tcgetattr hangs X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 May 2012 12:05:11 -0000 On 5/29/12 14:02, "Konstantin Belousov" wrote: > >Verify that the thread indeed hang in ioctl, executed on the right >file descriptor and TIOCGETA ioctl command. You may use ktrace(1) >or truss(1) for this. > >If ioctl(TIOCGETA) is indeed what was called, then look at the in-kernel >backtrace of the hung thread with procstat -kk command. > Thanks, have not tried those yet, we will try that. br Kusti