hibernate - 在Grails 2.4.3上运行Run-App时的SIGSEGV

标签 hibernate grails segmentation-fault

我在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/

相关文章:

java - 使用 Criteria Hibernate 查询对象

grails - 为什么Umlauts和特殊字符不能在我的Grails页面上正确显示?

hibernate - 将原生 SQL 查询的结果映射到 Grails 域类

c - 不太确定,memcpy 上有段错误吗?

c - LAPACKE矩阵求逆分段故障C

java - 使用 org.hibernate.validator.internal.cfg.context 创建方法约束

java - JPA - 检查另一个表中是否存在 boolean 值值

java - 处理hibernate查询结果

grails - 从过滤器返回false时使URLMapping失败?

C - 读取文件错误..!f_in 为空,不知道为什么?