Skip site navigation (1)Skip section navigation (2)
Date:      31 Jan 2003 17:37:05 -0500
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Franz Klammer <klammer@webonaut.com>
Cc:        FreeBSD GNOME Users <gnome@freebsd.org>
Subject:   Re: patch-gst::cothreads.c -> COTHREAD_MAXTHREADS 8 didn't work for me
Message-ID:  <1044052624.46355.27.camel@shumai.marcuscom.com>
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>

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

--=-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




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