LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 04-20-2011, 04:35 AM   #1
shankarsrinivas
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 01:38 AM. Reason: Moved to Programming
 
Old 05-01-2011, 05:01 PM   #2
plpl303a
Member
 
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?
 
  


Reply


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 06:16 AM
gvfs-mount not working from command line (Fedora 11 x86-64) ajitabhpandey Fedora 1 01-23-2010 11:34 AM
using gdbserver from x86 platform to mips based platform. Neuzen Programming 4 05-13-2008 07:06 AM
ls -la command output is not working properly ratul_11 General 1 02-27-2008 12:38 PM
Autostart command not working properly dstjames Linux - Newbie 2 01-10-2006 02:25 PM


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

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