Skip to content

Scala submission failed with SIGILL #83

@steinybot

Description

@steinybot

What I've done:

  • [*] created a private Git repository
  • [*] copied the deploy key and added it to the repository
  • [*] created a branch called submission
  • [*] downloaded a starter kit
  • [*] committed and pushed the starter kit
  • [*] waited for more than 10 minutes

Here's the problem:

[WHAT WENT WRONG]

The build failed with:

[12:28:35] : Step 2/7: replace dockerfile with our version (Command Line)
[12:28:35] :	 [Step 2/7] Starting: /opt/buildagent/temp/agentTmp/custom_script9028038695576878708
[12:28:35] :	 [Step 2/7] in directory: /opt/buildagent/work/5c8458c2f44b95ac
[12:28:36] :	 [Step 2/7] Process exited with code 0
[12:28:36]E: Step 3/7: build docker image (Docker) (24s)
[12:28:36] :	 [Step 3/7] Starting: docker build -t icfpc-registry.kontur.host/icfpc_submissions/2625c98f56c348e58631d07067ae832d:9a5c6195ee6dbcc935776a63382755a854c2d871 -t 241256198909.dkr.ecr.us-east-2.amazonaws.com/2625c98f56c348e58631d07067ae832d:9a5c6195ee6dbcc935776a63382755a854c2d871 --pull --network none -f Dockerfile .
[12:28:36] :	 [Step 3/7] in directory: /opt/buildagent/work/5c8458c2f44b95ac
[12:28:36] :	 [Step 3/7] Sending build context to Docker daemon  16.78MB
[12:28:36] :	 [Step 3/7] 
[12:28:36] :	 [Step 3/7] Step 1/7 : FROM icfpcontest2020/scala
[12:28:38] :	 [Step 3/7] latest: Pulling from icfpcontest2020/scala
[12:28:38] :	 [Step 3/7] 4167d3e14976: Pulling fs layer
[12:28:38] :	 [Step 3/7] 345cf19c142c: Pulling fs layer
[12:28:38] :	 [Step 3/7] baeb5b3b9357: Pulling fs layer
[12:28:38] :	 [Step 3/7] 3b0c85193bfe: Pulling fs layer
[12:28:38] :	 [Step 3/7] 3b0c85193bfe: Waiting
[12:28:39] :	 [Step 3/7] 4167d3e14976: Verifying Checksum
[12:28:39] :	 [Step 3/7] 4167d3e14976: Download complete
[12:28:39] :	 [Step 3/7] baeb5b3b9357: Download complete
[12:28:39] :	 [Step 3/7] 4167d3e14976: Pull complete
[12:28:41] :	 [Step 3/7] 3b0c85193bfe: Verifying Checksum
[12:28:41] :	 [Step 3/7] 3b0c85193bfe: Download complete
[12:28:45] :	 [Step 3/7] 345cf19c142c: Verifying Checksum
[12:28:45] :	 [Step 3/7] 345cf19c142c: Download complete
[12:28:54] :	 [Step 3/7] 345cf19c142c: Pull complete
[12:28:55] :	 [Step 3/7] baeb5b3b9357: Pull complete
[12:28:55] :	 [Step 3/7] 3b0c85193bfe: Pull complete
[12:28:55] :	 [Step 3/7] Digest: sha256:b12809acaf7fef9f2f424b8e77c03d7ff49b698207f66853fa1bc9cd79e05ceb
[12:28:55] :	 [Step 3/7] Status: Downloaded newer image for icfpcontest2020/scala:latest
[12:28:55] :	 [Step 3/7]  ---> ce55cb81abab
[12:28:55] :	 [Step 3/7] Step 2/7 : WORKDIR /solution
[12:28:56] :	 [Step 3/7]  ---> Running in 613d711de15c
[12:28:56] :	 [Step 3/7] Removing intermediate container 613d711de15c
[12:28:56] :	 [Step 3/7]  ---> 891f5e9be49f
[12:28:56] :	 [Step 3/7] Step 3/7 : COPY . .
[12:28:57] :	 [Step 3/7]  ---> 9260e3d381aa
[12:28:57] :	 [Step 3/7] Step 4/7 : RUN chmod +x ./build.sh
[12:28:57] :	 [Step 3/7]  ---> Running in 156b2e05aab0
[12:28:58] :	 [Step 3/7] Removing intermediate container 156b2e05aab0
[12:28:58] :	 [Step 3/7]  ---> fbdfc711b566
[12:28:58] :	 [Step 3/7] Step 5/7 : RUN chmod +x ./run.sh
[12:28:58] :	 [Step 3/7]  ---> Running in 665f6be8ee3f
[12:28:59] :	 [Step 3/7] Removing intermediate container 665f6be8ee3f
[12:28:59] :	 [Step 3/7]  ---> 68bc72545724
[12:28:59] :	 [Step 3/7] Step 6/7 : RUN ./build.sh
[12:28:59] :	 [Step 3/7]  ---> Running in 8f0cc4b25b14
[12:28:59] :	 [Step 3/7] #
[12:28:59] :	 [Step 3/7] # A fatal error has been detected by the Java Runtime Environment:
[12:28:59] :	 [Step 3/7] #
[12:28:59] :	 [Step 3/7] #  SIGILL (0x4) at pc=0x00007f2d59f098f2, pid=20, tid=21
[12:28:59] :	 [Step 3/7] #
[12:28:59] :	 [Step 3/7] # JRE version:  (14.0+33) (build )
[12:28:59] :	 [Step 3/7] # Java VM: OpenJDK 64-Bit Server VM (14-ea+33, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
[12:28:59] :	 [Step 3/7] # Problematic frame:
[12:28:59] :	 [Step 3/7] # v  ~StubRoutines::call_stub
[12:28:59] :	 [Step 3/7] #
[12:28:59] :	 [Step 3/7] # Core dump will be written. Default location: /solution/core.20
[12:28:59] :	 [Step 3/7] #
[12:28:59] :	 [Step 3/7] # An error report file with more information is saved as:
[12:28:59] :	 [Step 3/7] # /solution/hs_err_pid20.log
[12:29:00] :	 [Step 3/7] #
[12:29:00] :	 [Step 3/7] #
[12:29:00] :	 [Step 3/7]  [91m/usr/local/share/scala/bin/scalac: line 25:    20 Aborted                 (core dumped) "$@"
[12:29:00]W:	 [Step 3/7] The command '/bin/sh -c ./build.sh' returned a non-zero code: 134
[12:29:00] :	 [Step 3/7]  [0m
[12:29:00]W:	 [Step 3/7] Process exited with code 134
[12:29:00]E:	 [Step 3/7] Process exited with code 134 (Step: build docker image (Docker))
[12:29:00]E:	 [Step 3/7] JVM crashed
[12:29:00]E:	 [Step 3/7] Step build docker image (Docker) failed

A fresh checkout of the same repository and branch works perfectly fine for me:

❯ docker build --pull --network none --file ../dockerfiles/dockerfiles/scala/Dockerfile .
Sending build context to Docker daemon  32.13MB
Step 1/7 : FROM icfpcontest2020/scala
latest: Pulling from icfpcontest2020/scala
Digest: sha256:b12809acaf7fef9f2f424b8e77c03d7ff49b698207f66853fa1bc9cd79e05ceb
Status: Image is up to date for icfpcontest2020/scala:latest
 ---> ce55cb81abab
Step 2/7 : WORKDIR /solution
 ---> Using cache
 ---> 6f982051366f
Step 3/7 : COPY . .
 ---> Using cache
 ---> a3b12382adf7
Step 4/7 : RUN chmod +x ./build.sh
 ---> Using cache
 ---> 89d7f9e74644
Step 5/7 : RUN chmod +x ./run.sh
 ---> Using cache
 ---> 5179e1afac44
Step 6/7 : RUN ./build.sh
 ---> Using cache
 ---> 729e4b470a6d
Step 7/7 : ENTRYPOINT ["./run.sh"]
 ---> Using cache
 ---> 179867e3968a
Successfully built 179867e3968a

This is very strange. It is starting off with the same image ce55cb81abab but then something is different. Any idea what could be different?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions