On 8/20/07, Calvin Wong <[EMAIL PROTECTED]> wrote:
> The more I look at it, it might be an issue with linux threads.
> I am assuming kernel 2.6 uses NPTL as oppose to linux threads.
> The segmentation faults always happens whenever I tried to perform
> a mutex lock on the ruby interpreter thread.

That seems reasonable.  According the following article, LinuxThreads
has many limitations when compared to NPTL, and it doesn't really
follow the POSIX spec in terms of signal handling.

  http://www-128.ibm.com/developerworks/linux/library/l-threading.html

> Just to be sure, can you display your library versions with the following
> command:
>
> % /lib/libc.so.6

$ uname -pv
#1 SMP Tue Jul 10 06:39:17 EDT 2007 x86_64

$ getconf GNU_LIBPTHREAD_VERSION
NPTL 2.5

$ /lib/libc.so.6
GNU C Library stable release version 2.5, by Roland McGrath et al.
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.1.1 20061011 (Red Hat 4.1.1-30).
Compiled on a Linux 2.6.9 system on 2007-03-14.
Available extensions:
        The C stubs add-on version 2.1.2.
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        GNU libio by Per Bothner
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
        Native POSIX Threads Library by Ulrich Drepper et al
        BIND-8.2.3-T5B
        RT using linux kernel aio
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.

## my 32-bit machine

$ uname -vm
#2 SMP Thu Jun 7 20:19:32 UTC 2007 i686

$ getconf GNU_LIBPTHREAD_VERSION
NPTL 2.5

$ /lib/libc.so.6
GNU C Library stable release version 2.5, by Roland McGrath et al.
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.1.2 (Ubuntu 4.1.2-0ubuntu4).
Compiled on a Linux >>2.6.15.7<< system on 2007-04-04.
Available extensions:
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        GNU libio by Per Bothner
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
        Native POSIX Threads Library by Ulrich Drepper et al
        BIND-8.2.3-T5B
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.

Reply via email to