Persistent Minecraft Server Crashes on Linux with Java SIGSEGV Error (JRE 17)

I am hosting a Modded Minecraft server on a Ubuntu 22.04.3 LTS system and I have been facing repeated crashes due to a SIGSEGV error from the Java Runtime Environment (JRE). These crashes occur approximately every 30 minutes, and the issue persists across both modded and vanilla servers I have hosted in the past.

What could be causing the SIGSEGV (Segmentation Fault) in the Java VM while running a Minecraft server? How can I prevent this from happening? Are there any JVM flags or diagnostics tools I can use to further investigate?

System Information

  • OS: Ubuntu 22.04.3 LTS
  • CPU: Intel Core i3-10100
  • RAM: 32 GB
  • JRE: Java SE Runtime Environment 17.0.8+9 (build 17.0.8+9-LTS-211)

Service Management
I am using systemd to manage running the server.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>[Service]
User=minecraft
Nice=1
SuccessExitStatus=0 1
ProtectHome=true
ProtectSystem=full
PrivateDevices=true
NoNewPrivileges=true
Restart=always
RestartSec=5s
WorkingDirectory=/opt/minecraft/server/prominence
ExecStart=/opt/minecraft/server/prominence/start.sh
</code>
<code>[Service] User=minecraft Nice=1 SuccessExitStatus=0 1 ProtectHome=true ProtectSystem=full PrivateDevices=true NoNewPrivileges=true Restart=always RestartSec=5s WorkingDirectory=/opt/minecraft/server/prominence ExecStart=/opt/minecraft/server/prominence/start.sh </code>
[Service]
User=minecraft
Nice=1
SuccessExitStatus=0 1
ProtectHome=true
ProtectSystem=full
PrivateDevices=true
NoNewPrivileges=true
Restart=always
RestartSec=5s

WorkingDirectory=/opt/minecraft/server/prominence
ExecStart=/opt/minecraft/server/prominence/start.sh

Service File

Error Logs

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code># A fatal error has been detected by the Java Runtime Environment:
# SIGSEGV (0xb) at pc=0x00007f7e6cc1c643, pid=575062, tid=575205
# JRE version: Java(TM) SE Runtime Environment (17.0.8+9) (build 17.0.8+9-LTS-211)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0.8+9-LTS-211, mixed mode, sharing)
# Problematic frame:
# j java.util.HashSet.iterator()Ljava/util/Iterator;+7 [email protected]
</code>
<code># A fatal error has been detected by the Java Runtime Environment: # SIGSEGV (0xb) at pc=0x00007f7e6cc1c643, pid=575062, tid=575205 # JRE version: Java(TM) SE Runtime Environment (17.0.8+9) (build 17.0.8+9-LTS-211) # Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0.8+9-LTS-211, mixed mode, sharing) # Problematic frame: # j java.util.HashSet.iterator()Ljava/util/Iterator;+7 [email protected] </code>
# A fatal error has been detected by the Java Runtime Environment:
# SIGSEGV (0xb) at pc=0x00007f7e6cc1c643, pid=575062, tid=575205
# JRE version: Java(TM) SE Runtime Environment (17.0.8+9) (build 17.0.8+9-LTS-211)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0.8+9-LTS-211, mixed mode, sharing)
# Problematic frame:
# j java.util.HashSet.iterator()Ljava/util/Iterator;+7 [email protected]

Every time the crash happens, the problematic frame is different. Here are some example crash logs (normal Minecraft server logs don’t regularly have errors leading up to the fatal error; it is sudden).
Error sample 1
Error sample 2

Bonus Vanilla Error (since it is similar):
Vanilla error

Things I did to try and resolve:

  • Reinstalled Java and Minecraft server files.
  • Changed Java versions
  • Adjusted the memory allocation for the servers.
  • Tried running both modded (Fabric) and vanilla Minecraft servers—same issue persists.
  • Tried different java options for changing garbage collection, etc (common Minecraft ones), eg (UseParallelGC)

Not sure if this is a coincidence, but it seems like doing something like reinstalling java improved stability for a time (about a day), but after that the normal frequency of the crashing resumed.

4

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật