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 191834 - orphan pty process consume 100% cpu
Summary: orphan pty process consume 100% cpu
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: execution (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal with 1 vote (vote)
Assignee: Andrew Krasny
URL:
Keywords:
: 188211 193906 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-11 10:52 UTC by Egor Ushakov
Modified: 2010-12-29 13:21 UTC (History)
3 users (show)

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 Egor Ushakov 2010-11-11 10:52:42 UTC
sometimes pty processes remain running after application was closed and consume 100% cpu
Comment 1 Nikolay Molchanov 2010-11-11 15:31:57 UTC
Here is the stack trace of one of two "pty" processes that were running
infinite loop on my system:

% pstack 27871
27871: /net/.../solstudio12.2-intel-S2/netbeans/ide/bin/nativeexecution/SunOS-x86_64/pty
 fef2a5b5 __pollsys (8046f10, 2, 0, 0) + 15
 feecf672 poll     (8046f10, 2, ffffffff, 0) + 52
 08050fee loop     (3, 8047380, feffb818, 80473a4) + 72
 080514be main     (2, 80473f8, 8047400) + f2
 08050ddc _start   (2, 8047530, 80475b6, 0, 80475be, 8047603) + 80

Please, let me know if you need more details.

Overall I like this feature very much! I'll use it very often, so, please,
fix this bug.

Thanks.
Nik
Comment 2 Andrew Krasny 2010-11-12 17:15:19 UTC
changeset with fix: 
http://hg.netbeans.org/cnd-main/rev/9cc66970c8a1

changeset with binaries:
http://hg.netbeans.org/cnd-main/rev/383e8931e07a
Comment 3 Andrew Krasny 2010-11-13 11:22:20 UTC
requires additional fix for Windows...
Comment 4 Andrew Krasny 2010-11-13 12:30:20 UTC
On Windows have to terminate the child process in case when stdin gets broken...

changeset: http://hg.netbeans.org/cnd-main/rev/2f8ddb89e4c2
windows binaries update: http://hg.netbeans.org/cnd-main/rev/67e1bdf40a77
Comment 5 Vladimir Kvashin 2010-12-08 13:38:17 UTC
*** Bug 188211 has been marked as a duplicate of this bug. ***
Comment 6 smil 2010-12-29 13:21:03 UTC
*** Bug 193906 has been marked as a duplicate of this bug. ***