unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: guile-devel@gnu.org
Subject: Re: TLS support on NetBSD
Date: Thu, 29 Oct 2009 23:24:22 +0100	[thread overview]
Message-ID: <871vklon3d.fsf@gnu.org> (raw)
In-Reply-To: C4E0817A-8744-4242-8471-46D9F08455AD@raeburn.org

Hey,

Ken Raeburn <raeburn@raeburn.org> writes:

> I just took a little bit of a look... on my NetBSD 5.0.1 x86 system,
> the __thread support simply uses the %gs segment register,

That’s weird because it should only do such things with the
‘initial-exec’ or ‘local-exec’ thread models; otherwise, it relies on
support from the C library at run-time, something called
‘__tls_get addr ()’ in glibc.

> but the kernel or library or whatever doesn't seem to have set it up
> properly.  So it compiles and links just fine for me, but crashes when
> running.

Hmm, not good.

> I think the autoconf test is thus going to have to run a test program
> to see if __thread is supported, which means it won't be friendly to
> cross-compilation setups.  (I still don't have all the dependencies
> built for NetBSD, so no working patch.)  Or, we could hard-code
> knowledge about systems where compiling and linking work but execution
> fails; that's generally frowned upon....

Yeah, that doesn’t sound very good.

Thanks,
Ludo’.





  reply	other threads:[~2009-10-29 22:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-23  8:36 TLS support on NetBSD Ludovic Courtès
2009-10-23 23:40 ` Greg Troxel
2009-10-29 19:18   ` Ken Raeburn
2009-10-29 22:24     ` Ludovic Courtès [this message]
2009-10-29 22:53       ` Ken Raeburn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871vklon3d.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).