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 104083 - [DEBUGGER] Ruby process not killed if IDE with active debugging session is closed
Summary: [DEBUGGER] Ruby process not killed if IDE with active debugging session is cl...
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-16 16:22 UTC by Tomas Danek
Modified: 2007-07-03 14:45 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 Tomas Danek 2007-05-16 16:22:19 UTC
NetBeans IDE Dev (Build 070516)
1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02
Windows XP version 5.1 running on x86
en_US (nb); Cp125

- fast debugger
- native ruby 
-------------------------------------------------------
- create rails project
- create some controller/action
- put breakpoint into that action
- call the action from browser
- debugger stops at BP
- now close IDE
- there's still ruby process present, there are problems if you start ide again
and try to run this rails project, webrick does not boot:

=> Booting WEBrick...

[2007-05-16 17:20:43] INFO  WEBrick 1.3.1

[2007-05-16 17:20:43] INFO  ruby 1.8.6 (2007-03-13) [i386-mswin32]

[2007-05-16 17:20:43] WARN  TCPServer Error: Bad file descriptor - bind(2)

C:/ruby/lib/ruby/1.8/webrick/utils.rb:73:in `initialize': Bad file descriptor -
bind(2) (Errno::EBADF)
...
...
Comment 1 Martin Krauskopf 2007-05-16 16:34:11 UTC
Yup, I know. The same problem as issue 103373.

*** This issue has been marked as a duplicate of 103373 ***
Comment 2 Martin Krauskopf 2007-05-18 17:42:54 UTC
Tomasi the dupe is fixed. Let me know if you still have the problem you
described here, thanks.
Comment 3 Tomas Danek 2007-05-21 17:26:06 UTC
i'm not sure if this is a dupe, i took steps i decscribed, using fresh ruby1
cluster from hudson, and when i exit ide during debugging, i can still see 

tomas    18582     1  9 18:23 pts/1    00:00:01 /usr/local/bin/ruby
/usr/local/bin/rdebug-ide -p 39133 -- script/server --port 3000

debugger process process running..this time reproducible on linux

NetBeans IDE Dev (Build 070518)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Linux version 2.6.20-15-generic running on i386
en_US (nb); UTF-8
+ 1309 ruby from hudson
Comment 4 Tomas Danek 2007-05-22 14:49:43 UTC
it seems like there's even problem with this basic scenario:
- create rails app
- setup MRI
- F5
- hit the red x button in output tab and try to close webrick in debugging mode
-> process is not finished, both icons (close and rerun) on webrick tab are disabled
Comment 5 Martin Krauskopf 2007-06-25 17:25:31 UTC
It seems to be cause by non-synchronized output in the case fast-debugger is used. Fixed in the debug-commons-java.
Please reopen if it still does not work for you. Verified on Linux by me.

debug-commons-java/manifest.mf;
new revision: 1.17; previous revision: 1.16
debugger/manifest.mf;
new revision: 1.30; previous revision: 1.29
debugger/nbproject/project.xml;
new revision: 1.28; previous revision: 1.27
external/debug-commons-java-0.7.3.jar;
new revision: 1.7; previous revision: 1.6
kit/nbproject/project.xml;
new revision: 1.108; previous revision: 1.107
Comment 6 Jiri Kovalsky 2007-07-03 14:03:18 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 7 Jiri Kovalsky 2007-07-03 14:45:06 UTC
Changing target milestone of all resolved Ruby issues from TBD to 6.0 Beta 1 build.