Using the wrong .so on a Raspberry Pi under Docker
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start by inspecting how snappy-java selects and extracts native libraries for Linux ARM, especially the arm and armhf resource paths mentioned in the report. Reproduce or examine the selection behavior for the reported ARMv6 environment; done means the appropriate library is selected and loads successfully there, with relevant tests passing.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I ran into this bug trying to get UniFi's controller working under Docker on a Raspberry Pi 1 B. It is attempting to load the wrong .so file (arm instead of armhf).
I confirmed this by running ldd on the .so that the jar tries to extract (it fails).
I worked around it by extracting org/xerial/snappy/native/Linux/armhf/libsnappyjava.so, renaming it to org/xerial/snappy/native/Linux/arm/libsnappyjava.so and adding it back to the zip. This fixes it.
Some diagnostic info from the Docker container:
# uname -a
Linux black-pearl 4.4.10-hypriotos+ #2 PREEMPT Fri May 20 15:31:36 UTC 2016 armv6l GNU/Linux
# java -version
java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) Client VM (build 24.60-b09, mixed mode)
# cat /proc/cpuinfo
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 697.95
Features : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7
Hardware : BCM2708
Revision : 000e
Serial : 00000000a8dc776b
- Ngôn ngữ chính
- Java
- Star
- 1.1k
- Fork
- 261
- Merge trung bình
- 2 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của xerial/snappy-java
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
xerial/snappy-java#658 · 3 bình luận · 1 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 56/100
xerial/snappy-java#607 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
xerial/snappy-java#604 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
xerial/snappy-java#603 · 3 bình luận ·
-
Snappy error on Mac OS Ventura: "no native library is found for os.name=Mac and os.arch=aarch64"Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
xerial/snappy-java#573 · 1 reaction ·
Tất cả issue của xerial/snappy-java
Issue tương tự
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
xerial/sqlite-jdbc#1515 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Area/Configuration Type/Improvement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ballerina-platform/static-code-analysis-tool#217 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
eclipse-dirigible/dirigible#8636 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug severity-medium XS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
nikolas-charalambidis/facepalm-maven-plugin#291 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
OakLoaf/PluginUpdater#264 ·
Maintainer thường phản hồi trong vòng 1 ngày