Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Sep 2008 19:11:58 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Jeremy Chadwick <koitsu@freebsd.org>
Cc:        Daniel Eischen <deischen@freebsd.org>, freebsd-hackers@freebsd.org, Barry Andrews <titanandrews@gmail.com>
Subject:   Re: loading multi threaded library into executable enabled for single thread
Message-ID:  <20080912161158.GL39652@deviant.kiev.zoral.com.ua>
In-Reply-To: <20080912160900.GC60094@icarus.home.lan>
References:  <eda4c18b0809111206t6438f87dmb8fab0db939c9980@mail.gmail.com> <Pine.GSO.4.64.0809111620340.13959@sea.ntplx.net> <48CA555A.4050104@gmail.com> <20080912131045.GA56923@icarus.home.lan> <eda4c18b0809120626u48fbe5e2pdf7147d71d1f8def@mail.gmail.com> <20080912135110.GA57637@icarus.home.lan> <48CA8402.5040207@gmail.com> <20080912154520.GA60094@icarus.home.lan> <eda4c18b0809120855s8867995m7834d26fe79866b1@mail.gmail.com> <20080912160900.GC60094@icarus.home.lan>

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

--RWntzN4uhMukjMHt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Sep 12, 2008 at 09:09:00AM -0700, Jeremy Chadwick wrote:
> On Fri, Sep 12, 2008 at 11:55:01AM -0400, Barry Andrews wrote:
> > Yes, the exe is tclsh. I understand that linking tclsh with libpthread =
is
> > what would work. However this is very impractical. A user of my library
> > shouldn't have to rebuild their tclsh to match my library specs. Another
> > option would be to ship tclsh with my lib, but that also is a little we=
ird.
> > It seems like the only somewhat practical option I have is to use
> > LD_PRELOAD, which is also weird but better than nothing.
>=20
> This really isn't a "FreeBSD problem", as the same sort of issue plagues
> other operating systems.  When it comes to threading, you want
> *everything* threaded as much as possible -- mix-matching usually does
> not work.  The only OS I have seen where that kind of environment works
> reliably is Solaris.  I still feel threading is "too new" of a

Yeah, they merged libpthread and libc some time ago, AFAIR :).

--RWntzN4uhMukjMHt
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEARECAAYFAkjKlM4ACgkQC3+MBN1Mb4iT4wCeOJBDDQx5enlv0rdg3pMw3Xyq
Q6AAn0J3j1/pjGpALafRS92/W5E4YvUX
=0s+k
-----END PGP SIGNATURE-----

--RWntzN4uhMukjMHt--



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