Date: Wed, 24 Oct 2001 16:01:30 -0700 (PDT) From: Mikko Tyolajarvi <mikko@dynas.se> To: kmacy@netapp.com Cc: questions@freebsd.org Subject: Re: does longjmp not working using uthreads? Message-ID: <200110242301.f9ON1UU93787@mikko.rsa.com> References: <Pine.GSO.4.10.10110241358270.12319-100000@cranford-fe.eng.netapp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110242301.f9ON1UU93787>