Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-20-2011, 05:35 AM   #1
LQ Newbie
Registered: Apr 2011
Posts: 1

Rep: Reputation: 0
ptrace system command not working properly in x86 platform

Hi all,

greetings to every on ... here iam facing some problem with the ptrace() system call in x86 platform.

basically in the child process iam just calling the

ptrace(PTRACE_TRACEME, 0, NULL, NULL) system call ..
but if add this stsyem call rest of the code not working properly .. i found the reason .. basically what happening is when we have ptrace() system call its printing the same variable 3 times i.e its not executing it 3 times but just it is printing 3 times .iam just wondering how it could be possible ... any ideas please

Last edited by XavierP; 04-21-2011 at 02:38 AM. Reason: Moved to Programming
Old 05-01-2011, 06:01 PM   #2
Registered: May 2011
Posts: 52

Rep: Reputation: 3
After you do the ptrace(), are you executing any kind of fork() operation?

Would you be able to post a small snippet of the code in question?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
usermod command not working properly ! noony123 Linux - Newbie 8 03-23-2011 07:16 AM
gvfs-mount not working from command line (Fedora 11 x86-64) ajitabhpandey Fedora 1 01-23-2010 12:34 PM
using gdbserver from x86 platform to mips based platform. Neuzen Programming 4 05-13-2008 08:06 AM
ls -la command output is not working properly ratul_11 General 1 02-27-2008 01:38 PM
Autostart command not working properly dstjames Linux - Newbie 2 01-10-2006 03:25 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:11 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration