From owner-freebsd-questions Wed Oct 24 16: 1:48 2001 Delivered-To: freebsd-questions@freebsd.org Received: from tholian.securitydynamics.com (mail.rsasecurity.com [204.167.112.129]) by hub.freebsd.org (Postfix) with SMTP id 0A25637B401 for ; Wed, 24 Oct 2001 16:01:42 -0700 (PDT) Received: from sdtihq24.securitydynamics.com by tholian.securitydynamics.com via smtpd (for hub.FreeBSD.org [216.136.204.18]) with SMTP; 24 Oct 2001 22:58:12 UT Received: from ebola.securitydynamics.com (ebola.securid.com [192.168.7.4]) by sdtihq24.securid.com (Pro-8.9.3/Pro-8.9.3) with ESMTP id TAA28954 for ; Wed, 24 Oct 2001 19:01:40 -0400 (EDT) Received: from spirit.dynas.se (localhost [127.0.0.1]) by ebola.securitydynamics.com (8.9.3+Sun/8.9.1) with SMTP id TAA21222 for ; Wed, 24 Oct 2001 19:01:37 -0400 (EDT) Received: (qmail 8278 invoked from network); 24 Oct 2001 23:01:33 -0000 Received: from explorer.rsa.com (HELO mikko.rsa.com) (10.81.217.59) by spirit.dynas.se with SMTP; 24 Oct 2001 23:01:33 -0000 Received: (from mikko@localhost) by mikko.rsa.com (8.11.6/8.11.6) id f9ON1UU93787; Wed, 24 Oct 2001 16:01:30 -0700 (PDT) (envelope-from mikko) Date: Wed, 24 Oct 2001 16:01:30 -0700 (PDT) From: Mikko Tyolajarvi Message-Id: <200110242301.f9ON1UU93787@mikko.rsa.com> To: kmacy@netapp.com Cc: questions@freebsd.org Subject: Re: does longjmp not working using uthreads? Newsgroups: local.freebsd.questions References: X-Newsreader: NN version 6.5.6 (NOV) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In local.freebsd.questions you write: >Can one not use longjmp when using FreeBSD's uthreads? Yes, provided you call setjmp() and longjmp() in the same thread. It is not immediately obvious from your gdb output that you are doing this, and the errormessage would indicate you aren't :) >It's just trying to jump up the call stack a couple frames. The threads library seems to think it is an entirely different stack... >/etc/modules/sample.mod : can't open : Device not configured >Fatal error 'longjmp()ing between thread contexts is undefined by POSIX 1003.1' >at line ? in file /usr/src/lib/libc_r/uthread/uthread_jmp.c (errno = ?) [...] $.02, /Mikko -- Mikko Työläjärvi_______________________________________mikko@rsasecurity.com RSA Security To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message