apache / apache/pinot

Crash when running docker pinot in M1 Pro macbook

Open
#7,829 0 comments 0 reactions 1 assignee Claimed by @xiangfu0 View on GitHub
docker
Dominant language
Java
Stars
6.1k
Forks
1.5k
Avg merge
1d 21h
Merged PRs (30d)
189

Description

As the one using M1 Pro MacBook, I tried following https://docs.pinot.apache.org/basics/getting-started/running-pinot-in-docker to run the command to start Pinot, and I get the below warning in command line:
```
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
```
And of course in Docker I got the SIGSEGV crash log like below:

```
2021/11/25 00:18:13.721 INFO [StartServiceManagerCommand] [main] Starting a Pinot [CONTROLLER] at 7.432s since launch

#

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

#

# SIGSEGV (0xb) at pc=0x0000004014e19a03, pid=1, tid=23

#

# JRE version: OpenJDK Runtime Environment 18.9 (11.0.13+8) (build 11.0.13+8)

# Java VM: OpenJDK 64-Bit Server VM 18.9 (11.0.13+8, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)

# Problematic frame:

# J 708 c1 java.util.zip.Inflater.setInput([BII)V java.base@11.0.13 (69 bytes) @ 0x0000004014e19a03 [0x0000004014e19960+0x00000000000000a3]

#

# 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:

# /opt/pinot/hs_err_pid1.log

Compiled method (c2) 32102 5556 ! 4 java.util.zip.InflaterInputStream::read (138 bytes)

total in heap [0x000000401c4dd910,0x000000401c4e1c08] = 17144

relocation [0x000000401c4dda88,0x000000401c4ddbd0] = 328

main code [0x000000401c4ddbe0,0x000000401c4e0740] = 11104

stub code [0x000000401c4e0740,0x000000401c4e07e0] = 160

metadata [0x000000401c4e07e0,0x000000401c4e08c8] = 232

scopes data [0x000000401c4e08c8,0x000000401c4e1410] = 2888

scopes pcs [0x000000401c4e1410,0x000000401c4e19d0] = 1472

dependencies [0x000000401c4e19d0,0x000000401c4e19e8] = 24

handler table [0x000000401c4e19e8,0x000000401c4e1b38] = 336

nul chk table [0x000000401c4e1b38,0x000000401c4e1c08] = 208

Could not load hsdis-amd64.so; library not loadable; PrintAssembly is disabled

#

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

# https://bugreport.java.com/bugreport/crash.jsp

#
```
Probably needs to build a docker for Apple Silicon CPU

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.