-
Bug
-
Resolution: Fixed
-
P4
-
6
-
b16
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2154131 | 6u10 | James Holmlund | P4 | Resolved | Fixed | b06 |
After jdb processes a command, eg, 'step', it (the main thread) prints
a prompt, eg '>'. When the event handler thread gets an
event, the event handler sometimes prints a line, eg:
'Step completed: ...'.
There is no synch between these prints which means that the
prompt can appear in the middle of the event handler msg, eg:
St>ep completed: ....
This is a bit ugly for the user to have to see, but more importantly,
it can make jdb tests that expect particular strings in the output
fail. We have seen this in the test JdbMethodExitTest.sh on solaris-sparc64.
###@###.### 2005-1-24 20:21:06 GMT
This bug affects the following test:
com/sun/jdi/JdbMethodExitTest.sh
###@###.### 2005-03-11 00:57:16 GMT
This test is also known as:
closed/com/sun/jdi/JdbMethodExitTest.sh
A couple of thoughts on this bug:
- change the test program's compare function to try a more
tolerant compare if the straight forward compare fails
- fix jdb to synchronize output between the different
threads (command processor, event handler, stdout handler, etc)
a prompt, eg '>'. When the event handler thread gets an
event, the event handler sometimes prints a line, eg:
'Step completed: ...'.
There is no synch between these prints which means that the
prompt can appear in the middle of the event handler msg, eg:
St>ep completed: ....
This is a bit ugly for the user to have to see, but more importantly,
it can make jdb tests that expect particular strings in the output
fail. We have seen this in the test JdbMethodExitTest.sh on solaris-sparc64.
###@###.### 2005-1-24 20:21:06 GMT
This bug affects the following test:
com/sun/jdi/JdbMethodExitTest.sh
###@###.### 2005-03-11 00:57:16 GMT
This test is also known as:
closed/com/sun/jdi/JdbMethodExitTest.sh
A couple of thoughts on this bug:
- change the test program's compare function to try a more
tolerant compare if the straight forward compare fails
- fix jdb to synchronize output between the different
threads (command processor, event handler, stdout handler, etc)
- backported by
-
JDK-2154131 TTY: Race in printing prompt and printing output in the event handler
- Resolved
- relates to
-
JDK-4617488 TTY: jdb produces malformed messages for caught exceptions on Linux and Solx86
- Closed
-
JDK-4796789 TTY: jdb should be able to run batch commands synchronously
- Closed