strace crashes shell/system when being used on current bash
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I was curious: What would it look like to strace gnome-terminal and see what this process is doing?
I know, this is senseless and just playing around, but at the same time, it should work. Right?
Well, as a normal user I run:
strace -p 1418
-> And suddenly the windows showing the "terminal" freezes. It becomes grey and does not respond.
When I try to run another terminal, the windows will never appear and nothing happens. The whole machine behaves strangely and gets slowed down.
I am able to reproduce this problem as often as I like on this machine.
When I ran this strace command as root once, the whole system froze. Unfortunately I am not able to reproduce this one and prove it to you.
Now my question is: What happens there, why does it happen and is there any logic I am not aware of? Like there is a sort of "loop" or an unwritten rule that you may never ever trace your own "terminal"?