You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Roman S. Bushmanov (JIRA)" <ji...@apache.org> on 2006/12/15 12:25:21 UTC

[jira] Created: (HARMONY-2740) [drlvm][kernel] System.err.println() doesn't lock console

[drlvm][kernel] System.err.println() doesn't lock console
---------------------------------------------------------

                 Key: HARMONY-2740
                 URL: http://issues.apache.org/jira/browse/HARMONY-2740
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
            Reporter: Roman S. Bushmanov
            Priority: Minor


System.err.print() doesn't lock the console and this output can be interrupted at any time by other thread or process.

To reproduce this issue compile and run the attached PrintTest.java test and run it on DRLVM in two separate processes which share the same console. Use a shell script like attached run.sh

DRLVM output looks like 

<...>111111111111111111111111111111111111121122212121212121212121212121212121212111111111111111111111111111111111111111121
21212122221212121212121212121212121111121212122212121212121212121212121212121111121222121212121212121212121212121212121112122222121212121212121212121212121211112121222121212121212121212121212121212111121222121212121212121212<...>

but expected to be like

<...>1111111111111111111122222222222222222222111111111111111111112222222222222222222211111111111111111111222222222222222222221111111111111111111122222222222222222222111111111111111111112222222222222222222211111111111111111111222222222222222222221111111111111111111122222222222222222222111111111111111111112222222222222222222211111111111111111111<...>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-2740) [drlvm][kernel] System.err.println() doesn't lock console

Posted by "Pavel Pervov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470213 ] 

Pavel Pervov commented on HARMONY-2740:
---------------------------------------

The more generic issue may be that native implementation of write performs char-by-char output, not whole-buffer-write.

> [drlvm][kernel] System.err.println() doesn't lock console
> ---------------------------------------------------------
>
>                 Key: HARMONY-2740
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2740
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Roman S. Bushmanov
>            Priority: Minor
>         Attachments: PrintTest.java, run.sh
>
>
> System.err.print() doesn't lock the console and this output can be interrupted at any time by other thread or process.
> To reproduce this issue compile and run the attached PrintTest.java test and run it on DRLVM in two separate processes which share the same console. Use a shell script like attached run.sh
> DRLVM output looks like 
> <...>111111111111111111111111111111111111121122212121212121212121212121212121212111111111111111111111111111111111111111121
> 21212122221212121212121212121212121111121212122212121212121212121212121212121111121222121212121212121212121212121212121112122222121212121212121212121212121211112121222121212121212121212121212121212111121222121212121212121212<...>
> but expected to be like
> <...>1111111111111111111122222222222222222222111111111111111111112222222222222222222211111111111111111111222222222222222222221111111111111111111122222222222222222222111111111111111111112222222222222222222211111111111111111111222222222222222222221111111111111111111122222222222222222222111111111111111111112222222222222222222211111111111111111111<...>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (HARMONY-2740) [drlvm][kernel] System.err.println() doesn't lock console

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky closed HARMONY-2740.
--------------------------------------

    Resolution: Cannot Reproduce
      Assignee: Gregory Shimansky  (was: weldon washburn)

I cannot reproduce this too.

> [drlvm][kernel] System.err.println() doesn't lock console
> ---------------------------------------------------------
>
>                 Key: HARMONY-2740
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2740
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Roman S. Bushmanov
>            Assignee: Gregory Shimansky
>            Priority: Minor
>         Attachments: PrintTest.java, run.sh
>
>
> System.err.print() doesn't lock the console and this output can be interrupted at any time by other thread or process.
> To reproduce this issue compile and run the attached PrintTest.java test and run it on DRLVM in two separate processes which share the same console. Use a shell script like attached run.sh
> DRLVM output looks like 
> <...>111111111111111111111111111111111111121122212121212121212121212121212121212111111111111111111111111111111111111111121
> 21212122221212121212121212121212121111121212122212121212121212121212121212121111121222121212121212121212121212121212121112122222121212121212121212121212121211112121222121212121212121212121212121212111121222121212121212121212<...>
> but expected to be like
> <...>1111111111111111111122222222222222222222111111111111111111112222222222222222222211111111111111111111222222222222222222221111111111111111111122222222222222222222111111111111111111112222222222222222222211111111111111111111222222222222222222221111111111111111111122222222222222222222111111111111111111112222222222222222222211111111111111111111<...>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-2740) [drlvm][kernel] System.err.println() doesn't lock console

Posted by "Vladimir Beliaev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12555036 ] 

