[ 
https://issues.apache.org/jira/browse/COMPRESS-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16488903#comment-16488903
 ] 

Stefan Bodewig edited comment on COMPRESS-453 at 5/24/18 12:40 PM:
-------------------------------------------------------------------

Thank you, so here is the snippet you can use in your bug report for 
AdoptOpenJDK :-)

{code}
                System.err.println("before loop s: " + s + ", lastShadow: " + 
lastShadow);
                while (s-- >= 0) {
                    ll8[++lastShadow] = ch;
                }
                System.err.println("after loop s: " + s + ", lastShadow: " + 
lastShadow);
{code}

with {{s}} being 5 the loop should be run six times before terminating and 
{{s}} is -2 after the loop as expected. As you can see from the 

{code}
before loop s: 5, lastShadow: 899994
after loop s: -2, lastShadow: 900001
{code}

log-output {{lastShadow}} has been incremented seven times. if you look through 
the log you can see it first seems to work OK ({{lastShadow}} should get 
incremented by {{s + 1}}) but starts to go wrong at one point in time (first 
error is in line 599184), the 65945th time we hit the log statement), likely a 
bug in the JIT, 

We can replace the {{while}} loop with {{Arrays.fill}} in this particular case, 
I'll change the code and ask you to re-test soonish. Before making that change 
in master I'd like to run a few microbenchmarks, though. Also it may fix this 
particular instance but won't safe you from other bugs in OpenJDK.


was (Author: bodewig):
Thank you, so here is the snippet you can use in your bug report for 
AdoptOpenJDK :-)

{code}
                System.err.println("before loop s: " + s + ", lastShadow: " + 
lastShadow);
                while (s-- >= 0) {
                    ll8[++lastShadow] = ch;
                }
                System.err.println("after loop s: " + s + ", lastShadow: " + 
lastShadow);
{code}

with {{s}} being 5 the loop should be run six times before terminating and 
{{s}} is -2 after the loop as expected. As you can see from the 

{code}
before loop s: 5, lastShadow: 899994
after loop s: -2, lastShadow: 900001
{code}

log-output {{lastShadow}} has been incremented seven times. if you look through 
the log you can see it first seems to work OK ({{lastShadow}} should get 
incremented by {{s + 1}}) but starts to go wrong at one point in time, likely a 
bug in the JIT, 

We can replace the {{while}} loop with {{Arrays.fill}} in this particular case, 
I'll change the code and ask you to re-test soonish. Before making that change 
in master I'd like to run a few microbenchmarks, though. Also it my fix this 
particular instance but won't safe you from other bugs in OpenJDK.

> Facing block overrun error while building TensorFlow
> ----------------------------------------------------
>
>                 Key: COMPRESS-453
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-453
>             Project: Commons Compress
>          Issue Type: Bug
>          Components: Compressors
>    Affects Versions: 1.9, 1.16.1
>         Environment: Linux Ubuntu 16.04 s390x
>            Reporter: Namrata Bhave
>            Priority: Major
>         Attachments: TestLogAdoptJDK.txt, TestLogOpenJDK.txt, 
> testlog_commit2_Adoptjdk.txt, testlog_commit2_openjdk_zip.zip
>
>
> Building TensorFlow master using Bazel v0.12.0.
> Facing build issue immediately with error:
> {{ERROR: /home/jenkins/tensorflow/tensorflow/tools/pip_package/BUILD:117:1: 
> no such package '@nasm//': java.io.IOException: block overrun and referenced 
> by '//tensorflow/tools/pip_package:licenses'}}
> {{ ERROR: Analysis of target 
> '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: no 
> such package '@nasm//': java.io.IOException: block overrun}}
> This is intermittent. Sometimes the build goes ahead. Also observed this 
> error once:
> {{ERROR: /home/test/tensorflow/tensorflow/tools/pip_package/BUILD:117:1: no 
> such package '@nasm//': java.io.IOException: Error detected parsing the 
> header and referenced by '//tensorflow/tools/pip_package:licenses'ERROR: 
> Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; 
> build aborted: no such package '@nasm//': java.io.IOException: Error detected 
> parsing the header}}
> Can someone please help in resolving this?
> Getting this error with AdoptJDK 8.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to