Solved

how to check if I Thread safe glibc or Non-Thread safe glibc Linux

Posted on 2012-12-20
2
539 Views
Last Modified: 2013-01-25
Hi,

I'm trying to a debugger but I have to first determine if the glibc is TS or non-TS:
+---------------+-----------+---------------------+-----------------------------+-------------+----------+
| Linux         | x86, 32   | glibc >= 2.3        | dbg-4.6.4-Linux.tar.gz      | x86         |          |
| Linux         | x86, 64   | glibc >= 2.3        | dbg-4.6.4-Linux.tar.gz      | x86_64      | 6        |
| Linux         | x86, 32   | TS glibc >= 2.3     | dbg-4.6.4-Linux.tar.gz      | x86_TS      |          |
| Linux         | x86, 64   | TS glibc >= 2.3     | dbg-4.6.4-Linux.tar.gz      | x86_64_TS  

What's the command for this?

Thanks,
Victor
0
Comment
Question by:Victor Kimura
2 Comments
 
LVL 1

Accepted Solution

by:
odintsov earned 250 total points
ID: 38721008
Hello, Victor!

As I knew, glibc can't be TS or non TS. glibc is low level C library did not familar with thread synchronization.  Glibc only provides ability to create threaded appications - mutex, fork, IPC and more else.

I think that is about application and u must select debugger for application type you needed (TS or non-TS).
0
 
LVL 34

Assisted Solution

by:Duncan Roe
Duncan Roe earned 250 total points
ID: 38733850
Do you want to know whether your glibc supports native threads? If it does, it will support Thread Local Storage (TLS). The command to find this out is the library name itself e.g.
12:45:21$ /lib/libc.so.6
GNU C Library stable release version 2.13, by Roland McGrath et al.
Copyright (C) 2011 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.5.2.
Compiled on a Linux 2.6.37 system on 2011-03-24.
Available extensions:
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        Native POSIX Threads Library by Ulrich Drepper et al
        BIND-8.2.3-T5B
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
12:45:51$ 

Open in new window

Look for the line Native POSIX Threads Library by Ulrich Drepper et al. Older libraries had something called Linux Thread Library.
IIRC, 2.3.3 had NPTL but 2.3.2 did not.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now