From owner-freebsd-threads@FreeBSD.ORG Sun Oct 7 02:43:22 2007 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 931EB16A417 for ; Sun, 7 Oct 2007 02:43:22 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.176]) by mx1.freebsd.org (Postfix) with ESMTP id 5D7D113C448 for ; Sun, 7 Oct 2007 02:43:21 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so1181175waf for ; Sat, 06 Oct 2007 19:43:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=JPq/sPxHacPcVTCxNSswN1IA3+xEggFyWQdOQbqpuCE=; b=DUnb75mIc/B2I1k+0YExCexBdrDSy4Q826LnW8YskqplZi6S6aLDtsSJDgX28AARS31mwrBJsJA4pEIDGKfX2jBuOVLNJ9JFtIvO3k9hVnCr7tLts8uU0oytbUGIWHn6oGp/PHIpsdAZ61RP7oEu95CCkk1P9u0KUaWd3CxSeZM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TdI4ne0mgQMVXnB5GUMsXKp9YCxgYx9EePAm9fwDA/xoN5sbfswTS23AW/D2hG5xbUz/fQNfDWYwG86fnKkcbps1VBuuQ9RVSqwAB5JhaZs0pICtYRHot5BlnITSGkqHYjF3+RVtQEFMUxpPJum7gZjPiZwgIw3M50ZEfdUOJ9s= Received: by 10.115.111.1 with SMTP id o1mr2561437wam.1191723549966; Sat, 06 Oct 2007 19:19:09 -0700 (PDT) Received: by 10.114.13.15 with HTTP; Sat, 6 Oct 2007 19:19:09 -0700 (PDT) Message-ID: Date: Sat, 6 Oct 2007 19:19:09 -0700 From: "Kip Macy" To: "Akshay Kawale" In-Reply-To: <376995.12194.qm@web45002.mail.sp1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <376995.12194.qm@web45002.mail.sp1.yahoo.com> Cc: freebsd-threads@freebsd.org Subject: Re: KSE does not appear to work when I run FreeBSD 6.2 on VMware X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Oct 2007 02:43:22 -0000 I can't speak to your problem directly. Two (somewhat) relevant comments: - For security reasons procfs is not mounted by default. - KSE is being supplanted by libthr. -Kip On 10/6/07, Akshay Kawale wrote: > Hi, > > I'm writing a small thread library based on KSE. > I've got some initial code ready that performs an upcall when I create a new KSE. > > However, this code only works on a physical machine. When I run FreeBSD on VMware, my program does not appear to perform the upcall. I know that it's not upcalling because I intentionally seg fault in my upcall function. (I also put a gdb breakpoint at the upcall function, which does not hit). > > I've tried this on a stock 6.2 RELEASE Kernel (Physical Machine) and on 6.2 RELEASE and 6.2 RELEASE-p8 (VM). > > My /proc does not appear to be set up, so I can't use 'truss' to figure out if the KSE Syscalls are actually being called. > > truss: cannot open /proc/curproc/mem: No such file or directory > truss: cannot open1 /proc/1044/mem: No such file or directory > > I wrote a small threaded program using pthreads, and that appears to work ok on VMware. > > Does anyone have an idea what could be wrong? > Any suggestions to help me debug? > > Thanks. > > - Akshay > > > > > > ____________________________________________________________________________________ > Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 > > > _______________________________________________ > freebsd-threads@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org" >