hmmm SuSE Pro 9.1 Box says NPTL but the lib says linuxthreads....???? ========================================================================= linux:/lib # /lib/libc.so.6 GNU C Library stable release version 2.3.3 (20040405), by Roland McGrath et al. Copyright (C) 2004 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. Configured for i686-suse-linux. Compiled by GNU CC version 3.3.3 (SuSE Linux). Compiled on a Linux 2.6.4 system on 2004-04-05. Available extensions: GNU libio by Per Bothner crypt add-on version 2.1 by Michael Glad and others linuxthreads-0.10 by Xavier Leroy GNU Libidn by Simon Josefsson NoVersion patch for broken glibc 2.0 binaries BIND-8.2.3-T5B libthread_db work sponsored by Alpha Processor Inc NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk Thread-local storage support included. Report bugs using the `glibcbug' script to . linux:/lib # -- Thank you, Matt Duval Sr. Network Engineer HealthTrans www.healthtrans.com "Transforming Healthcare, One Transaction At A Time" (720) 493-8252 6061 South Willow Drive Suite 125 Greenwood Village, CO 80111
Matt T. Duval writes:
hmmm SuSE Pro 9.1 Box says NPTL but the lib says linuxthreads....????
I think NPTL lives in libpthreads but the old linuxthreads is still supported by libc for backward compatibility (activated with an environment variable, see 9.1 release notes). -Ti
objdump -x /lib/libpthread.so.0 | grep -i nptl returns nothing. Even looking at a non grep'ed dump i see no nptl info. So how else can I figure out if indeed NPTL is enabled. On Thu, 2004-08-12 at 10:15, Ti Kan wrote:
Matt T. Duval writes:
hmmm SuSE Pro 9.1 Box says NPTL but the lib says linuxthreads....????
I think NPTL lives in libpthreads but the old linuxthreads is still supported by libc for backward compatibility (activated with an environment variable, see 9.1 release notes).
-Ti -- Thank you,
Matt Duval Sr. Network Engineer HealthTrans www.healthtrans.com "Transforming Healthcare, One Transaction At A Time" (720) 493-8252 6061 South Willow Drive Suite 125 Greenwood Village, CO 80111
Matt T. Duval writes:
objdump -x /lib/libpthread.so.0 | grep -i nptl
returns nothing. Even looking at a non grep'ed dump i see no nptl info.
So how else can I figure out if indeed NPTL is enabled.
None of the symbols are going to have the string "nptl" in it, so the objdump won't show it. If an executable is linked with NPTL and has multiple threads running, it will show up only as one process in a "ps" listing, but in /proc/pid you will find the individual threads. This is in contrast with a linuxthreads app, which will show up as multiple processes with "ps". A good example is the mozilla that comes with 9.1. You will find only one mozilla-bin process instance per invocation, but in fact it has multiple threads. Prior to 9.1, a single mozilla instance used to show up with multiple "ps" entries. -Ti
Matt T. Duval writes:
objdump -x /lib/libpthread.so.0 | grep -i nptl
returns nothing. Even looking at a non grep'ed dump i see no nptl info.
So how else can I figure out if indeed NPTL is enabled.
None of the symbols are going to have the string "nptl" in it, so the objdump won't show it.
this is very different behaviour from my gentoo box with nptl on it.. $ /lib/libc.so.6 GNU C Library 20040808 release version 2.3.4, by Roland McGrath et al. Copyright (C) 2004 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 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6). Compiled on a Linux 2.6.7 system on 2004-08-12. Available extensions: GNU libio by Per Bothner crypt add-on version 2.1 by Michael Glad and others Native POSIX Threads Library by Ulrich Drepper et al BIND-8.2.3-T5B NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk Thread-local storage support included. For bug reporting instructions, please see: http://www.gnu.org/software/libc/bugs.html. granted, this is a newer version of glibc (just a couple days old), but the nptl line was there when i first installed gentoo on this box in february. also, running an objdump on /lib/libpthread.so.0 like matt did above dumped 20 lines of nptl stuff.
If an executable is linked with NPTL and has multiple threads running, it will show up only as one process in a "ps" listing, but in /proc/pid you will find the individual threads. This is in contrast with a linuxthreads app, which will show up as multiple processes with "ps".
this part i do see on my nptl-enabled box. -- trey
participants (3)
-
Matt T. Duval
-
ti@amb.org
-
Trey Gruel