I have _fgets call in a program I want to debug in IDA. My program receives SIGTTIN while calling it, that's normal. But when I mark to pass SIGTTIN to application, program waits for input in terminal, but neither pressing Enter key, nor Ctrl-D stop reading from input. What should I do to finish the input?

  • What version of IDA are you using? If I'm not wrong, I fixed myself that in 6.3 or something. Commented Dec 3, 2013 at 15:48
  • @joxeankoret IDA 6.3. But there are no problems when debugging in GDB. Commented Dec 5, 2013 at 8:48
  • GDB is not IDA. Have you tried redirecting input? You can use in the arguments field "< some_file" to pass input to STDIN. Or if running via linux_remote you can run a command line like: $ linux_remote < some_file_with_inputs. This way no problem should arise. Commented Dec 5, 2013 at 12:35

1 Answer 1


This problem can be avoided by calling IDA this way:

cat | idaq
  • 1
    Finally I can use IDA's debugger, thanks @jvoisin. I still do not understand why this command works, but it really works. Commented Mar 4, 2016 at 0:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.