Go Back   The UNIX and Linux Forums > Operating Systems > Linux


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-01-2012
Registered User
 
Join Date: Jun 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Sponsored Links
    #2  
Old 06-04-2012
...@...
 
Join Date: Feb 2004
Location: NM
Posts: 9,657
Thanks: 164
Thanked 646 Times in 623 Posts
Do you see:

Code:
[Thread debugging using libthread_db enabled]

when you start debugging?

What does
Code:
thread apply all bt

or
Code:
info threads

show when you are in gdb?

And. Which Linux?
Sponsored Links
    #3  
Old 06-05-2012
Registered User
 
Join Date: Jun 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
I dont see :
[Thread debugging using libthread_db enabled]

Stack is corrupted, So
thread apply all bt
will provide some junk values.

info threads

will sometimes provide the list of threads.
Sponsored Links
Closed Thread

Tags
coredump, debugging, gdb, linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Thread Dump ram5019 Shell Programming and Scripting 5 01-02-2012 11:02 PM
How to open the core dump file in linux? vanitham Emergency UNIX and Linux Support !! Help Me!! 7 12-08-2011 02:10 AM
Thread prog (core dump) kumars Programming 1 10-01-2008 04:05 AM
about core dump zhaohaizhou Programming 1 09-15-2004 06:30 AM
help, what is the difference between core dump and panic dump? aileen UNIX for Dummies Questions & Answers 1 06-11-2001 08:08 PM



All times are GMT -4. The time now is 08:19 PM.