This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 242395 - Attempt to suspend attached process locks debug session
Summary: Attempt to suspend attached process locks debug session
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: henk89
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-27 05:34 UTC by jackua
Modified: 2014-08-06 10:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jackua 2014-02-27 05:34:04 UTC
If I attach a process and then try to get access to the terminal where the program started by pressing Ctrl/Z, the whole debug session gets locked with a dialog window
   Signal received: SIGTSTP (Stopped (user))
   For program 291fc7af9eca11e387635cf3fcb51ffc, pid 12,955

   You may discard the signal or forward it and you may continue or pause the process

There are three buttons: Discard and Pause, Discard and Continue, Forward and Continue.  Pressing any of them or all of them makes no good.  The IDE never recovers from that signal.  The dialog comes again and again instantly or when I press Continue button if I selected Pause.

Killing the process does not help to release the terminal because of other bug, 239717, which is in a strange state BTW.  The process stays zombie until I kill GDB.

OS:
Red Hat Enterprise Linux Client release 5.5 (Tikanga)
Linux xxxxxxx 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

GDB is 7.6.2.
Comment 1 henk89 2014-04-14 13:35:37 UTC
I tried your scenario and it was possible to stop and continue execution. I pressed Forward and Continue twice (as I wanted both stop and continue signals to be forwarded to the process) and I was able to execute something in a terminal and return to the debugging session after that.

Please try to press the Forward button only. It will prevent terminal signals from being consumed by the IDE.
Comment 2 henk89 2014-07-01 15:03:15 UTC
Is the issue still reproducible? Have you tried my scenario yet?
Comment 3 jackua 2014-07-21 23:09:53 UTC
I tried NB 8 with latest updates and now the behavior makes more sense.  I still see several dialogs but after few clicks dialogs do not appear anymore.
The terminal where I started the application is not accessible as I would love to, but maybe it is too much to ask.
I think we can close the bug for now.
Thanks.
Comment 4 henk89 2014-07-22 09:01:47 UTC
Thank you for the evaluation! We appreciate it!