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 182824 - program run under pty in Internal Terminal writes incorrect status and writes it incorrectly
Summary: program run under pty in Internal Terminal writes incorrect status and writes...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: execution (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: Andrew Krasny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-25 21:54 UTC by Vladimir Voskresensky
Modified: 2010-04-30 14:23 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 Vladimir Voskresensky 2010-03-25 21:54:13 UTC
Create Arguments project, run in Internal Terminal mode.
There are issues with writing into terminal streams.

sometimes it is just:
------------------
RUN FAILED (exit value 75, total time: 480ms)
------------------

other time it is swapped like:
------------------


RUN FAILED (exit value 220, total time: 256ms)
                                              Arguments:
0: /home/vv159170/NetBeansProjects/Arguments_4/dist/Debug/GNU-Linux-x86/arguments_4
1: arg 1
2: arg 2
3: arg 3
4: arg 4
-------------------------

next time it is:
--------------------------
Arguments:
0: /home/vv159170/NetBeansProjects/Arguments_4/dist/Debug/GNU-Linux-x86/arguments_4
1: arg 1
2: arg 2
3: arg 3
4: arg 4

RUN FAILED (exit value 65, total time: 420ms)
Comment 1 Vladimir Voskresensky 2010-03-30 07:51:35 UTC
We can not use Internal Terminal with profiler ON due to this issue.
Comment 2 Andrew Krasny 2010-04-01 14:14:40 UTC
code:
http://hg.netbeans.org/cnd-main/rev/7571ab472623
binaries:
http://hg.netbeans.org/cnd-main/rev/d5ee862a314f


need to recompile for linux...
Comment 3 Andrew Krasny 2010-04-02 06:35:41 UTC
linux binaries:
http://hg.netbeans.org/cnd-main/rev/075780d4c96d
Comment 4 Vladimir Voskresensky 2010-04-05 15:30:26 UTC
still reproducible on Ubuntu x64
Comment 5 Quality Engineering 2010-04-13 17:32:48 UTC
Integrated into 'main-golden', will be available in build *201004131450* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/d124475336a1
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: workaround for #182824 program run under pty in Internal Terminal writes incorrect status and writes it incorrectly
Comment 6 Andrew Krasny 2010-04-16 20:48:27 UTC
The reason is clear. Looking for a better solution. 
Meanwhile the following fix minimize the risk of intermixed output.

http://hg.netbeans.org/cnd-main/rev/81f7f1abcb41
Comment 7 Leonid Lenyashin 2010-04-23 14:41:14 UTC
any progress so far?
Comment 8 Andrew Krasny 2010-04-30 14:23:44 UTC
Know this will be discarded... Still to indicate it is fixed...