# Logstash in docker plugin install error : G1ParScanThreadState::steal\_and\_trim\_queue

**URL:** <https://discuss.elastic.co/t/logstash-in-docker-plugin-install-error-g1parscanthreadstate-steal-and-trim-queue/371898>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [December 12, 2024, 8:31am UTC](https://discuss.elastic.co/t/logstash-in-docker-plugin-install-error-g1parscanthreadstate-steal-and-trim-queue/371898 "2024-12-12T08:31:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![liubin95](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/liubin95/32/139957_2.png) [@liubin95](https://discuss.elastic.co/u/liubin95)\
**Post date:** [December 12, 2024, 8:31am UTC](https://discuss.elastic.co/t/logstash-in-docker-plugin-install-error-g1parscanthreadstate-steal-and-trim-queue/371898/1 "2024-12-12T08:31:01Z")

</div>

This is Dockerfile

```auto
#
# docker build-t logstash-sts:8.16.0 --platform linux/amd64 .
#

FROM logstash:8.16.0

ENV LS_JAVA_OPT "-Xms4g -Xmx4g"
RUN logstash-plugin install logstash-input-sls

ADD opt/logstash/config/logstash.yml /usr/share/logstash/config/logstash.yml
ADD docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh

ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD ["logstash"]

```

This is error

```auto
#0 building with "desktop-linux" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 511B done
#1 DONE 0.0s

#2 [internal] load metadata for docker.io/library/logstash:8.16.0
#2 DONE 2.0s

#3 [internal] load .dockerignore
#3 transferring context: 2B done
#3 DONE 0.0s

#4 [1/4] FROM docker.io/library/logstash:8.16.0@sha256:a183d891806141a0820a05c9b914568007288d465da08b746322a41df6cefed0
#4 CACHED

#5 [internal] load build context
#5 transferring context: 187B done
#5 DONE 0.0s

#6 [2/4] RUN logstash-plugin install logstash-input-sls
#6 0.245 Using bundled JDK: /usr/share/logstash/jdk
#6 12.85 Validating logstash-input-sls
#6 15.91 Resolving mixin dependencies
#6 19.72 Installing logstash-input-sls
#6 49.97 #
#6 49.97 # A fatal error has been detected by the Java Runtime Environment:
#6 49.97 #
#6 49.97 # SIGSEGV (0xb) at pc=0x00007ffffe82ffec, pid=7, tid=42
#6 49.97 #
#6 49.97 # JRE version: OpenJDK Runtime Environment Temurin-21.0.5+11 (21.0.5+11) (build 21.0.5+11-LTS)
#6 49.97 # Java VM: OpenJDK 64-Bit Server VM Temurin-21.0.5+11 (21.0.5+11-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
#6 49.97 # Problematic frame:
#6 49.97 # V [libjvm.so+0x81dfec] G1ParScanThreadState::steal_and_trim_queue(GenericTaskQueueSet<OverflowTaskQueue<ScannerTask, (MEMFLAGS)5, 131072u>, (MEMFLAGS)5>*)+0x7ec
#6 49.98 #
#6 49.98 # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#6 49.98 #
#6 49.98 # An error report file with more information is saved as:
#6 49.98 # /usr/share/logstash/hs_err_pid7.log
#6 50.01 #
#6 50.01 # If you would like to submit a bug report, please visit:
#6 50.01 # https://github.com/adoptium/adoptium-support/issues
#6 50.01 #
#6 50.04 Aborted
#6 ERROR: process "/bin/sh -c logstash-plugin install logstash-input-sls" did not complete successfully: exit code: 134
------
 > [2/4] RUN logstash-plugin install logstash-input-sls:
49.98 #
49.98 # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
49.98 #
49.98 # An error report file with more information is saved as:
49.98 # /usr/share/logstash/hs_err_pid7.log
50.01 #
50.01 # If you would like to submit a bug report, please visit:
50.01 # https://github.com/adoptium/adoptium-support/issues
50.01 #
50.04 Aborted
------
Dockerfile:9
--------------------
   7 |     
   8 | ENV LS_JAVA_OPT "-Xms2g -Xmx2g"
   9 | >>> RUN logstash-plugin install logstash-input-sls
  10 |     
  11 | ADD opt/logstash/config/logstash.yml /usr/share/logstash/config/logstash.yml
--------------------
ERROR: failed to solve: process "/bin/sh -c logstash-plugin install logstash-input-sls" did not complete successfully: exit code: 134

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/pa6yj3uwv5cfgd1p8sdhk37y0

```

Work on Apple M2. Build a linux/amd64 image.
