elastic / elastic/elastic-package
Fatal java error when launching `8.17.4` on Mac OS
- Dominant language
- Go
- Stars
- 72
- Forks
- 141
- Avg merge
- 19h 42m
- Merged PRs (30d)
- 55
Description
Getting the following error when running `elastic-package stack up -v --version 8.17.4` on Mac OS `15.3.2`:
```
elasticsearch-1 | #
elasticsearch-1 | # A fatal error has been detected by the Java Runtime Environment:
elasticsearch-1 | #
elasticsearch-1 | # SIGILL (0x4) at pc=0x0000ffff77d400a8, pid=8, tid=17
elasticsearch-1 | #
elasticsearch-1 | # JRE version: (23.0+37) (build )
elasticsearch-1 | # Java VM: OpenJDK 64-Bit Server VM (23+37-2369, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, serial gc, linux-aarch64)
elasticsearch-1 | # Problematic frame:
elasticsearch-1 | # j java.lang.System.registerNatives()V+0 java.base@23
elasticsearch-1 | #
elasticsearch-1 | # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
elasticsearch-1 | #
elasticsearch-1 | # An error report file with more information is saved as:
elasticsearch-1 | # /usr/share/elasticsearch/hs_err_pid8.log
elasticsearch-1 | [0.020s][warning][os] Loading hsdis library failed
elasticsearch-1 | #
elasticsearch-1 | # The crash happened outside the Java Virtual Machine in native code.
elasticsearch-1 | # See problematic frame for where to report the bug.
```
I tried to hack the docker mount to get a hold of the error log in `hs_err_pid8.log`, but it looks like the compose file is rendered out every time.
I also tried to run the compose file manually but wasn't sure how to set the environment variables:
```
❯ /usr/local/bin/docker compose -f /Users/nick/.elastic-package/profiles/default/stack/docker-compose.yml -p elastic-package-stack build
WARN[0000] The "ELASTICSEARCH_IMAGE_REF" variable is not set. Defaulting to a blank string.
WARN[0000] The "KIBANA_IMAGE_REF" variable is not set. Defaulting to a blank string.
WARN[0000] The "ELASTIC_AGENT_IMAGE_REF" variable is not set. Defaulting to a blank string.
WARN[0000] The "PROFILE_NAME" variable is not set. Defaulting to a blank string.
WARN[0000] The "PROFILE_NAME" variable is not set. Defaulting to a blank string.
WARN[0000] The "ELASTIC_AGENT_IMAGE_REF" variable is not set. Defaulting to a blank string.
service "elastic-agent" has neither an image nor a build context specified: invalid compose project
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing `elastic-package stack up -v --version 8.17.4` on macOS 15.3.2 and inspect the rendered compose file under `.elastic-package/profiles/default/stack/docker-compose.yml`. Investigate the missing environment variables and the Linux ARM64 JVM crash, then verify that the requested stack launches without the fatal Java error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker-compose, java, macos
- Domain
- cli, devops, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100