gradle安装报错问题

这篇博客讨论了遇到Java运行时环境(JRE)崩溃的问题,错误表现为SIGSEGV信号,可能是由于mac系统升级导致的某些目录无法写入。解决方法是通过`ulimit -c unlimited`命令启用核心转储,并检查更改是否成功。尽管可以跳过错误继续运行,但建议进行故障排查以确保系统稳定性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


localhost:~ root# gradle -v
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fff203a15d2, pid=28971, tid=9987
#
# JRE version:  (14.0.2+12) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (14.0.2+12-46, mixed mode, sharing, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# C  [libsystem_platform.dylib+0x15d2]  _platform_strlen+0x12
#
# 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:
# /private/var/root/hs_err_pid28971.log
#
#
Abort trap: 6

解决方案 
ulimit -c unlimited

This should solve the problem. To check if the change was successful, run -
ulimit -c -l


localhost:~ maobo$ gradle -v
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fff203a15d2, pid=29851, tid=8195
#
# JRE version:  (14.0.2+12) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (14.0.2+12-46, mixed mode, sharing, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# C  [libsystem_platform.dylib+0x15d2]  _platform_strlen+0x12
#
# Core dump will be written. Default location: /cores/core.29851
#
# An error report file with more information is saved as:
# /Users/maobo/hs_err_pid29851.log
#
Abort trap: 6

不妨跳过这个错误其实好像没有什么影响。猜测可能mac系统升级引起的。一些目录无法写入

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值