Re: Ptrace segfault

2010-04-29 Thread Gunnar Hinriksson
2010/4/29 Gunnar Hinriksson : > 2010/4/29 Gunnar Hinriksson : >> 2010/4/29 Bob Bishop : >>> Hi, >>> >>> On 29 Apr 2010, at 22:37, Garrett Cooper wrote: >>> >>>> On Thu, Apr 29, 2010 at 12:06 PM, Gunnar Hinriksson >>>> wrote:

Re: Ptrace segfault

2010-04-29 Thread Gunnar Hinriksson
2010/4/29 Gunnar Hinriksson : > 2010/4/29 Bob Bishop : >> Hi, >> >> On 29 Apr 2010, at 22:37, Garrett Cooper wrote: >> >>> On Thu, Apr 29, 2010 at 12:06 PM, Gunnar Hinriksson >>> wrote: >>>> Hello >>>> >>>> Im hav

Re: Ptrace segfault

2010-04-29 Thread Gunnar Hinriksson
2010/4/29 Bob Bishop : > Hi, > > On 29 Apr 2010, at 22:37, Garrett Cooper wrote: > >> On Thu, Apr 29, 2010 at 12:06 PM, Gunnar Hinriksson >> wrote: >>> Hello >>> >>> Im having a little problem using ptrace on my system. >>> If

Ptrace segfault

2010-04-29 Thread Gunnar Hinriksson
Hello Im having a little problem using ptrace on my system. If I use ptrace to attach to another process the child process segfaults once I detach. For example using this simple program. #include #include #include #include #include int main(int argc, char *argv[]) { int pid = atoi(a