[BUG] SIGSEGV when using maven
- Dominant language
- C
- Stars
- 20.5k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
_(Sorry, my english is not very well so some words maybe strange)_
Hi! I'm trying to use maven to build my java project. So I installed maven by apk. But when I type `mvn --version`, it crashes.
```
zk-qq:~# mvn --version
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xf7618177, pid=15, tid=0xf70afd90
#
# JRE version: OpenJDK Runtime Environment (8.0_302-b08) (build 1.8.0_302-b08)
# Java VM: OpenJDK Server VM (25.302-b08 mixed mode linux-x86 )
# Derivative: IcedTea 3.20.0
# Distribution: Custom build (Wed Dec 8 12:39:55 UTC 2021)
# Problematic frame:
# V [libjvm.so+0x3a9177]
#
# Failed to write core dump. 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:
# /root/hs_err_pid15.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# https://icedtea.classpath.org/bugzilla
#
Aborted
```
It told me try `ulimit -c unlimited`, but i got another error.
```
zk-qq:~# ulimit -c unlimited
zk-qq:~# mvn
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xf7618177, pid=76, tid=0xf70afd90
#
# JRE version: OpenJDK Runtime Environment (8.0_302-b08) (build 1.8.0_302-b08)
# Java VM: OpenJDK Server VM (25.302-b08 mixed mode linux-x86 )
# Derivative: IcedTea 3.20.0
# Distribution: Custom build (Wed Dec 8 12:39:55 UTC 2021)
# Problematic frame:
# V [libjvm.so+0x3a9177]
#
# Core dump written. Default location: /root/core or core.76
#
# An error report file with more information is saved as:
# /root/hs_err_pid76.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
# https://icedtea.classpath.org/bugzilla
```
The output error report file:
Here's the dump of the log messages:
```
zk-qq:~# dmesg
15(java) stub syscall 375
15(java) stub syscall 375
32 page fault on 0x2f67738f at 0xf7618177
47(java) stub syscall 375
47(java) stub syscall 375
64 page fault on 0x2f67738f at 0xf7618177
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the crash with `mvn --version` and inspect the linked `hs_err_pid` report alongside the supplied `dmesg` output. Focus on the reported SIGSEGV in `libjvm.so` and the repeated stub syscall 375 messages; done means Maven starts without the Java process crashing in this environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100