|
|
|
|||||
|
problem debugging child processes
Hello
I have a problem, debugging child-processes. This problem does ONLY occur, if the process is linked to libIceUtil and if I'm trying to attach the degugger to the child-process. Otherwise(attaching to parent-process using libIceUtil, attaching to child-process using libpthread, etc.) it's possible to attach to the process without problems. I'm using gdb 5.2, g++ 3.2.3 on a SuSe Linux with Kernel 2.4.20. Below is a simple testprogram to replicate the behaviour (hopefully.. ) and the output of the debugger.Has anyone experienced similar behaviour? Or is this a known problem with a known workaround? Or maybe I'm doing something wrong.. ?Thanx in advance for any help or suggestions. Gerald Code:
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <iostream>
using namespace std;
int main(int argc, char** argv) {
pid_t pid;
if ( (pid = fork()) <0) {
cerr << "Couldn't start programm." << endl;;
exit(-1);
}else if (pid != 0) {
cerr << "started Process " << pid << "." << endl;
exit(0);
}
sleep(120);
return 0;
}
Quote:
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Driving long running processes with Ice | stephan | Help Center | 1 | 02-10-2006 08:37 PM |
| Can a proxy be transfered from parent to child process? | richardma | Help Center | 1 | 12-22-2005 06:58 AM |
| Debugging Ice server or service | kovacm | Help Center | 4 | 11-28-2005 05:53 AM |
| Debugging in Python | msw10100 | Help Center | 6 | 09-09-2005 08:05 PM |
| Multiple Proxy access from different processes? | brian | Help Center | 3 | 12-23-2003 09:41 PM |