AIX dbx - attaching to a process that is crashing


 
Thread Tools Search this Thread
Top Forums Programming AIX dbx - attaching to a process that is crashing
# 1  
Old 02-17-2011
AIX dbx - attaching to a process that is crashing

Hey everyone,

I'm trying to attach to a process that is crashing so I can debug the source code. I've tried this:

dbx -a PID
stop at "file.cpp":line#

However, nothing ever breaks. The service crashes and restarts, but I never see it hitting the code. I've tried to use a core file, but I can't get one to be produced. I've tried:

dbx -a PID core

But the file is never produced in the current directory - don't know where else to look or what else to try. Any help would be appreciated!
# 2  
Old 02-17-2011
Was the executable built with debugging? If not it may not be able to break at a line.
# 3  
Old 02-17-2011
Interesting question - didn't think about that. I'll check now. Thanks

---------- Post updated at 12:30 PM ---------- Previous update was at 12:27 PM ----------

For what it's worth, when I do: stop at "file.cpp":line#, I don't get any messages like 'not compiled with -g'.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

AIX: two strange process

I check for top 10 cpu consumer ps auxww |head -10 USER PID %CPU %MEM SZ RSS TTY STAT STIME TIME COMMAND root 131076 23,6 0,0 448 448 - A 16:00:59 50:21 wait root 983070 21,9 0,0 448 448 - A 16:00:59 46:43 waitI try to kill them sudo... (0 Replies)
Discussion started by: Linusolaradm1
0 Replies

2. Programming

Cannot get dbx to work correctly with a running process

Hi everyone, I've been struggling with this for a few weeks now. I'm trying to debug a running process with dbx on an AIX box. The command I'm using is 'dbx -a <pid> core' There is a function I can perform in my application that crashes this process, but it does not show up as crashed in... (0 Replies)
Discussion started by: ctote
0 Replies

3. Programming

dbx - attach to process, break when crash

Hey everyone, I have a process that is crashing, and I'd like to have some way to see where it crashes. Is this possible? (2 Replies)
Discussion started by: ctote
2 Replies

4. AIX

Attaching HDS External storage to AIX Servers

Hi guys, I am newbie to AIX. We are planning to attach external HDS array to AIX servers where VCS in installed. Anyone know step by step procedure for attaching and detaching HDS array?. If yes, please post reply for the same. Thanks in advance guys. (5 Replies)
Discussion started by: prtaix
5 Replies

5. Shell Programming and Scripting

How to use dbx on AIX?

Hi, I ahd created my executable file from makefile on AIX. Now I want to debug my code using dbx. I typed: dbx help It goes into (dbx) prompt But afte that i do not know what to do to put breakpoints in my program and how to run step by step. Help me out ASAP. Thanks in... (0 Replies)
Discussion started by: Poonamol
0 Replies

6. AIX

Using dbx on AIX

Hi, We are porting a virtual machine application which emits native PowerPC instructions. The instructions are written to the data segment and are then executed, similar to the JIT / hot spot technology used in the Java VM. The problem is that the AIX debugger (dbx) will not show me stack... (3 Replies)
Discussion started by: nrgiii
3 Replies

7. AIX

Process crashing on AIX due to memory Leak

Hi All, I have a process running on my AIX 5.3 server box. The process runs fine for 5-6days but then crashes. The log file shows malloc failure and the svmon (Virtual memory size), ps -lef (SZ value) are also gradually increasing. But unfortunately MALLOCDEBUG and any other memory debugging... (3 Replies)
Discussion started by: SBatra
3 Replies

8. AIX

need help on dbx commands? AIX

Hi .. I have a core_dump in the server... AIX 5.3 . It was created by on proc executable called "ProcessIse" . from the log report i found the source file name "ProcessIseInterface.C" which created the core file. the core file name is : "core" under /iprs/bin directory. can you help me... (1 Reply)
Discussion started by: vparunkumar
1 Replies

9. Programming

memory functions crashing in AIX

Hi All, I'm facing the following issue with my shared libraries in 64 bit AIX. Memory related calls such as memset, memcpy, malloc etc are failing miserably. there is something wrong with stack/memory which i can't guess. i've used the following flags to build my libraray: ld -G... (0 Replies)
Discussion started by: abhinav05252
0 Replies

10. Programming

AIX DBX Error

I am trying to debug a program, which had generated a core dump. When I issue 'where' command, it list me filename along with line number, which in case is not at all there in the .c file. Example: (dbx) where func1(var1= (...), var2 = 86, var3 = 0,var4 = 0) , line 87 in "prog.f" main(),... (1 Reply)
Discussion started by: S.P.Prasad
1 Replies
Login or Register to Ask a Question