From owner-freebsd-gnome Fri Jan 31 14:37:12 2003 Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B231137B401 for ; Fri, 31 Jan 2003 14:37:09 -0800 (PST) Received: from creme-brulee.marcuscom.com (rdu57-17-158.nc.rr.com [66.57.17.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id E474543E4A for ; Fri, 31 Jan 2003 14:37:08 -0800 (PST) (envelope-from marcus@marcuscom.com) Received: from [192.168.1.4] (shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.12.6/8.12.6) with ESMTP id h0VMaWDZ053781; Fri, 31 Jan 2003 17:36:32 -0500 (EST) (envelope-from marcus@marcuscom.com) Subject: Re: patch-gst::cothreads.c -> COTHREAD_MAXTHREADS 8 didn't work for me From: Joe Marcus Clarke To: Franz Klammer Cc: FreeBSD GNOME Users In-Reply-To: <1044052594.48118.16.camel@ds9.webonaut.com> References: <1044047356.8610.2.camel@ds9.webonaut.com> <1044050271.46355.0.camel@shumai.marcuscom.com> <1044051089.8610.4.camel@ds9.webonaut.com> <1044051147.46355.13.camel@shumai.marcuscom.com> <1044051605.48118.1.camel@ds9.webonaut.com> <1044051435.46355.17.camel@shumai.marcuscom.com> <1044052594.48118.16.camel@ds9.webonaut.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-OCQJoJV6n73Dd78IcVG7" Organization: MarcusCom, Inc. Message-Id: <1044052624.46355.27.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 Date: 31 Jan 2003 17:37:05 -0500 X-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,IN_REP_TO,NOSPAM_INC,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT, REFERENCES,SPAM_PHRASE_01_02 version=2.43 Sender: owner-freebsd-gnome@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-OCQJoJV6n73Dd78IcVG7 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2003-01-31 at 17:36, Franz Klammer wrote: > Am Fr, 2003-01-31 um 23.17 schrieb Joe Marcus Clarke: > > On Fri, 2003-01-31 at 17:20, Franz Klammer wrote: > > > Am Fr, 2003-01-31 um 23.12 schrieb Joe Marcus Clarke: > > > > On Fri, 2003-01-31 at 17:11, Franz Klammer wrote: > > > > > Am Fr, 2003-01-31 um 22.57 schrieb Joe Marcus Clarke: > > > > > > On Fri, 2003-01-31 at 16:09, Franz Klammer wrote: > > > > > > > hi! > > > > > > >=20 > > > > > > > COTHREAD_MAXTHREADS 8 changed by gstreamer->patch-gst::cothre= ads.c=20 > > > > > > > didn't work for me. if i don't revert them to the original va= lue > > > > > > > and i try to make a thumbnail from an mpeg gst-thumbnail dies= with > > > > > > > this error-message: > > > > > > >=20 > > > > > > > GStreamer-WARNING **: cothread_create: attempt to=20 > > > > > > > create > COTHREAD_MAXTHREADS > > > > > >=20 > > > > > > If you remove this patch, do you then get the core dump about t= hread > > > > > > contexts? > > > > >=20 > > > > > YES: > > > > > Fatal error 'longjmp()ing between thread contexts is undefined by= POSIX > > > > > 1003.1' at line 72 in file /usr/src/lib/libc_r/uthread/uthread_jm= p.c > > > > > (errno =3D 22) > > > > > Abbruch (core dumped) > > > >=20 > > > > Where do you get the former error? I played with gst-thumbnail, an= d > > > > never got it. If you bump the threads up to 16, but keep the STACK= _SIZE > > > > at 1 MB, do both problems go away? > > > >=20 > > >=20 > > > exactly, yes. > >=20 > > Okay, just to be clear, if I change the patch to set max threads to 16 > > while keeping the stack size at 1 MB, you'll be happy? > >=20 >=20 > can't say how much. :-) >=20 > ok, seriously: yes. I'll fix it now. >=20 > a guess from someone who didn't really know much about longjumps and=20 > such things: i it possible that this maybe only occur on -CURRENT? No, actually this is a FreeBSD-specific thing. Take a look at /usr/src/lib/libc_r/uthread/pthread_private.h. Look for PTHREAD_STACK_INITIAL. That is the stack size of thread[0] or the main thread. That stack size cannot exceed 1 MB. However, you can certainly create a pthread, and increase its stack size up to whatever your max stack size is. Joe >=20 > franz >=20 > > Joe > >=20 > > >=20 > > > franz. > > >=20 > > > > Joe > > > >=20 --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-OCQJoJV6n73Dd78IcVG7 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQA+OvqQb2iPiv4Uz4cRAj83AJ90ZNIbYqmAkvB368eThfw4qgY5GQCfeNa0 gU8G/MBkHN2Fn7gTpzGOyxI= =7cR6 -----END PGP SIGNATURE----- --=-OCQJoJV6n73Dd78IcVG7-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-gnome" in the body of the message