Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Oct 2002 15:45:20 +0300
From:      Peter Pentchev <roam@ringlet.net>
To:        Linus Kendall <linus@angliaab.se>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: PThreads problem
Message-ID:  <20021021124520.GS389@straylight.oblivion.bg>
In-Reply-To: <1035200159.24315.13.camel@bilbo>
References:  <1035200159.24315.13.camel@bilbo>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Mon, Oct 21, 2002 at 01:35:59PM +0200, Linus Kendall wrote:
> Hi,
> 
> I'm trying to port a heavily threaded application from Linux (Debian
> 3.0, 2.4.19) to
> FreeBSD (4.6-RELEASE). The program compiles successfully using gcc with
> -pthreads. But, when I try to run the application I get the following
> error after a while (after spawning 11 threads):
> 
> Fatal error 'siglongjmp()ing between thread contexts is undefined by
> POSIX 1003.1' at line ? in file
> /usr/src/lib/libc_r/uthread/uthread_jmp.c (errno = ?)
> Abort trap - core dumped
> 
> It always crashes at the same point. Under Linux it works perfectly
> fine.
> I also tried to compile with linuxthreads only to get a segfault
> directly when the program tries to spawn the first thread. 
> 
> GCC version on Linux: 2.95.4 20011002
> GCC version on FreeBSD: 2.95.3 20010315
> 
> GCC/G++ command-line: g++ -g -Wall -I. `curl-config --cflags` 
> -fsjlj-exceptions -D_THREAD_SAFE -D_REENTRANT -pthread `curl-config
> --libs` 

Just for the record: what exactly do 'curl-config --cflags' and
'curl-config --libs' output?

G'luck,
Peter

-- 
Peter Pentchev	roam@ringlet.net	roam@FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
If I were you, who would be reading this sentence?

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (FreeBSD)

iD8DBQE9s/bf7Ri2jRYZRVMRAoOJAJ9r+fC1VdDvHrYq2GEa8jgO29Y5MwCfaR+f
SYL+nnL8YmXEr+7jqinCAFA=
=B/c8
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021021124520.GS389>