Sponsored Content
Operating Systems Solaris analyse core file using pmap and pstack Post 302429259 by KiranBangalore on Monday 14th of June 2010 12:20:01 AM
Old 06-14-2010
Thanks for the reply.
They have given core file and binary + so files.

By using dbx I got the following output.
Code:
(dbx) threads
       t@74  a l@74   ?()   LWP suspended in  __pollsys()
     t@75  a l@75   ?()   LWP suspended in  __pollsys()
o   t@145  a l@145   NdbThread_set_shm_sigmask()   signal SIGABRT in  __lwp_kill()
    t@152  a l@152   ?()   sleep on 0xae3b88  in  __lwp_park()



(dbx) thread t@145
t@145 (l@145) stopped in __lwp_kill at 0xfeb4c5f8
0xfeb4c5f8: __lwp_kill+0x0008:  bcc,a,pt  %icc,__lwp_kill+0x18  ! 0xfeb4c608
(dbx) where
current thread: t@145
=>[1] __lwp_kill(0x0, 0x6, 0xf87a4444, 0xeeb60, 0xfebb33d8, 0x0), at 0xfeb4c5f8
  [2] raise(0x6, 0x0, 0xfebb5258, 0xfed30b00, 0xffffffff, 0x6), at 0xfeae5a5c
  [3] abort(0x0, 0x1, 0xf87a4444, 0xeeb60, 0xfebb33d8, 0x0), at 0xfeac194c
  [4] free(0x129a030, 0x129b2d0, 0x0, 0x40, 0x1, 0x40000000), at 0xfed30b00
  [5] NdbThread_Destroy(0xcfe080, 0xfda97e6c, 0xdcec, 0xdcec, 0xdcec, 0xdcec), at 0xf87a4444
  [6] TransporterRegistry::stop_clients(0xcfe068, 0x1, 0x1109d7c, 0xffffffff, 0x1, 0x1109d6c), at 0xf87dac70
  [7] TransporterFacade::threadMainSend(0x10fc078, 0x1, 0xdcec, 0xdcec, 0xdcec, 0xdcec), at 0xf87b5e00
  [8] runSendRequest_C(0x10fc078, 0xfda97f90, 0x0, 0xfc6bfa00, 0xfebb03a8, 0x1), at 0xf87b5d08
  [9] 0xf87a4260(0xcfe680, 0x0, 0x0, 0x0, 0xf87b5d04, 0x1), at 0xf87a4260
(dbx)

I think was it using some third party libraries. How to find the function calls, return value etc.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Core Dump Analysis Using PStack and PMAP

Hello, I'm new to the group and this is my first post. I'm hoping someone can help me out. I have a core dump that I need to analyze from a Unix box and I've never done this sort of thing before. I was told to run a pmap and pstack on the core file which provided two different output files. ... (3 Replies)
Discussion started by: kimblebee
3 Replies

2. UNIX for Advanced & Expert Users

Using GDB to analyse different CORE dumps

Hi, Can we modify the GDB source code so as to analyze core dumps from different targets? From my analysis, I think we need to build our section table statically for each target. i.e., including the various address boundaries in build_section_table() function. If this is the case, then the GDB... (2 Replies)
Discussion started by: nsdeeps
2 Replies

3. Shell Programming and Scripting

script to loop all process ids and take pmap

Hi all, I need a script that will loop around all the current processes and take a pmap -x <process id> and output each pmap to a separate file. Would anyone have a quick command to do this? (2 Replies)
Discussion started by: borderblaster
2 Replies

4. Red Hat

pmap -d ldap-process-id

Hi All, Is the command above dangerous to run on the ldap environment? Thanks for any comments you may add. (1 Reply)
Discussion started by: itik
1 Replies

5. UNIX for Advanced & Expert Users

analyse core file using pmap and pstack

Dear All, I am new to this forum. This is my first. I am facing customer issue. Customer has got core file while running the server. He had sent core file and details from pstack, pmap and pldd commands. I have to debug this application, please help me to fix this issue. I am using sparc... (1 Reply)
Discussion started by: KiranBangalore
1 Replies

6. Solaris

RSS pmap and prstat

Hi, I have some question about memory in Solaris. How it's possible that prstat -a show me that some process using 230M RSS and when I'm using pmap -x show me that this same process using only 90M RSS ? (0 Replies)
Discussion started by: deivo
0 Replies

7. Solaris

loop for pmap -x

I would to create a command /script where I want lauch pmap -x pid for each procces which is launched on server , and I don't know how to write a loop where it would be included . (2 Replies)
Discussion started by: kvok
2 Replies

8. Solaris

pstack file analysis

Hi ... Can you please share how to analyse pstack file and various options for core dump analysis (3 Replies)
Discussion started by: anand87
3 Replies

9. UNIX for Dummies Questions & Answers

Analyse this fdisk -l

Hi, Someone please analyse the following o/p of fdisk -l and tell me what it means for /dev/sda, /dev/sdb, /dev/sdc .... Disk /dev/sda: 53.6 GB, 53687091200 bytes 255 heads, 63 sectors/track, 6527 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start ... (5 Replies)
Discussion started by: stunn3r
5 Replies

10. HP-UX

How to analyse the syslog?

Hi All, When can we see these messages in the syslog. We have service guard cluster software installed on hpux 11iv3 servers. We were able to see the below error so many times in our syslog messages cmdisklockd: Unable to convert device to I/O tree node: I/O tree node does not exist. ... (2 Replies)
Discussion started by: Sachin1987
2 Replies
PSTACK(1)						     Linux Programmer's Manual							 PSTACK(1)

NAME
pstack - print a stack trace of running processes SYNOPSIS
pstack pid [...] DESCRIPTION
pstack attaches to the active processes named by the pids on the command line, and prints out an execution stack trace, including a hint at what the function arguments are. If symbols exist in the binary (usually the case unless you have run strip(1)), then symbolic addresses are printed as well. If the process is part of a thread group, then pstack will print out a stack trace for each of the threads in the group. RESTRICTIONS
pstack currently works only on Linux, only on an x86 machine running 32 bit ELF binaries (64 bit not supported). Also, for symbolic infor- mation, you need to use a GNU compiler to generate your program, and you can't strip symbols from the binaries. For thread information to be dumped, you have to use the debug-aware version of the LinuxThreads libpthread.so library. (To check, run nm(1) on your pthreads library, and make sure that the symbol "__pthread_threads_debug" is defined.) Threads are not supported with the newer NPTL libpthread.so library. SEE ALSO
nm(1), ptrace(2) AUTHORS
Ross Thompson <ross@whatsis.com> Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> Red Hat Linux Feb 25 2002 PSTACK(1)
All times are GMT -4. The time now is 07:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy