LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   DDD problem (https://www.linuxquestions.org/questions/programming-9/ddd-problem-4175414453/)

eeeee 07-02-2012 09:15 AM

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

dwhitney67 07-02-2012 09:26 AM

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

eeeee 07-02-2012 09:33 AM

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 )

dwhitney67 07-02-2012 09:36 AM

Quote:

Originally Posted by eeeee (Post 4717158)
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??

eeeee 07-02-2012 09:38 AM

Yes :)
In the DDD: Debug Window

dwhitney67 07-02-2012 09:39 AM

Is 'ddd' aliased to something?

Try entering /usr/bin/ddd

eeeee 07-02-2012 09:41 AM

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.

dwhitney67 07-02-2012 09:43 AM

Do you have a file ~/.gdbinit?? If in doubt, try running ddd again, but specify the -n option. For example:
Code:

ddd -n

eeeee 07-02-2012 09:46 AM

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

dwhitney67 07-02-2012 10:11 AM

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

eeeee 07-02-2012 10:13 AM

i get : dr-xr-xr-x 185 root root 0 juil. 2 2012 /proc

dwhitney67 07-02-2012 10:34 AM

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.

eeeee 07-02-2012 10:41 AM

Thanks a lot :), I removed the folder and now it works.
Thank you for your time.

E


All times are GMT -5. The time now is 10:49 AM.