It just hangs like in an infinite loop. Any suggestions?
You don't know whether it's waiting for something or is actually in infinite loop.
Your first steps should be:
- Run
topand see whether GDB process is consuming CPU or is increasing in memory and - Run
strace gdbto see which (if any) system calls it is performing.
With that info, further guesses could be made. It may also help to know which system you are on, and which version of GDB you have installed.
Update:
Running strace gdb results in a infinite loop outputting: readlink(“/usr/bin/python”, “python”, 4096) = 6
So you have /usr/bin/python which is a symlink to itself.
Yes, that would cause all kinds of problems (including not being able to actually run python from command line).
Remove that symlink (/usr/bin/python is supposed to point to python2 or python3).
It just hangs like in an infinite loop. Any suggestions?
You don't know whether it's waiting for something or is actually in infinite loop.
Your first steps should be:
- Run
topand see whether GDB process is consuming CPU or is increasing in memory and - Run
strace gdbto see which (if any) system calls it is performing.
With that info, further guesses could be made. It may also help to know which system you are on, and which version of GDB you have installed.
Update:
Running strace gdb results in a infinite loop outputting: readlink(“/usr/bin/python”, “python”, 4096) = 6
So you have /usr/bin/python which is a symlink to itself.
Yes, that would cause all kinds of problems (including not being able to actually run python from command line).
Remove that symlink (/usr/bin/python is supposed to point to python2 or python3).