From owner-freebsd-threads@FreeBSD.ORG Tue Oct 9 09:39:24 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 EAA0116A417 for ; Tue, 9 Oct 2007 09:39:24 +0000 (UTC) (envelope-from freebsd_noob@yahoo.com) Received: from web45006.mail.sp1.yahoo.com (web45006.mail.sp1.yahoo.com [68.180.197.93]) by mx1.freebsd.org (Postfix) with SMTP id D3D4B13C4B2 for ; Tue, 9 Oct 2007 09:39:24 +0000 (UTC) (envelope-from freebsd_noob@yahoo.com) Received: (qmail 68647 invoked by uid 60001); 9 Oct 2007 09:12:43 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Message-ID; b=0bjWZkmka0+q0IHOwunEa7bpZ9Gbbq6EWDGwFWmhsu+t+zQ/pPptMK7dAt8WPnJ33/+/TvPIjLVUdQxR5ennjfxUqqHvIzaQpPlUhf06z8uQ4JYy6Q1OcpQCS4xtDcuJBDYtV/p1u1cKR6b++DpkH1FBaPSyH5663Ko5zUuGUcM=; X-YMail-OSG: TxWkntoVM1mUX3dI9gsCMagc95KLuY.8FgsxXvPWnJQ76HaDZm6Ygfj1FGSo1uEq593CMALmqzK7E_SN.aU4.pyJVuSua0neeB5e Received: from [69.147.84.253] by web45006.mail.sp1.yahoo.com via HTTP; Tue, 09 Oct 2007 02:12:42 PDT X-Mailer: YahooMailRC/651.50 YahooMailWebService/0.7.134 Date: Tue, 9 Oct 2007 02:12:42 -0700 (PDT) From: Akshay Kawale To: Julian Elischer , Kip Macy MIME-Version: 1.0 Message-ID: <171691.66820.qm@web45006.mail.sp1.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 09:39:25 -0000 I have an amd64 machine, but I'm using a generic FreeBSD kernel.=0AMy host = OS is Ubuntu i386 (not amd64), so I'm not sure what is exported to the gues= t.=0A=0AMy physical machine is a P4 however.=0AWould that make a difference= ? (Considering my kernel/libc is compiled for a generic i386/i686).=0A=0A- = Akshay=0A=0A----- Original Message ----=0AFrom: Julian Elischer =0ATo: Kip Macy =0ACc: Akshay Kawale ; freebsd-threads@freebsd.org=0ASent: Monday, October 8, 20= 07 11:17:27 AM=0ASubject: Re: KSE does not appear to work when I run FreeBS= D 6.2 on VMware=0A=0AKip Macy wrote:=0A> I can't speak to your problem dire= ctly.=0A> =0A> Two (somewhat) relevant comments:=0A> =0A> - For security re= asons procfs is not mounted by default.=0A> - KSE is being supplanted by li= bthr.=0A=0A=0AHe's not using libkse but writing his own concurrancy app by = using the =0Aprimatives.=0A=0AMy question is whether he is on amd64 or i38= 6=0A=0A=0A> =0A> -Kip=0A> =0A> =0A> On 10/6/07, Akshay Kawale wrote:=0A>> Hi,=0A>>=0A>> I'm writing a small thread library ba= sed on KSE.=0A>> I've got some initial code ready that performs an upcall w= hen I create a new KSE.=0A>>=0A>> However, this code only works on a physic= al machine. When I run FreeBSD on VMware, my program does not appear to per= form 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 fu= nction, which does not hit).=0A>>=0A>> I've tried this on a stock 6.2 RELEA= SE Kernel (Physical Machine) and on 6.2 RELEASE and 6.2 RELEASE-p8 (VM).=0A= >>=0A>> My /proc does not appear to be set up, so I can't use 'truss' to fi= gure out if the KSE Syscalls are actually being called.=0A>>=0A>> truss: ca= nnot open /proc/curproc/mem: No such file or directory=0A>> truss: cannot o= pen1 /proc/1044/mem: No such file or directory=0A>>=0A>> I wrote a small th= readed program using pthreads, and that appears to work ok on VMware.=0A>>= =0A>> Does anyone have an idea what could be wrong?=0A>> Any suggestions to= help me debug?=0A>>=0A>> Thanks.=0A>>=0A>> - Akshay=0A>>=0A>>=0A>>=0A>>=0A= >>=0A>> _____________________________________________________________= _______________________=0A>> Shape Yahoo! in your own image. Join our Netw= ork Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_in= vite.asp?a=3D7=0A>>=0A>>=0A>> _____________________________________________= __=0A>> freebsd-threads@freebsd.org mailing list=0A>> http://lists.freebsd.= org/mailman/listinfo/freebsd-threads=0A>> To unsubscribe, send any mail to = "freebsd-threads-unsubscribe@freebsd.org"=0A>>=0A> ________________________= _______________________=0A> freebsd-threads@freebsd.org mailing list=0A> ht= tp://lists.freebsd.org/mailman/listinfo/freebsd-threads=0A> To unsubscribe,= send any mail to "freebsd-threads-unsubscribe@freebsd.org"=0A=0A=0A=0A=0A= =0A=0A=0A=0A _________________________________________________________= ___________________________=0AShape Yahoo! in your own image. Join our Net= work Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_i= nvite.asp?a=3D7 =0A=0A