LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-02-2012, 09:15 AM   #1
eeeee
LQ Newbie
 
Registered: Jul 2012
Posts: 7

Rep: Reputation: Disabled
DDD problem


Hi everyone,

I have a serious problem right now, my DDD wont work anymore.
When i launch it : bash$ ddd
I cant do anything, the little green thing at the right bottom constantly blink and it says Opening session "2327865q4a1...3243465464" at bottom left
I cant open program, the window just doesnt show
the debug window says :
Could not attach to process. if your uid .. bla bla.. or try again as the root user.
ptrace: Operation not permitted
/home/.../"random 4 digit": No such file or directory

When i try to run it as super user : bash$ sudo ddd
its the exact same thing except that i dont have opening session at bottom left.
And the debug consol says a bunch of Reading Symbol for .. Loaded Symbol for..

but still can't debug :/

I hope you guys can help me on this.

E
 
Old 07-02-2012, 09:26 AM   #2
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Please indicate exactly how you are compiling your application, and then specify exactly how you are running DDD. If the error still persists, please post the exact error.

Right now I suspect that because your executable file has white-space in the file name, you are not properly escaping these with a backslash. For example:
Code:
ddd random\ 4\ digit
 
Old 07-02-2012, 09:33 AM   #3
eeeee
LQ Newbie
 
Registered: Jul 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Actually Im executing ddd without arguments, i just type ddd in my terminal.

/home/.../"random 4 digit": No such file or directory

And this has nothing to do with any executable.
I type "random 4 digits" because it varies through ddd execution it can be for example /home/.../3452 or /home/.../2145

Edit : its the exact same problem when i run : ddd test ( test is an executable )

Last edited by eeeee; 07-02-2012 at 09:35 AM.
 
Old 07-02-2012, 09:36 AM   #4
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by eeeee View Post
Actually Im executing ddd without arguments, i just type ddd in my terminal.

/home/.../"random 4 digit": No such file or directory

And this has nothing to do with any executable.
I type "random 4 digits" because it varies through ddd execution it can be for example /home/.../3452 or /home/.../2145
Wait... you enter 'ddd' in a terminal, press <enter>, and then you see "/home/.../"random 4 digit": No such file or directory??
 
Old 07-02-2012, 09:38 AM   #5
eeeee
LQ Newbie
 
Registered: Jul 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Yes
In the DDD: Debug Window
 
Old 07-02-2012, 09:39 AM   #6
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Is 'ddd' aliased to something?

Try entering /usr/bin/ddd
 
Old 07-02-2012, 09:41 AM   #7
eeeee
LQ Newbie
 
Registered: Jul 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
I have the same problem :/

Edit : btw im on ubuntu 12.04, and i did a purge of ddd and gdb then reinstalled both. and gdb works well.

Last edited by eeeee; 07-02-2012 at 09:43 AM.
 
Old 07-02-2012, 09:43 AM   #8
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Do you have a file ~/.gdbinit?? If in doubt, try running ddd again, but specify the -n option. For example:
Code:
ddd -n
 
Old 07-02-2012, 09:46 AM   #9
eeeee
LQ Newbie
 
Registered: Jul 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
No i dont have a .gdbinit in my homedirectory. ddd -n does the exact same thing :/
edit : the 4 random digits seems to be the pid of the ddd processus

Last edited by eeeee; 07-02-2012 at 09:57 AM.
 
Old 07-02-2012, 10:11 AM   #10
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
I get the impression that the "random 4 digits" is actually a process ID. Could you verify the permissions on /proc
Code:
ls -ld /proc
It should be something like:
Code:
dr-xr-xr-x 172 root root 0 Jun 17 16:59 /proc
 
Old 07-02-2012, 10:13 AM   #11
eeeee
LQ Newbie
 
Registered: Jul 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
i get : dr-xr-xr-x 185 root root 0 juil. 2 2012 /proc
 
Old 07-02-2012, 10:34 AM   #12
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Well, I really do not know what the issue could be.

Check to see if you have a hidden directory ~/.ddd. If so, remove it, and then try launching ddd again.
 
1 members found this post helpful.
Old 07-02-2012, 10:41 AM   #13
eeeee
LQ Newbie
 
Registered: Jul 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks a lot , I removed the folder and now it works.
Thank you for your time.

E
 
  


Reply



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
sed command to replace ddd.mm.ss.s with ddd:mm:ss.s? johnpaulodonnell Programming 4 06-08-2007 06:57 AM
problem building ddd whitesuit Linux - Software 3 10-11-2006 04:11 AM
problem building ddd whitesuit Slackware 2 10-09-2006 10:08 PM
problem with ddd morph_ind Programming 3 06-02-2005 02:12 PM
ddd problem trutnev Linux - Software 0 02-23-2004 09:38 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:36 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
Open Source Consulting | Domain Registration