From owner-freebsd-threads@FreeBSD.ORG Sun Jun 29 08:14:08 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D41137B401; Sun, 29 Jun 2003 08:14:08 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4DE8743F85; Sun, 29 Jun 2003 08:14:07 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h5TFE6Xh011604; Sun, 29 Jun 2003 11:14:06 -0400 (EDT) Date: Sun, 29 Jun 2003 11:14:06 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Arjan van Leeuwen In-Reply-To: <200306291701.59204.avleeuwen@piwebs.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org cc: kde@freebsd.org cc: David Xu Subject: Re: libkse & konsole X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@freebsd.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jun 2003 15:14:08 -0000 On Sun, 29 Jun 2003, Arjan van Leeuwen wrote: > if (! (str_ptr=ttyname(tt)) ) { > str_ptr = ttynam; > abort(); > } > > This is where it is aborting. I'm not sure where to go from here. Apparently, > Konsole has difficulty chowning and chmodding the /dev/ttypx that it wants to > use. Can you debug the open(), chown(), and chmod() of the tty to see what happens (any errors?). Also, I think konsole forks(). There may be something we're (libkse) not doing to properly handle a fork from a multi-threaded process (or something konsole expects that isn't necessarily true). Can you run konsole so it doesn't fork? -- Dan Eischen