Find the answer to your Linux question:
Results 1 to 2 of 2
How do i get pointer to thread's local storage or thread specific data while analyzing core dump for linux ? i use pthread_setspecific to store some data in the pthread's ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2012
    Posts
    1

    Thread specific data from linux core dump


    How do i get pointer to thread's local storage or thread specific data while analyzing core dump for linux ?

    i use pthread_setspecific to store some data in the pthread's local stoare.

    my multi threaded program on linux crashed, and i want to see what is stored in current running thread's local storage.

    If i get pointer to thread's local storage i can use key to get the data that is stored.

    Is there a command in gdb to get the pointer to thread's local storage?

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,752
    One presumes your kernel is a debuggable one? If not, then you have no hope of getting relevant info.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •