我在MacOS Mavericks MacbookAir笔记本电脑上编写了一个应用程序。它工作正常。然后,我在另一台笔记本电脑Mavericks MacbookPro(视网膜之前)上 checkout 了代码。
当我启动grails控制台时,它可以正常工作。一旦我尝试执行run-app
,我就得到了SIGSEGV。
屏幕上将显示以下内容:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x000000010fff41af, pid=85762, tid=23811
#
# JRE version: Java(TM) SE Runtime Environment (8.0_20-b26) (build 1.8.0_20-b26)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.20-b23 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# V [libjvm.dylib+0x4261af] Klass::is_subtype_of(Klass*) const+0x7
#
# Core dump written. Default location: /cores/core or core.85762
#
# An error report file with more information is saved as:
# /Users/rsom/src/maas/hs_err_pid85762.log
#
当我查看hs_err_pid日志文件时,这就是我所看到的
Stack: [0x0000000127ab1000,0x0000000127bb1000], sp=0x0000000127bad860, free space=1010k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.dylib+0x4261af] Klass::is_subtype_of(Klass*) const+0x7
V [libjvm.dylib+0x3a50e5] LinkResolver::runtime_resolve_interface_method(CallInfo&, methodHandle, KlassHandle, Handle, KlassHandle, bool, Thread*)+0x7b
V [libjvm.dylib+0x3a593f] LinkResolver::resolve_interface_call(CallInfo&, Handle, KlassHandle, KlassHandle, Symbol*, Symbol*, KlassHandle, bool, bool, Thread*)+0xd1
V [libjvm.dylib+0x3a5af3] LinkResolver::resolve_invokeinterface(CallInfo&, Handle, constantPoolHandle, int, Thread*)+0x143
V [libjvm.dylib+0x3a69b0] LinkResolver::resolve_invoke(CallInfo&, Handle, constantPoolHandle, int, Bytecodes::Code, Thread*)+0x3ce
V [libjvm.dylib+0x2ce675] InterpreterRuntime::resolve_invoke(JavaThread*, Bytecodes::Code)+0x371
j org.hibernate.cfg.beanvalidation.TypeSafeActivator.applyDDL(Ljava/lang/String;Lorg/hibernate/mapping/PersistentClass;Ljava/lang/Class;Ljavax/validation/ValidatorFactory;Ljava/util/Set;ZLorg/hibernate/dialect/Dialect;)V+1
j org.hibernate.cfg.beanvalidation.TypeSafeActivator.applyRelationalConstraints(Ljavax/validation/ValidatorFactory;Ljava/util/Collection;Ljava/util/Properties;Lorg/hibernate/dialect/Dialect;)V+121
j org.hibernate.cfg.beanvalidation.TypeSafeActivator.applyRelationalConstraints(Ljavax/validation/ValidatorFactory;Lorg/hibernate/cfg/beanvalidation/ActivationContext;)V+106
j org.hibernate.cfg.beanvalidation.TypeSafeActivator.activate(Lorg/hibernate/cfg/beanvalidation/ActivationContext;)V+88
v ~StubRoutines::call_stub
我有一个同事,一台相同的笔记本电脑在他的机器上做同样的事情,他能够启动该应用程序。
可能出什么问题了?
关于如何调试的任何指示?
来源在这里:https://github.com/rahulsom/maas
最佳答案
可能是硬件问题。我在运行android studio时遇到了类似的问题,这是由于我的RAM中的问题。我进行了更改,问题得以解决。之后没有这样的问题。
另一个问question in stackoverflow的家伙也发生了类似的问题。最后,他的问题是“这是硬件问题”。
关于hibernate - 在Grails 2.4.3上运行Run-App时的SIGSEGV,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25874436/