← All tasks
javaopenzipkin/zipkin #3532Not a task: already works

Docker image not working on arm64 when Elasticsearch storage is used

envgap__openzipkin__zipkin-3532

01 / FAILURE SIGNATURE

As reported upstream

# A fatal error has been detected by the Java Runtime Environment:
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
9244952de33422285d6321ccc8f3b93e5e208ced
Manifest
zipkin-server/pom.xml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

openzipkin/zipkin #3532 · read the original issue
## Describe the Bug



When starting the default Docker image on an arm Mac with the Elasticsearch storage enbled the JVM segfaults



```

#

# A fatal error has been detected by the Java Runtime Environment:

#

#  SIGSEGV (0xb) at pc=0x0000000000020820, pid=1, tid=7

#

# JRE version: OpenJDK Runtime Environment (17.0.5+8) (build 17.0.5+8-alpine-r2)

# Java VM: OpenJDK 64-Bit Server VM (17.0.5+8-alpine-r2, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)

# Problematic frame:

# C  0x0000000000020820

#

# Core dump will be written. Default location: /zipkin/core (max size 1000 kB). To ensure a full core dump, try "ulimit -c unlimited" before starting Java again

#

# If you would like to submit a bug report, please visit:

#   https://gitlab.alpinelinux.org/alpine/aports/issues

# The crash happened outside the Java Virtual Machine in native code.

# See problematic frame for where to report the bug.

#

```



For size reason I've moved the entire dump to a gist https://gist.github.com/rogierslag/2fc39fb959c09f04bf12f8470284902f



## Steps to Reproduce



On an arm64 Mac with Docker installed, run the following command `docker run --rm -e "STORAGE_TYPE=elasticsearch" -e "ES_HOSTS=http://es.dev:9200" -e "ES_INDEX=zipkin" openzipkin/zipkin:2.24.1` which crashes directly with the following output



```



                  oo

                 oooo

                oooooo

               oooooooo

              oooooooooo

             oooooooooooo

           ooooooo  ooooooo

          oooooo     ooooooo

         oooooo       ooooooo

        oooooo   o  o   oooooo

       oooooo   oo  oo   oooooo

     ooooooo  oooo  oooo  ooooooo

    oooooo   ooooo  ooooo  ooooooo

   oooooo   oooooo  oooooo  ooooooo

  oooooooo      oo  oo      oooooooo

  ooooooooooooo oo  oo ooooooooooooo

      oooooooooooo  oooooooooooo

          oooooooo  oooooooo

              oooo  oooo



     ________ ____  _  _____ _   _

    |__  /_ _|  _ \| |/ /_ _| \ | |

      / / | || |_) | ' / | ||  \| |

     / /_ | ||  __/| . \ | || |\  |

    |____|___|_|   |_|\_\___|_| \_|



:: version 2.24.1 :: commit 5e3402a ::



#

# A fatal error has been detected by the Java Runtime Environment:

#

#  SIGSEGV (0xb) at pc=0x0000000000020820, pid=1, tid=7

#

# JRE version: OpenJDK Runtime Environment (17.0.5+8) (build 17.0.5+8-alpine-r2)

# Java VM: OpenJDK 64-Bit Server VM (17.0.5+8-alpine-r2, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)

# Problematic frame:

# C  0x0000000000020820

#

# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

#

# An error report file with more information is saved as:

# /zipkin/hs_err_pid1.log

#

# If you would like to submit a bug report, please visit:

#   https://gitlab.alpinelinux.org/alpine/aports/issues

# The crash happened outside the Java Virtual Machine in native code.

# See problematic frame for where to report the bug.

#

```



On a Linux machine, the same command boots Zipkin just fine. On the same Mac, it also works fine using the following Docker command `docker run --rm openzipkin/zipkin:2.24.1`



## Expected Behaviour



Similar to Linux, the Mac variant boots normally
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]