From owner-freebsd-threads@FreeBSD.ORG Tue Oct 9 16:31:42 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 5BF8E16A419 for ; Tue, 9 Oct 2007 16:31:42 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outJ.internet-mail-service.net (outJ.internet-mail-service.net [216.240.47.233]) by mx1.freebsd.org (Postfix) with ESMTP id DE4B513C45A for ; Tue, 9 Oct 2007 16:31:41 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Tue, 09 Oct 2007 09:31:41 -0700 X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id 7C6F812661D; Tue, 9 Oct 2007 09:31:40 -0700 (PDT) Message-ID: <470BACF5.40509@elischer.org> Date: Tue, 09 Oct 2007 09:31:49 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: Akshay Kawale References: <171691.66820.qm@web45006.mail.sp1.yahoo.com> In-Reply-To: <171691.66820.qm@web45006.mail.sp1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Tue, 09 Oct 2007 16:31:42 -0000 Akshay Kawale wrote: > I have an amd64 machine, but I'm using a generic FreeBSD kernel. > My host OS is Ubuntu i386 (not amd64), so I'm not sure what is exported > to the guest. > > My physical machine is a P4 however. > Would that make a difference? (Considering my kernel/libc is compiled > for a generic i386/i686). > is it an amd64 freebsd kernel or i386? > - Akshay > > ----- Original Message ---- > From: Julian Elischer > To: Kip Macy > Cc: Akshay Kawale ; freebsd-threads@freebsd.org > Sent: Monday, October 8, 2007 11:17:27 AM > Subject: Re: KSE does not appear to work when I run FreeBSD 6.2 on VMware > > Kip Macy wrote: > > 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. > > > He's not using libkse but writing his own concurrancy app by using the > primatives. > > My question is whether he is on amd64 or i386 > > > > > > -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" > >> > > _______________________________________________ > > 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" > > > > ------------------------------------------------------------------------ > Yahoo! oneSearch: Finally, mobile search that gives answers > , > not web links.