From owner-freebsd-hackers Mon Oct 21 5:46:20 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F79B37B401 for ; Mon, 21 Oct 2002 05:46:07 -0700 (PDT) Received: from straylight.ringlet.net (office.sbnd.net [217.75.140.130]) by mx1.FreeBSD.org (Postfix) with SMTP id 2F47943E42 for ; Mon, 21 Oct 2002 05:45:49 -0700 (PDT) (envelope-from roam@ringlet.net) Received: (qmail 23177 invoked by uid 1000); 21 Oct 2002 12:45:20 -0000 Date: Mon, 21 Oct 2002 15:45:20 +0300 From: Peter Pentchev To: Linus Kendall Cc: freebsd-hackers@freebsd.org Subject: Re: PThreads problem Message-ID: <20021021124520.GS389@straylight.oblivion.bg> Mail-Followup-To: Linus Kendall , freebsd-hackers@freebsd.org References: <1035200159.24315.13.camel@bilbo> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SavPGzlo48F1Gxyz" Content-Disposition: inline In-Reply-To: <1035200159.24315.13.camel@bilbo> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --SavPGzlo48F1Gxyz Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 21, 2002 at 01:35:59PM +0200, Linus Kendall wrote: > Hi, >=20 > 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): >=20 > 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 =3D ?) > Abort trap - core dumped >=20 > 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.=20 >=20 > GCC version on Linux: 2.95.4 20011002 > GCC version on FreeBSD: 2.95.3 20010315 >=20 > GCC/G++ command-line: g++ -g -Wall -I. `curl-config --cflags`=20 > -fsjlj-exceptions -D_THREAD_SAFE -D_REENTRANT -pthread `curl-config > --libs`=20 Just for the record: what exactly do 'curl-config --cflags' and 'curl-config --libs' output? G'luck, Peter --=20 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? --SavPGzlo48F1Gxyz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE9s/bf7Ri2jRYZRVMRAoOJAJ9r+fC1VdDvHrYq2GEa8jgO29Y5MwCfaR+f SYL+nnL8YmXEr+7jqinCAFA= =B/c8 -----END PGP SIGNATURE----- --SavPGzlo48F1Gxyz-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message