Vladimir Beliaev commented on HARMONY-2740:
-------------------------------------------

It looks like the issue is fixed - at least I can not reproduced it at:

     svn = r603624, (Dec 12 2007), Linux/ia32/gcc 4.1.0, release build

[the output is too long to be put here, still there is NO a mix of '1' and '2' - just the packs of '11111111111' and '222222222222').

The issue can be closed as "Cannot Reproduce".

> [drlvm][kernel] System.err.println() doesn't lock console
> ---------------------------------------------------------
>
>                 Key: HARMONY-2740
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2740
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Roman S. Bushmanov
>            Assignee: weldon washburn
>            Priority: Minor
>         Attachments: PrintTest.java, run.sh
>
>
> System.err.print() doesn't lock the console and this output can be interrupted at any time by other thread or process.
> To reproduce this issue compile and run the attached PrintTest.java test and run it on DRLVM in two separate processes which share the same console. Use a shell script like attached run.sh
> DRLVM output looks like 
> <...>111111111111111111111111111111111111121122212121212121212121212121212121212111111111111111111111111111111111111111121
> 21212122221212121212121212121212121111121212122212121212121212121212121212121111121222121212121212121212121212121212121112122222121212121212121212121212121211112121222121212121212121212121212121212111121222121212121212121212<...>
> but expected to be like
> <...>1111111111111111111122222222222222222222111111111111111111112222222222222222222211111111111111111111222222222222222222221111111111111111111122222222222222222222111111111111111111112222222222222222222211111111111111111111222222222222222222221111111111111111111122222222222222222222111111111111111111112222222222222222222211111111111111111111<...>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-2740) [drlvm][kernel] System.err.println() doesn't lock console

Posted by "Roman S. Bushmanov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2740?page=all ]

Roman S. Bushmanov updated HARMONY-2740:
----------------------------------------

    Attachment: PrintTest.java
                run.sh

> [drlvm][kernel] System.err.println() doesn't lock console
> ---------------------------------------------------------
>
>                 Key: HARMONY-2740
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2740
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Roman S. Bushmanov
>            Priority: Minor
>         Attachments: PrintTest.java, run.sh
>
>
> System.err.print() doesn't lock the console and this output can be interrupted at any time by other thread or process.
> To reproduce this issue compile and run the attached PrintTest.java test and run it on DRLVM in two separate processes which share the same console. Use a shell script like attached run.sh
> DRLVM output looks like 
> <...>111111111111111111111111111111111111121122212121212121212121212121212121212111111111111111111111111111111111111111121
> 21212122221212121212121212121212121111121212122212121212121212121212121212121111121222121212121212121212121212121212121112122222121212121212121212121212121211112121222121212121212121212121212121212111121222121212121212121212<...>
> but expected to be like
> <...>1111111111111111111122222222222222222222111111111111111111112222222222222222222211111111111111111111222222222222222222221111111111111111111122222222222222222222111111111111111111112222222222222222222211111111111111111111222222222222222222221111111111111111111122222222222222222222111111111111111111112222222222222222222211111111111111111111<...>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (HARMONY-2740) [drlvm][kernel] System.err.println() doesn't lock console

Posted by "weldon washburn (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

weldon washburn reassigned HARMONY-2740:
----------------------------------------

    Assignee: weldon washburn

> [drlvm][kernel] System.err.println() doesn't lock console
> ---------------------------------------------------------
>
>                 Key: HARMONY-2740
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2740
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Roman S. Bushmanov
>         Assigned To: weldon washburn
>            Priority: Minor
>         Attachments: PrintTest.java, run.sh
>
>
> System.err.print() doesn't lock the console and this output can be interrupted at any time by other thread or process.
> To reproduce this issue compile and run the attached PrintTest.java test and run it on DRLVM in two separate processes which share the same console. Use a shell script like attached run.sh
> DRLVM output looks like 
> <...>111111111111111111111111111111111111121122212121212121212121212121212121212111111111111111111111111111111111111111121
> 21212122221212121212121212121212121111121212122212121212121212121212121212121111121222121212121212121212121212121212121112122222121212121212121212121212121211112121222121212121212121212121212121212111121222121212121212121212<...>
> but expected to be like
> <...>1111111111111111111122222222222222222222111111111111111111112222222222222222222211111111111111111111222222222222222222221111111111111111111122222222222222222222111111111111111111112222222222222222222211111111111111111111222222222222222222221111111111111111111122222222222222222222111111111111111111112222222222222222222211111111111111111111<...>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.